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

Free Support Forum - aspose.com

Default settings for PostScript level and Binary data when printing PDF using Aspose.PDF

We are planning to purchase Aspos.PDF and downloaded trial version.
We are now operating a program with Adobe Acrobat method PrintPages when printing PDF.
We would like to rewrite it with Aspose.PDF using objPdfViewer.PrintDocument().

Our program is now executing with arguments of 2 for PostScript level and 0 for Binary data.
We could not find properties of objPdfViewer.PrintDocument() for PostScript level and Binary data.
Is there any way to set those values?
If not, we would like to know what values are set for them as a default.

Thank you.
Kanaboshi

@Kanaboshi

We need to further investigate the requirements of yours. However, could you please explain a bit more about the PostScript Level and Binary Data? Does it mean that you want to print the PDF document and generate both PostScript and Binary Data? It would be quite useful if you could please provide a sample input PDF along with your desired outputs.

We are now printing PDF files with following methods and arguments.

[Adobe Acrobat printing method]
AcroAVDoc.PrintPagesSilent(0, intPage, 2, 0, 0) <–Current values

1.long FirstPage
The first page to be printed. The first page in a PDDoc object is page 0.
2.long LastPage
The last page to be printed.
3.long PSLevel
If 2, PostScript Level 2 operators are used. If 3, PostScript Language Level 3 operators are also used.
4.long BinaryOk
If a positive number, binary data may be included in the PostScript program. If 0, all data is encoded as 7-bit ASCII.
5.long ShrinkToFit
If a positive number, the page is shrunk (if necessary) to fit within the imageable area of the printed page. If 0, it is not.

The 3rd argument is PostScript Level, and the 4th is BinaryOk.
We do not generate PDF files but print them.
Honestly speaking we do not understand the necessity of 3rd and 4th arguments.
We currently set 3rd and 4th arguments only because they are required.

We are evaluating objPdfViewer.PrintDocument() aiming to replace Adobe method with yours.
As far as we print several PDF files with your method, there is no problem.
And we imagine objPdfViewer.PrintDocument() has some default values for PostScript Level and BinaryOk.
Or does PostScript Level and BinaryOk have nothing to do with printing process?
Could you please advise us our understanding is correct or not?
If we are on the right track, we will purchase Aspose.PDF.

Just for your reference, below URL Adobe describes details.

Adobe SDK documentation

Thank you.

@Kanaboshi

As far as your above inquiry is concerned, Aspose.PDF API does not offer any method or property to specify Postscript level and Binary data.

We need to further check about default settings for the printing process which PdfViewer.PrintDocument() uses. Usually, it uses the settings specified for your default printer or you can further use PrintDocumentWithSettings() method and specify printing settings using System.Drawing.Printing.PrinterSettings Class.

For further investigation against your inquiry, we have logged a ticket as PDFNET-48896 in our issue tracking system. We will further look into its details and keep you informed as soon as it is resolved. Please be patient and give us some time.

We are sorry for the inconvenience.