[
https://issues.apache.org/jira/browse/PDFBOX-4001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrian-Călin Bunziac updated PDFBOX-4001:
-----------------------------------------
Attachment: pdfbox_#2_using_PDDocument_save.pdf
pdxbox_#2_printjob.pdf
reportmill_#2.pdf
reportmill_#2_content.txt
Take a look of the following ReportMill data:
LABEL="LNR_and_some_more_to_enforce_reportmill_to_print_a_linefeed"
This is the way ReportMill marks in the report template
the linefeed =>
Here the ReportMill template content:
<text width="161.749" height="126">
<font name="Arial" size="10" />
<string>@LABEL@ @LABEL@</string>
</text>
The automatic word wrapping looks good in ReportMill (in reportmill_#2.pdf and
pdfbox_#2_using_PDDocument_save.pdf)
The pdf stream content from attachment reportmill_#2_content.txt shows that RM
consider " " twice.
However, printing the PDDocument to a file using
org.apache.pdfbox.pdmodel.PDDocument.save(File) creates a better output, just
as ReportMill do.
As a matter of fact, i would expect the same results when creating the output.
> Rendering LineFeed (No Unicode mapping for .notdef (10))
> --------------------------------------------------------
>
> Key: PDFBOX-4001
> URL: https://issues.apache.org/jira/browse/PDFBOX-4001
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.7, 2.0.8
> Environment: Windows 7 Enterprise
> jdk 1.7.80x64
> PDF Creator Printer / Network printer
> Reporter: Adrian-Călin Bunziac
> Priority: Minor
> Attachments: pdf_linefeed_no_glyph.pdf,
> pdfbox_#2_using_PDDocument_save.pdf, pdfbox_sourcefile.pdf,
> pdxbox_#2_printjob.pdf, reportmill_#2.pdf, reportmill_#2_content.txt,
> test_java_prog.txt
>
>
> Printing of on PDF Document does not occurs correctly: linefeed is also
> printed as a char "without glyph".
> org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
> WARNUNG: No Unicode mapping for .notdef (10) in font Helvetica
> org.apache.pdfbox.rendering.TTFGlyph2D getPathForGID
> WARNUNG: No glyph for 10 in font Helvetica
> Attachments:
> pdf_sourcefile.pdf -> the pdf document to be printed
> pdf_linefeed_no_glyph.pdf -> the result of the issued printjob, printed by
> "PDF CREATOR PRINTER" (looks the same on a real printer)
> test_java_prog.txt -> java program to test it
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]