https://github.com/sandysanthosh/aspose-doc-to-pdf
Document & Browser object model
https://github.com/sandysanthosh/aspose-doc-to-pdf
aspose build data doc java pdf
Last synced: 13 days ago
JSON representation
Document & Browser object model
- Host: GitHub
- URL: https://github.com/sandysanthosh/aspose-doc-to-pdf
- Owner: sandysanthosh
- Created: 2018-01-04T18:08:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T13:11:01.000Z (about 6 years ago)
- Last Synced: 2025-02-28T20:58:03.852Z (over 1 year ago)
- Topics: aspose, build, data, doc, java, pdf
- Size: 13.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aspose DOC TO PDF TO XML TO HTML
## Document to PDF:
public class test
{
public static void main(String args[]) throws Exception{
Doument doc = new Document("X:\\W TUTORIALS\\DOCUMENT\\DOCUMENT.doc");
doc.save("X:\\W TUTORIALS\\DOCUMENT\\pdfDOCUMENT.pdf");
doc.save("X:\\W TUTORIALS\\DOCUMENT\\pdfDOCUMENT.pdf",SaveFormat.TEXT);
}
}
### To Render only a first Page:
public class test
{
public static void main(String args[]) throws Exception{
Doument doc = new Document("X:\\W TUTORIALS\\DOCUMENT\\DOCUMENT.doc");
PdfSaveOptions saveoptions = new PdfSaveOptions();
saveoptions.setPageIndex(0); // defines the first page to start savings
saveoptions.setPageCount(1); //saves only first page
doc.save("X:\\W TUTORIALS\\DOCUMENT\\pdfDOCUMENT.pdf");
doc.save("X:\\W TUTORIALS\\DOCUMENT\\pdfDOCUMENT.pdf",SaveFormat.TEXT);
}
}
## Document to PDF,TXT:
Document doc = new Document("F:\\starwalt\\ava aspose jars\\tt.doc");
doc.save("F:\\starwalt\\ava aspose jars\\testydf.pdf");
doc.save("F:\\starwalt\\ava aspose jars\\tt.txt", SaveFormat.TEXT);
## SaveFormat :
DOC
DOM
DOCX
DOT
DOTM
DOTX
EPUB
FLAT_OPC
HTML
MHTML
OTT
RTF
PDF
TEXT
WORD_ML
XAML_FIXED