[BUG] PDF generation incompatible with Acrobat
[BUG] PDF generation incompatible with Acrobat
- Subject: [BUG] PDF generation incompatible with Acrobat
- From: Marcel Weiher <email@hidden>
- Date: Tue, 7 Jan 2003 17:06:05 +0100
Hi folks,
I don't know if you've been following the admin list, but they just
unearthed a serious problem with Cocoa / Quartz PDF generation. In
short, long text-files will typically stop rendering correctly after
about 40-45 pages, in Adobe Acrobat. They display fine in Preview.
I have filed a bug on this: 3140583
The problem is that Acrobat has a (documented) implementation limits
for "real" numbers of +/- 32767. If that sounds silly, it is, but
check Appendix C of the PDF reference. Note that this is a limitation
of Acrobat, not of PDF in general, but is "highly recommended" that
generators allow for this limitation.
Apple doesn't, because of the way that the AppKit just uses a very long
NS(Text)View and then translates (using the CTM) to tile parts of the
view onto the current page. With this technique, the +/- 32767 range
lasts for about 40-45 pages.
Workarounds: describing the bug immediately pointed me to two
workarounds. One is to simply lay out each page individually, and
TextEdit's "wrap to page" mode seems to do exactly that. Just tried
it, it works. Another workaround is to scale by a factor of 1000 or
so, which would push the boundary out to 40.000 pages.
Fixes would include better PDF generation, removal of silly
implementation limits from Acrobat, etc.
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.