Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Can't add a background image
  FAQ FAQ  Forum Search   Register Register  Login Login

Can't add a background image

 Post Reply Post Reply
Author
Message
juanfrand View Drop Down
Beginner
Beginner
Avatar

Joined: 05 Oct 11
Location: Buenos Aires
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote juanfrand Quote  Post ReplyReply Direct Link To This Post Topic: Can't add a background image
    Posted: 05 Oct 11 at 7:53PM
Hi,

I'm having problems to add a background image to my pdf. The problem is that the original pdf has a white background/image/filled-rectangle (I don't know wich one is it) that doesn't let me see the image at the back.

Only to make you understand what I'm saying, if the problem were in Word, I could solve it by pressing "Send it to the back" button.

Thank you,

Regards,

Juan D'Angelo
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 11 at 8:56PM
Hi Juan!

Please read in the online reference about Optional Content Groups here:
http://www.quickpdflibrary.com/help/quickpdf/ContentStreamsAndOptionalContentGroups.php
and try the layer-functions like CombineLayers, DeleteLayer, LayerCount and MoveLayer.
With MoveLayer(from as long, to as long) you can push disliked layers to the background.

Cheers and welcome here,
Ingo

Back to Top
juanfrand View Drop Down
Beginner
Beginner
Avatar

Joined: 05 Oct 11
Location: Buenos Aires
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote juanfrand Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 11 at 9:57PM
Hi Ingo!

Thank you for your quick reponse.

I'm having troubles to find "MoveLayer" command in QP.

I've recently adquired the QuickPDFDLL0811.dll version with QuickPDFDLL0811.vb and it doesn't seem to have it...

Do you know what can i do?

Thank you in advance,

Juan F.
Back to Top
juanfrand View Drop Down
Beginner
Beginner
Avatar

Joined: 05 Oct 11
Location: Buenos Aires
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote juanfrand Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 11 at 10:34PM
I've read the link. I've figured out the 'layers' are now 'contentstreams'.

Now, the problem I have is that I have text and background in the same contentstream...

How can i make to separate them??

Thank you,

Juan F.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 11 at 3:45AM
There is a function called SplitPageText that will split the graphics and text into separate layers.  This would be a good start and hopefully will help solve your problem.    I have never used this function  before.

Andrew.
Back to Top
juanfrand View Drop Down
Beginner
Beginner
Avatar

Joined: 05 Oct 11
Location: Buenos Aires
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote juanfrand Quote  Post ReplyReply Direct Link To This Post Posted: 07 Oct 11 at 12:08AM
Andrew,

Thank you so much! The function have worked great!

If anyone is experimenting the same problem here's the solution:

To erase the background and leave only text: 

            QP.LoadFromFile(sourcePDF, "")
            QP.SelectPage(1)
            QP.SetOrigin(1)
            QP.SplitPageText(0)
            QP.SelectContentStream(1)
            QP.DeleteContentStream()
            QP.SaveToFile(sourcePDF)

Cya!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store