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 2017/06/02 04:45:04 UTC

[jira] [Closed] (PDFBOX-3805) Exception while reading text file using createPDFFromText of apache pdfbox 2.0.6 version

     [ https://issues.apache.org/jira/browse/PDFBOX-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr closed PDFBOX-3805.
-----------------------------------
    Resolution: Won't Fix

Closing as "won't fix" as tab replacing can be done in pre-processing.

> Exception while reading text file using createPDFFromText of apache pdfbox 2.0.6 version
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3805
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3805
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Windows 7, java 1.8 version
>            Reporter: Varun Joshi
>            Priority: Blocker
>         Attachments: PDFToText.java, sampleTextRead2.txt
>
>
> While using createPDFFromText() of TextToPDF, throwing exception when tab comes while reading text file.  Attached is the java(PDFToText.java) sample program which I am executing and sample data text file (sampleTextRead2.txt) which is being read. 
> Below is the exception while executing :-
> Exception in thread "main" java.lang.IllegalArgumentException: U+0009 ('controlHT') is not available in this font Helvetica encoding: WinAnsiEncoding
> 	at org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:425)
> 	at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:323)
> 	at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:352)
> 	at org.apache.pdfbox.tools.TextToPDF.createPDFFromText(TextToPDF.java:197)
> 	at org.apache.pdfbox.tools.TextToPDF.createPDFFromText(TextToPDF.java:98)
> 	at PDFStripper.PDFToText.main(PDFToText.java:23)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org