![]() ![]() To see these snippets as part of a fully working application, take a look at the OfficeToPDF sample project in the PDFTron SDK. Pdfdoc.save("output_file.pdf", SDFDoc.e_linearized, null) While(conversion.getConversionStatus() = DocumentConversion.e_incomplete) convert each page, one-by-one, with progress reporting get a DocumentConversion object, which encapsulates and controlsĭocumentConversion conversion = Convert.wordToPdfConversion( Here is the same conversion, performed page-by-page and with progress reporting. That’s possible too: the interface allows for cancellation, progress reporting, page-by-page conversion, and diagnostic messages (for example, information on font substitutions). Of course, maybe you would rather have more control over the conversion process. Pdfdoc.save("output_file.pdf", SDFDoc.e_remove_unused, null) ![]() perform the conversion with no optional parametersĬonvert.wordToPdf(pdfdoc, "input_file.docx", null) Start with a PDFDoc (the conversion destination) The best way to demonstrate this is through a quick example: this small snippet demonstrates how to convert a Word document to a PDF (in Java). We’ve tried to strike a balance between power and simplicity in the API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |