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!
![]() |
Merging Image into a 2 page PDF |
Post Reply ![]() |
Author | |
rweetch ![]() Senior Member ![]() Joined: 22 Feb 11 Status: Offline Points: 173 |
![]() ![]() ![]() ![]() ![]() Posted: 07 Mar 11 at 3:45PM |
I have a 2 page pdf and am trying to load an image onto the second page. I have a field there as a place holder and the info reporting this seems to be ok, however, the image is displayed in the correct position, but on the first page. The code I am using is:
FFID := FieldIdentifier;
FFWidth := PDFLibrary.GetFormFieldBound(FFID, PDFWIDTH);
FFHeight := PDFLibrary.GetFormFieldBound(FFID, PDFHEIGHT) FFLeft := PDFLibrary.GetFormFieldBound(FFID, PDFLEFT);
FFTop := PDFLibrary.GetFormFieldBound(FFID, PDFTOP); ImageFile := PdfLibrary.AddImageFromFile(aFileName, 0); PDFLibrary.FitImage(FFLeft, FFTop, FFWidth, FFHeight, 1, 1, 0); any help greatly appreciated. Edited by rweetch - 07 Mar 11 at 3:46PM |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
In your code snippet i don't see the pageselection. So the loaded document is still on the first page. Before FitImage you should use a PDFLibrary.SelectPage(2); Cheers, Ingo |
|
![]() |
|
rweetch ![]() Senior Member ![]() Joined: 22 Feb 11 Status: Offline Points: 173 |
![]() ![]() ![]() ![]() ![]() |
Many thanks, taht did the trick. Obvious now I look at it :-)
|
|
![]() |
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