You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/07/02 11:59:10 UTC
[jira] [Comment Edited] (PDFBOX-3409) TextToPDF drops leading
spaces
[ https://issues.apache.org/jira/browse/PDFBOX-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360130#comment-15360130 ]
Tilman Hausherr edited comment on PDFBOX-3409 at 7/2/16 11:58 AM:
------------------------------------------------------------------
Your file is tricky because it contains a formfeed, which is no longer swallowed now and results in an exception because there is no formfeed glyph, obviously. I'll implement a formfeed handling too.
was (Author: tilman):
Your file is tricky because it contains a formfeed, which is no longer swallowed now. I'll try to implement that too.
> TextToPDF drops leading spaces
> ------------------------------
>
> Key: PDFBOX-3409
> URL: https://issues.apache.org/jira/browse/PDFBOX-3409
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.8.10
> Environment: AIX Version 7
> Reporter: Marc Stuart
> Assignee: Tilman Hausherr
> Labels: features
> Attachments: gprod-better.pdf, 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