Please find the attached document. COnverting to PDF of single page document gives 2 page PDF document and font/style also get changed. Following are the code program written for this conversion:
doc = new Document();
doc.loadFromFile(file_path);
ToPdfParameterList parameters = new ToPdfParameterList();
parameters.setPdfConformanceLevel(PdfConformanceLevel.Pdf_A_3_A);
parameters.setMimicWPSLayout(true);
doc.setKeepSameFormat(true);
doc.clearMacros();
doc.saveToFile(outputfile, parameters);
Please help to provide appropriate JAVA API for the conversion of doc/docx to PDF
Regards
Daya Shanker
William.Zhang wrote:Hello,
Thanks for your inquiry.
Kindly note that if a Word document contains complex tables, it may indeed result in differences between the converted PDF format and the original document. Even if converted it to image format, formatting issues will not be resolved. For your case, we suggest that you provide us with your input document, and we will further investigate and provide a solution. You can upload the document to the attachment here or send it to
[email protected] via email. Thank you in advance.
Sincerely,
William
E-iceblue support team
Login to view the files attached to this post.