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
Hello, and thank you for your quick response.
please find attached files:
DocumentToPrint.pdf - the file before it is sent to printer
AfterPrint.pdf - file which is produced after print
Please find that this error happens occasionally and not every time documents are sent to printer.
Thanks again
Best regards,
Morten
Hello!
Is there any new status regarding this issue?
Thanks.
Regards,
Morten
Hi Morten,
Thanks for your inquiry. I am afraid the issue is still not resolved, It is pending for investigation in the queue as product team is busy in resolving other issues, reported earlier. We will notify you as soon as we made some significant progress towards issue resolution.
Thanks for your patience and cooperation.
Best Regards,
Hello again!
Is there any new status regarding this issue?
Thank you.
Regards,
Morten
Hi Morten,
Thanks for your inquiry. I am afraid your above reported issue is still pending for investigation. We will notify you as soon as some update is available. Thanks for your patience.
Best Regards,