Re: broken lines with Ghostscript (pdf)
- From: ken <ken@xxxxxxxxxxx>
- Date: Thu, 13 Mar 2008 08:14:11 -0000
In article <1bedcf4e-086e-41ba-8743-7fe380522825
@e23g2000prf.googlegroups.com>, estufa8@xxxxxxxxx says...
My questions are:
Why 51 characters?
Could be coincidence, could be a consequence of the (Word) style, could
be a result of the page size and the line length. Hard to say really.
Is there a string length limitation using Ghostscript?
Not that you are likely to run across, and certainly not that small.
Or may be it is rounding up little rests of all glyph positioning
(with TJ)?
According to the source, its to work around a bug in at least some
versions of Acrobat.
From the pdfwrite source code:
/*
* Acrobat Reader limits the magnitude of user-space
* coordinates. Also, AR apparently doesn't handle large
* positive movement values (negative X displacements), even
* though the PDF Reference says this bug was fixed in AR3.
*
* Old revisions used the upper threshold 1000 for tdw,
* but it appears too big when a font sets a too big
* character width in setcachedevice. Particularly this
happens
* with a Type 3 font generated by Aldus Freehand 4.0
* to represent a texture - see bug #687051.
* The problem is that when the Widths is multiplied
* to the font size, the viewer represents the result
* with insufficient fraction bits to represent the precise
width.
* We work around that problem here restricting tdw
* with a smaller threshold 990. Our intention is to
* disable Tj when the real glyph width appears smaller
* than 1% of the width specified in setcachedevice.
* A Td instruction will be generated instead.
* Note that the value 990 is arbitrary and may need a
* further adjustment.
*/
Can I avoid this from the command line when I convert it?
No, it seems not, this is embedded into the source. Since it generates
valid PDF files, its unlikely to change.
Ken
.
- Follow-Ups:
- Re: broken lines with Ghostscript (pdf)
- From: estufa
- Re: broken lines with Ghostscript (pdf)
- References:
- broken lines with Ghostscript (pdf)
- From: estufa
- broken lines with Ghostscript (pdf)
- Prev by Date: Re: Newbie : Steps for printing Unicode
- Next by Date: Re: Newbie : Steps for printing Unicode
- Previous by thread: broken lines with Ghostscript (pdf)
- Next by thread: Re: broken lines with Ghostscript (pdf)
- Index(es):
Relevant Pages
|