You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Marc Stuart (JIRA)" <ji...@apache.org> on 2016/07/01 21:53:11 UTC
[jira] [Updated] (PDFBOX-3409) TextToPDF drops leading spaces
[ https://issues.apache.org/jira/browse/PDFBOX-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc Stuart updated PDFBOX-3409:
--------------------------------
Attachment: gprod.txt
gprod.pdf
gprod.pdf was created using the command "java -jar pdfbox-app-1.8.10.jar TextToPDF -standardFont Courier -fontSize 6 gprod.pdf gprod.txt". Note that the leading spaces in gprod.txt are missing. Also note that the extremely small font size was required to keep the 128-character lines from wrapping.
> TextToPDF drops leading spaces
> ------------------------------
>
> Key: PDFBOX-3409
> URL: https://issues.apache.org/jira/browse/PDFBOX-3409
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.8.10
> Environment: AIX Version 7
> Reporter: Marc Stuart
> Labels: features
> Fix For: 1.8.10
>
> Attachments: gprod.pdf, gprod.txt
>
>
> We want to use TextToPDF in batch command line mode to convert legacy reports which assume a mono-spaced font, but the PDF files created ignore all leading spaces. Obviously, this messes up column alignment. We can't use the tool without a fix for this. Or is there a parameter we can pass? Here is the command line we are using: java -jar pdfbox-app-1.8.10.jar TextToPDF -standardFont Courier -fontSize 6 gprod.pdf gprod.txt. I don't see how to attach files here, but I will if I can do it after creating the ticket. I tried downloading 2.0.2, but it is stuck at "WARNING: Building on-disk font cache, this may take a while". P.S. I am also submitting a second ticket regarding the need for orientation control in TextToPDF. Most of our old legacy reports are 128 characters wide and without a Landscape option, they come out wrapped into illegibility.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org