[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to