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 - AddImageFromStream splits Image
  FAQ FAQ  Forum Search   Register Register  Login Login

AddImageFromStream splits Image

 Post Reply Post Reply
Author
Message
haka View Drop Down
Beginner
Beginner
Avatar

Joined: 16 Jun 11
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote haka Quote  Post ReplyReply Direct Link To This Post Topic: AddImageFromStream splits Image
    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
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
haka View Drop Down
Beginner
Beginner
Avatar

Joined: 16 Jun 11
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote haka Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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

Andrew.
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