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 - Merging Image into a 2 page PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

Merging Image into a 2 page PDF

 Post Reply Post Reply
Author
Message
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Topic: Merging Image into a 2 page PDF
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 11 at 5:28PM
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


Back to Top
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Posted: 07 Mar 11 at 6:40PM
Many thanks, taht did the trick. Obvious now I look at it :-)
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