Print Page | Close Window

AddImageFromStream splits Image

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1861
Printed Date: 22 Nov 24 at 8:04PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddImageFromStream splits Image
Posted By: haka
Subject: AddImageFromStream splits Image
Date 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



Replies:
Posted By: Rowan
Date Posted: 17 Jun 11 at 1:26PM
Hi Harald,

Would you be able to upload the image somewhere for us to take a look at it?

Cheers,
- Rowan.


Posted By: haka
Date Posted: 17 Jun 11 at 1:40PM
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


Posted By: AndrewC
Date Posted: 01 Jul 11 at 2:56PM
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 - http://bitmiracle.com/libtiff/help/convert-a-multi-strip-tiff-image-to-a-single-strip-one.aspx

Andrew.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk