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 - How to get an Image (Tiff) into a new PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

How to get an Image (Tiff) into a new PDF

 Post Reply Post Reply
Author
Message
John Sigoloff View Drop Down
Beginner
Beginner


Joined: 20 Sep 06
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote John Sigoloff Quote  Post ReplyReply Direct Link To This Post Topic: How to get an Image (Tiff) into a new PDF
    Posted: 04 Nov 06 at 9:05PM

Hi,

Tried the following to add an Image with no luck...

QP.NewDocument;

QP.CompressImages(1);

ImageID := QP.AddImageFromFile('C:\temp.tif', 0);

QP.SelectImage(ImageID);

QP.SelectPage(1);

QP.DrawScaledImage(0,0,0.1);

QP.SaveToFile(fn);

Thanks John

 

 

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 05 Nov 06 at 7:14AM
The documentation for AddImageFromFile says:

"For multi-page TIFF images this parameter specifies the page number to load. For other image types this parameter should be set to 0."

You should try to set the second parameter to 1.

ImageID := QP.AddImageFromFile('C:\temp.tif', 1);
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