Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Create word to pdf

$
0
0
In creating the word from the pdf texts come with a type of invalid letter "HWJABL+Helvetica" or "RONPLM+Helvetica-Bold" and print out blank.

Code:

com.aspose.pdf.License license= new com.aspose.pdf.License();
// Load the license file into FileStream object
try {
license.setLicense(new java.io.FileInputStream("C:\\lib\\Aspose.Pdf.lic"));
} catch (FileNotFoundException e2) {
   // TODO Auto-generated catch block
    e2.printStackTrace();
}
com.aspose.pdf.Document document = new com.aspose.pdf.Document(filePath);
//Create DocSaveOptions object
com.aspose.pdf.DocSaveOptions saveOptions = new com.aspose.pdf.DocSaveOptions();
//Set the recognition mode as Flow
saveOptions.setMode(com.aspose.pdf.DocSaveOptions.RecognitionMode.Flow);
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
//Set the Horizontal proximity as 2.5
saveOptions.setRelativeHorizontalProximity(2.5f);
//Enable the value to recognize bullets during conversion process
saveOptions.setRecognizeBullets(true);
document.save(fileOut, saveOptions);

Viewing all articles
Browse latest Browse all 3131

Trending Articles