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!
![]() |
Can't add a background image |
Post Reply
|
| Author | |
juanfrand
Beginner
Joined: 05 Oct 11 Location: Buenos Aires Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: Can't add a background imagePosted: 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
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
juanfrand
Beginner
Joined: 05 Oct 11 Location: Buenos Aires Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
juanfrand
Beginner
Joined: 05 Oct 11 Location: Buenos Aires Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
juanfrand
Beginner
Joined: 05 Oct 11 Location: Buenos Aires Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store