pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vedang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-4287) Pdf box does not detecting some white spaces while converting a pdf file to html
Date Fri, 03 Aug 2018 12:23:00 GMT

     [ 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

{color:#707070}{{try { }}{color}

{color:#707070}{{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);}}{color}

{color:#707070}{{ output.close();}}{color}

{color:#707070}{{ document.close(); }}{color}

{color:#707070}{{}catch (IOException | ParserConfigurationException e){ }}{color}

{color:#707070}{{throw e; }}{color}

{{}}}

 

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
> {color:#707070}{{try { }}{color}
> {color:#707070}{{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);}}{color}
> {color:#707070}{{ output.close();}}{color}
> {color:#707070}{{ document.close(); }}{color}
> {color:#707070}{{}catch (IOException | ParserConfigurationException e){ }}{color}
> {color:#707070}{{throw e; }}{color}
> {{}}}
>  
> 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


Mime
View raw message