We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Priniting using Aspose.PDF

Hi,

Our requirement is like we have some documents like Ms-word and MS-Excel ,this document need to converted into PDF and need to be printed.our's is an web application.

my code for printing is below

com.itextpdf.text.Document document = new com.itextpdf.text.Document();

com.itextpdf.text.pdf.PdfWriter writer = com.itextpdf.text.pdf.PdfWriter.getInstance(document,resourceResponse.getPortletOutputStream());

document.open();

//printing is possible with below method.

writer.addJavaScript("this.print(false);", false);

//below we are adding the pdf file using add method

document.add();

document.close();

now can Aspose parse excel sheets/ms-word and provide it to document.add() method.So that it would be easy to integrate it with our Application.Or is there any other way to merge Excel sheet/MS-Word docs in PDF and Printing be possible.

Thanks

Docufind User

Hi Docufind User,

You can use Aspose.Pdf.Kit for Java to print the PDF files. So now according to your requirement, you can use Aspose.Words for Java to convert MS-word docs to PDF and can use Aspose.Cells for Java to save Excel sheets into PDF and then simply use Aspose.Pdf.Kit for Java to print PDF files. Now if you want to combine these PDF files before printing, you can use Aspose.Pdf.Kit for Java for this purpose. Check out following link for more details.

http://www.aspose.com/documentation/java-components/aspose.pdf.kit-for-java/pdfviewer.html

http://www.aspose.com/documentation/java-components/aspose.pdf.kit-for-java/concatenate-pdf-documents.html

Can we do it in a web application on the fly without storing the converted pdf’s (from word/excel) in server memory.Can you help me on this.