Hi, I am working with large pdf files and need to use direct to file mode.
Thanks for your inquiry. Please note aspose.pdf (legacy Aspose.Pdf for java) is used to create new PDF document. You may use [com.aspose.pdf]
(http://www.aspose.com/docs/display/pdfjava/Working+with+com.aspose.pdf) package or [com.aspose.pdf.facades]
(http://www.aspose.com/docs/display/pdfjava/Working+with+com.aspose.pdf.facades) package to edit work with existing PDF documents and can use direct to file mode as well.
Please feel free to contact us for any further assistance.
Thanks for confirming my doubts.
ashwin.nikam:Also another forum link points to code which used 'BinaryFileStream' which apparently is removed from the latest distribution of Aspose.pdf.
I have also observed that BinaryFileStream is missing from aspose.pdf package of Aspose.Pdf for Java API. For the sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-34206. We will investigate this issue in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.
But i still dont have a way to write my pdf direct to file using java. As mentioned in one of the comment can i use facades to do it?
Or do I need to wait for the issue with BinaryFileStream is fixed.
Direct to file mode is supported by aspose.pdf package and its useful when creating large PDF files. However when using an existing PDF file, you do not need to use direct-to-file mode. The com.aspose.pdf.Document class present in com.aspose.pdf package and the classes present under com.aspose.pdf.facades package can load existing PDF files and there is not specific restriction regarding the size of input file. You may try using this approach to load files of any size. In case you encounter any issue while using either approach or you have any further query, please share the resource files and the code snippet so that we can further investigate the issue at our end.
I would recommend you to visit the following links for further information on
- [Working with com.aspose.pdf]
- [Working with com.aspose.pdf.facades]