Gents,
We use the PdfSmartCopy writer to concatenate files and prefer it over
PdfCopy due to the much smaller output file size especially when the files
being concatenated contain common resources. But today we had an incident
where several pages (XObject Forms) from the first document got repeated in
place of data from the second document during a concat process.
Unfortunately, this is sensitive material and so far I've been unable to
re-create the problem on generic files, but during debugging I noticed this
code comment in PdfSmartCopy.cs:
"PRIndirectReferences (and PRIndirectObjects) really need to know what file
they came from, because each file has its own namespace. The translation we
do from their namespace to ours is *at best* heuristic, and guaranteed to
fail under some circumstances."
Does anyone have ideas in terms of improving the code such that incorrect
concat can be avoided and/or detected?
We're running the latest and switching from PdfSmartCopy to PdfCopy does fix
the problem but at the cost of a larger file size.
I will see if I can come up with a simple concat that fails if that would
help.
Thanks - Gylfi
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions