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

Free Support Forum - aspose.com

Aspose.Pdf.dll can not support printing Pdf document with Chinese charaters

Hi, Support:
I found a bug for Aspose.pdf.dll.
A pdf document embedded Chinese characters will be printed.
If using Adobe Acrobat Professional to print it, the output is perfect, whereas using Aspose.pdf.dll to print it, the output will be wrong, for there are so many character that cannot be correctly output by the printer.
Why? How to fix it?

Thanks for your attention.

Please see the true output and the source pdf.
Output:
source pdf:Invoice.pdf (38.6 KB)
source pdf 2:Invoice (2).pdf (38.3 KB)
Source pdfs for your investigation.

@ducaisoft

Could you please share the sample code snippet that you are using to print the PDF file? We will test the scenario in our environment and address it accordingly.

Aspose.pdf.dll V21.3
Vb.net 2017
Net 4.6.1

Dim PdfPrinter As PdfViewer = New PdfViewer()
Dim PdfPage As Integer = Pdf.Pages.Count
Dim Pdf as new aspose.pdf.document(sFile)
PdfPrinter.BindPdf(Pdf)
PdfPrinter.AutoResize = True
PdfPrinter.AutoRotate = True
PdfPrinter.AutoRotateMode = AutoRotateMode.AntiClockWise
PdfPrinter.PrintPageDialog = False
PdfPrinter.HorizontalAlignment = Global.Aspose.Pdf.HorizontalAlignment.Center
PdfPrinter.VerticalAlignment = Global.Aspose.Pdf.VerticalAlignment.Center
Dim Ps As New System.Drawing.Printing.PrinterSettings
Ps.Duplex = Duplex.Default
Ps.Collate =true
Dim Pgs As New System.Drawing.Printing.PageSettings
Pgs.PaperSize = New System.Drawing.Printing.PaperSize(“A4”, 827, 1169)
Ps.PrinterName = PrinterName
Ps.MaximumCopies=32767
Ps.Copies = 1
Ps.DefaultPageSettings.Color = Ps.SupportsColor
Ps.PrintRange = Printing.PrintRange.AllPages
PdfPrinter.PrintDocumentWithSettings(Pgs, Ps)


@ducaisoft

We were able to replicate the issue in our environment while using Aspose.PDF for .NET 21.10. Therefore, an issue as PDFNET-50775 has been logged in our issue management system for the sake of correction. We will further investigate it and let you know as soon as it is fixed. Please be patient and spare us some time.

We are sorry for the inconvenience.