Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Set default printer in a pdf created with Aspose.Pdf

$
0
0
On a website, we have to create a pdf with address labels. 
Since the customer has a dedicated label printer, it would be nice if the default printer could be set right into the pdf document while we create it. 

With the following code we are able to open the printer dialog when a pdf is opened. 
                Aspose.Pdf.Document doc = new Aspose.Pdf.Document(filePath);
                doc.OpenAction = new JavascriptAction("this.print({bUI:true,bSilent:false,bShrinkToFit:true});");

Question: Is it possible to set the printer to be used as default in a similar way?

Viewing all articles
Browse latest Browse all 3131

Trending Articles