Hello,
first of all, thank you very much for your fast response!
No, I do not concatenate the result of concatenations. I am doing:
ABCDE.pdf = A.pdf + B.pdf + C.pdf + D.pdf + E.pdf
More exactly:
AAABCC.pdf = A.pdf + A.pdf + A.pdf + B.pdf + C.pdf + C.pdf.
The problem was, that the original pdfs, which I wanted to concatenate,
were corrupted in the first place by the inproper usage of PdfPCellEvent:
...
PdfContentByte cb = canvas[PdfPTable.LINECANVAS];
drawTop(cb, rect);
cb.stroke();
cb.saveState();
...
The contentByte was not handled correctly. I changed this piece of code
to:
...
PdfContentByte cb = canvas[PdfPTable.LINECANVAS];
cb.saveState();
drawTop(cb, rect);
cb.stroke();
cb.restoreState();
...
Now it works!
Best regards
Martin Fetz
Von:
1T3XT BVBA <[email protected]>
An:
[email protected]
Datum:
16.02.2011 14:08
Betreff:
Re: [iText-questions] Concatenation PDFs, PdfCopy, printing
Op 16/02/2011 13:28, [email protected] schreef:
Hello everybody,
I've got a problem concerning the concatenation of PDFs: I need to
concatenate several (small) PDFs (up to 100) and i do get a big PDF.
No problems with PdfCopy and/or PdfSmartCopy have been reported in a very
long time;
I can view the PDF in my Adobe Acrobat Pro, I do see all the pages but I
have a problem printing it. After some level of concatenation (lets say
about 10 or 12 concatenations)
This worries me: you're not saying after concatenating X pages, but you're
saying "after some level of concatenation". Are you implying that you
concatenate the results of a concatenation that were also the result of
several concatenations?
In other words: are you doing something like:
AB.pdf = A.pdf + B.pdf
ABC.pdf = AB.pdf + C.pdf
ABCD.pdf = ABC.pdf + D.pdf
ABCDE.pdf = ABCD.pdf + E.pdf
and so on?
That's NOT wise. Your design is flawed! Reconsider your design.
the following conent won't be printed anymore.
It is absolutley the same problem Sean Langford had 8 years ago:
http://www.mail-archive.com/[email protected]/msg03896.html
And probably absolutely the same reason why it goes wrong:
It may be a problem of too many nested templates
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
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
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
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