[poppler] PDF Spec and reality, what to do?
Leonard Rosenthol
leonardr at pdfsages.com
Thu Feb 7 14:00:39 PST 2008
That's fine.
Acrobat/Reader don't necessary enforce those limits, but usually they
are based on internal data structures, etc. So it may be that our
buffer for names is limited to 127 bytes (why, who knows??!) and so
we truncate.
Personally, if you want to go beyond that an offer unlimited sized
names when reading, it won't hurt anythnig. Just don't write them
larger than 127.
Leonard
On Feb 7, 2008, at 12:16 PM, Albert Astals Cid wrote:
> If you have a look at https://bugs.freedesktop.org/show_bug.cgi?
> id=14337
> you'll find a PDF that has a name of more than 127 characters, that
> is the
> most we parse because it's an "Implementation limit" as specified
> in Appendix
> C of the specification.
>
> Although, if you open the said file with acroread, it works.
>
> So i suggest to apply the following patch effectively doubling the max
> characters we accept as name length.
>
> Comments?
>
> Albert<14337.patch>_______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
More information about the poppler
mailing list