Last active
August 24, 2020 13:52
-
-
Save aspose-com-gists/0db82d4e131be0821f3fdb1b21f86e47 to your computer and use it in GitHub Desktop.
This Gist contains examples for Aspose.PUB for Java.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initial commit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-pub/Aspose.PUB-for-Java | |
IPubParser parser = PubFactory.createParser(fileName); | |
Document doc = parser.parse(); | |
com.aspose.pub.PubFactory.createPdfConverter().convertToPdf(doc, "/users/kashifiqbal/documents/result_out.pdf"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-pub/Aspose.PUB-for-Java | |
IPubParser parser = PubFactory.createParser(fileName); | |
Document document = parser.parse(); | |
document.getDocumentSummaryInfo().setCategory("category"); | |
document.getDocumentSummaryInfo().setCompany("company"); | |
document.getDocumentSummaryInfo().setLanguage("language"); | |
document.getSummaryInfo().setComments("comments"); | |
document.getSummaryInfo().setKeywords("keywords"); | |
document.getSummaryInfo().setLastAuthor("last author"); | |
document.getSummaryInfo().setTitle("title"); | |
document.getSummaryInfo().setSubject("subject"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-pub/Aspose.PUB-for-Java | |
com.aspose.pub.License license = new com.aspose.pub.License(); | |
license.setLicense("Aspose.Pub.Java.lic"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-pub/Aspose.PUB-for-Java | |
com.aspose.pub.License license = new com.aspose.pub.License(); | |
license.setLicense(new java.io.FileInputStream("Aspose.Pub.Java.lic")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment