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!
AddImageFromStream splits Image |
Post Reply |
Author | |
haka
Beginner Joined: 16 Jun 11 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 16 Jun 11 at 8:52PM |
I create a new PDF and add a scanned TIFF image with:
LID := LPDF.AddImageFromStream(ImgStream, 1); LPDF.FitImage(0, LPDF.PageHeight, LPDF.PageWidth, LPDF.PageHeight, 1, 1, 0) The image is split into two or more separate images in the PDF. Is there an option to prevent this? Thanks, Harald |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi Harald,
Would you be able to upload the image somewhere for us to take a look at it? Cheers, - Rowan.
|
|
haka
Beginner Joined: 16 Jun 11 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hallo Rowan, thank you for your message.
You can find the example at http://www.officemanager.de/tmp/foren/quickpdf-split-img.pdf Open it in Acrobat and click on the page. There are two images. The TIFF has G4FAX compression. Greetings, Harald |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
These tiffs, as mentioned in the official support area are multistrip tiff images and QPL imports each strip as creates an image for each strip. It is done this was so we can continue to use the TIFF compression used in the original TIFF file.
You would need to use a library like LibTIFF to convert a multistipped image into a single strip. Here is a link to some code that does just that. http://bitmiracle.com/libtiff/help/convert-a-multi-strip-tiff-image-to-a-single-strip-one.aspx Andrew.
|
|
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