Bug 691766 - extra 'nibs' on the lines of the form and font is different
Summary: extra 'nibs' on the lines of the form and font is different
Status: NOTIFIED INVALID
Alias: None
Product: GhostPCL
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: PC All
: P1 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 23:46 UTC by Marcos H. Woehrmann
Modified: 2011-10-02 02:35 UTC (History)
1 user (show)

See Also:
Customer: 1
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2010-11-10 23:46:49 UTC
Customer reports:

Minor issue with extra 'nibs' on the lines of the form.
Font is different, no longer Helvetica.
Comment 1 Marcos H. Woehrmann 2010-11-10 23:48:07 UTC
Created attachment 6890 [details]
nibs_and_font.tar
Comment 3 Marcos H. Woehrmann 2010-11-12 05:02:12 UTC
In regards to the issue of the font name not being preserved:

The files include the PCL sequence '[ESC]s4148t0b0s20v1P' which according to tables C-2 and C-3 of the PCL 5 Comparison Guide indicates that font should be Univers from AGFA.  We don't preserve this information but I'm not sure why we would need to.
Comment 4 Henry Stiles 2010-11-15 17:11:46 UTC
(In reply to comment #0)
> Customer reports:
> 
> Minor issue with extra 'nibs' on the lines of the form.
> Font is different, no longer Helvetica.

FWIW no font is preserved, we create an anonymous type 42 font for each resident pcl font used in the file.
Comment 5 Ken Sharp 2010-11-25 15:21:53 UTC
I'm assuming that this effect is only present when the PDF file is viewed in Acrobat. I'm unable to reproduce the effect on anything else. 

This appears to be an Acrobat rendering artefact. After reducing the file I see that the resulting PDF contains:

574 5622 414 6 re f
988 5622 6 6 re f
994 5622 854 6 re f
1848 5622 6 6 re f
1854 5622 796 6 re f
2650 5622 6 6 re f
2656 5622 1890 6 re f
4546 5622 12 6 re f
562 5502 12 120 re f
1848 5502 6 120 re f
4546 5502 12 120 re f

The 'nibs' seem to correspond to the width = height = 6 rectangles. As you can see these are the same height as the other rectangles which form the lines of the document, and so should not be rendered differently. Indeed as far as I can tell Ghostscript does not suffer from this effect when rendering the PDF.

If I select Edit->Preferences->Page Display then there is an option under the 'Rendering' section called 'Enhance thin lines'. If I deselect this then the problem vanishes.

I suspect that Acrobat is deciding that the rectangles form lines (reasonable) and when this setting is checked it 'enhances' the line when it gets very small, by not reducing as much as the other (not thin) lines.

These small rectangles are present in the original PCL file:

*c3A*c3B

so the resulting PDF file (which was rendered at 600 dpi, hence the doubling in size in the PDF file) is correctly preserving the content of the PCL file.

Henry has already commented on the file naming, this is not a pdfwrite issue, and is in any case not really relevant since the fonts are embedded from the source PCL file.