Hello,
We use Aspose PDF to convert and print documents.
For some strange reasons we occasionally have problems printing a document using Aspose.Pdf.Facades.PdfViewer.PrintDocument. It seems that the problem occur when nordic characters (æ,ø, å etc) is in use, but it does not happen every time nordic characters is in use.
If we use Acrobat to print, the documents are always printed correctly.
If we use the PdfViewer to print, sometimes some of the characters are missing or represented as square bullets etc.
We have also tried to save the byte-array to a new PDF-document using Aspose.Pdf.Document.Save() and when opened in Acrobat it is displayed correctly.
Below sample print code used:
public static void PrintPDF(byte[] fileBytes)
{
Aspose.Pdf.License pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense("Aspose.Pdf.lic");
MemoryStream ms = new MemoryStream(fileBytes);
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(ms);
Aspose.Pdf.Facades.PdfViewer viewer = new PdfViewer(pdfDocument);
viewer.PrintPageDialog = false;
viewer.PrintDocument();
viewer.Close();
}
Do you have any ideas how to resolve this?
Thanks
Morten