Print pdf document with java

I am looking for a method to print a pdf file to any windows network printer with dialog to prompt user (server process). I did not see anything in your examples. I assume I can sue the following code: PdfViewer viewer = new PdfViewer(); viewer.openPdfFile("c:\tmp est.pdf"); viewer.setAutoResize(true); viewer.setAutoRotate(true); viewer.setPrintPageDialog(false); // The following method needs a PageSettings and PrinterSettings. I did not see the class nor what to provide. viewer.printDocumentWithSettings( /* Need something here */) viewer.closePdfFile();

I will like to have some examples about the PageSettings and PrinterSettings.

Thanks.


Hi Kaiyu,


Thanks for your interest in Aspose.

I’ve also noticed that PageSettings and PrinterSetting classes are missing. So we’ve logged an investigation ticket PDFNEWJAVA-33805 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,

I am evaluating your product to replace the java library we have now. Without this function, it is hard for me to do the evaluation, therefore, I am unable to suggest a purchase. We are using your .NET library and I got good reviews from my peers. I hope you can have this resolved as soon as possible.

Hi Kaiyu,


The current versions of Aspose.Pdf for Java were autoported from its sibling Aspose.Pdf for .NET and with every new release, we are working hard on making it as robust and powerful as Aspose.Pdf for .NET. We will definitely consider resolving the issue as soon as possible. Please be patient and spare us little time.

I understand. However, I do have a deadline I have to meet for our product. If this issue is not resolved soon and I can’t evaluate your product, I have to look some other similar PDF products.

Hi Kaiyu,


Thanks for your sharing your concerns. We have recorded the concern and shared with our development team. We have requested our development team to investigate the issue and provide an ETA at their earliest.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNEWJAVA-33805) have been fixed in Aspose.Pdf for Java 10.1.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(1)