Filipe Fedalto wrote:
Therefore, I have two questions regarding these subjects:
1) What does PDF Viewers (namely acrobat reader and acrobat standard)
do when they face these longer-than-allowed names? Do they ignore
them? Do they truncate them into 127 characters? Fact is that they
open my documents.
I don't know. I think different viewer will treat them differently.
2) Considering that I am unable to change the way my clients create
their PDF Documents, and that I must process them using iText, what
could I do? Should I edit PdfName class to suit my special needs?
Should PdfName class proceed with long names the same way those
viewers do (ignoring, truncating or accepting them) instead of just
throwing an Exception?
Maybe we should subclass PdfName and override the constructor.
Then use this subclass in PdfReader only (not for PDF creation).
Or we could add an extra constructor to PdfName with a dummy field,
and use this constructor in PdfReader only.
I think that's better than just changing the current constructor that
makes sure the names are created in conformance with the PDF Reference.
best regards,
Bruno
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions