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:20:00 UTC
[jira] [Updated] (PDFBOX-4287) Pdf box does not detecting some
white spaces while converting a pdf file to html
[ https://issues.apache.org/jira/browse/PDFBOX-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vedang updated PDFBOX-4287:
---------------------------
Description:
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]
was:
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]
> 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
> Priority: Major
>
> 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