Hi,
Hi Rajesh,
Hi Rajesh,
Hi Ahmad,
Hi Rajesh,
Hi Nayyer Shahbaz,
Line of Credit. Your Line is an open-end line of credit which you may use to obtain cash advances (Advances) from time to time for a period of 10 years (Term). Your Line will mature on the last day of the billing cycle ending on May 2011 (Maturity Date). If you continue to meet Bank's then current standards for credit criteria and collateral value, at Bank's discretion, Bank will either extend the Maturity Date for one or more additional Terms or Bank will refinance your Line on the terms then being offered by Bank for Equity Reserve Line of Credit. |
Hi Rajesh,
Document document = new Document(InputPdf(1).pdf");<o:p></o:p>
DocSaveOptions saveOption = new DocSaveOptions();<o:p></o:p>
saveOption.setFormat(DocSaveOptions.DocFormat.DocX);<o:p></o:p>
saveOption.setAddReturnToLineEnd(false);<o:p></o:p>
saveOption.setMode(DocSaveOptions.RecognitionMode.Flow);<o:p></o:p>
saveOption.setRelativeHorizontalProximity(2.5f);<o:p></o:p>
document.save(“Resultant.docx”, saveOption);
Please, note that:
1. The document OutputDoc.docx was saved with a Textbox recognition mode (saveOption.Mode = DocSaveOptions.RecognitionMode.Textbox) although the snippet code uses saveOption.Mode = (DocSaveOptions.RecognitionMode.Flow). In the case of using ‘Textbox’ mode a document will not have paragraphs indent values because of absolute positioning text elements. To restore the original document author’s intent and in order to produce a maximally editable document, the Flow recognition mode should be used.
2. The option:
saveOption.setAddReturnToLineEnd(true);
adds hard line breaks on the ends of lines and sets right intent values to 0. For saving the right intent values, please use the code:
saveOption.setAddReturnToLineEnd(false);
3. The right intent value in the output document is equal 1.48 inches, although in the input document the value is equal 0.55 inches. The reason of the difference is because we are forced always set the right margin of .DOC documents to 0 for a better conversion most of the documents, so the right intent value become larger on the value of right margin (~0.93 inches).
Kusumanchi.Rajesh:Hi Nayyer Shahbaz,Thanks for your response.While converting PDF to docx, We are able to find the Indentations in left and right with the help of below code.com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(“Input Document”);DocSaveOptions saveOptions = new DocSaveOptions();saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);saveOptions.setMode(DocSaveOptions.RecognitionMode.Flow);saveOptions.setRelativeHorizontalProximity(2.5f);saveOptions.setAddReturnToLineEnd(false);pdfDocument.save(“Output document”, saveOptions);But still we are facing issues in right indent in most of the scenarios while reading from the Converted docx from PDF.For example:The below paragraph which was present in Input document indented left and right but aspose is finding only left indent but not right indent.
Line of Credit. Your Line is an open-end line of credit which you may use
to obtain cash advances (Advances) from time to time for a period of 10
years (Term). Your Line will mature on the last day of the billing cycle
ending on May 2011 (Maturity Date). If you continue to meet Bank's then
current standards for credit criteria and collateral value, at Bank's
discretion, Bank will either extend the Maturity Date for one or more
additional Terms or Bank will refinance your Line on the terms then being
offered by Bank for Equity Reserve Line of Credit.
Expected indentation : left indent : 0.5Right indent : 0.5Actual Indentation : left indent : 0.5Right indent : 0.0PFA for more information.Converted docx from pdf- "c_Cc_2015-Ohio-4092_ASPOSE.docx"Input PDF : "Cc_2015-Ohio-4092_ASPOSE.pdf"Hi Rajesh,Thanks for using our API's.I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFJAVA-36178 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.
The issues you have found earlier (filed as PDFJAVA-36178) have been fixed in Aspose.Pdf for Java 16.12.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.