You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Vedang (JIRA)" <ji...@apache.org> on 2018/08/03 12:19:00 UTC
[jira] [Created] (PDFBOX-4287) Pdf box does not detecting some
white spaces while converting a pdf file to html
Vedang created PDFBOX-4287:
------------------------------
Summary: Pdf box does not detecting some white spaces while converting a pdf file to html
Key: PDFBOX-4287
URL: https://issues.apache.org/jira/browse/PDFBOX-4287
Project: PDFBox
Issue Type: Bug
Affects Versions: 2.0.9
Reporter: Vedang
Following code is used to convert a pdf in a java application
{quote}try{
PDDocument document = PDDocument.load(new File("some path")); PDFDomTree parser = new PDFDomTree(PDFDomTreeConfig.createDefaultConfig()); Writer output = new PrintWriter(new File("some output path"), "utf-8"); parser.writeText(document, output); output.close(); document.close();
}catch (IOException | ParserConfigurationException e){
throw e;
}
{quote}
Now issue is converter is not able to detect whitespace between two words due to which some words are getting concatenated.
Check the comparison below: [!https://i.stack.imgur.com/9PT8k.png!|https://i.stack.imgur.com/9PT8k.png]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org