On 10/21/2013 5:55 PM, Doug Peterson wrote:
> Hi,
>
>       We are currently using iText to concatenate PDF's for printing.
> These PDF's come from a variety of sources.  We are using the
> addTemplate method in the class PdfContentByte to do this.

We can stop reading here. That's the wrong approach.

>    We have
> found that occasionally there is a pdf that has a page where going
> through this method will come out blank.

That's no surprise! That's documented in many answers on StackOverflow!

> The page is usually a  scanned
> image.  Has anyone else seen this happen, and if so, is there a way to
> identify the pages that this will happen to?

If you use PdfContentByte, you lose all interactivity as documented 
here: http://manning.com/lowagie2/samplechapter6.pdf
You probably also make the false assumption that the coordinate of the 
lower-right corner equals x=0, y=0, which explains the blank pages.
Furthermore, we had some bugs in older version of iText that weren't 
able to read some scanned images well (so you may need to upgrade if 
that's part of your problem).

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to