Viewer component not printing form fields

I create a pdf form, import an fdf, save it and when using the aspose viewer to print it, it doesn't print the form fields. Here is the code I use to fill form:

Dim pdffrm As Form = New Form(formname, outfile)

Dim strm As FileStream = New FileStream(fdfname, FileMode.Open)

pdffrm.ImportFdf(strm)

pdffrm.FlattenAllFields()

pdffrm.Save()

strm.Close()

code to print document:

Dim viewer As New PdfViewer

viewer.OpenPdfFile(pdfname)

viewer.AutoResize = True

viewer.PrintPageDialog = False

If Not Printername = "" Then

Dim ps As New PrinterSettings

ps.PrinterName = Printername

Dim pgs As New PageSettings()

pgs.PaperSize = New PaperSize("A4", 827, 1169)

pgs.Margins = New Printing.Margins(0, 0, 0, 0)

viewer.PrintDocumentWithSettings(pgs, ps)

Else

viewer.PrintDocument()

End If

viewer.ClosePdfFile()

Please help as I need to implement this quite urgently.

Hi Frank,

Thank you very much for considering Aspose.

I’m afraid, we also need the input PDF file, which you’re trying to print, in order to investigate the issue at our end. You can attach the PDF with your reply post.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,


Attached is a zip file with the pdf form, the fdf data file and the generated pdf document which doesn’t print fields with aspose viewer.

Hi Frank,

I have tested this issue using Aspose.Pdf.Kit for .NET 5.1.0, but couldn’t reproduce it at my end. Could you please make sure that you’re using the latest version? If you’re already using latest version and still find the same problem then please share the following details with us: OS and .NET Framework version. We’ll further investigate it at our end and update you accordingly.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,

I am using the latest version.

My OS is Windows 7 Home Premium 64-bit and using VS2010

Hi Frank,

Thank you very much for sharing further details. We’re investigating this issue at our end and you’ll be updated with the results shortly.

We’re sorry for the inconvenience.
Regards,

Hi Frank,

Could you please download the attached sample and try at your end? I tested the issue using this sample and your particular scenario, but couldn’t reproduce it; I have used 5.2.0 DLL in this sample. Please try to execute the sample and see if it works at your end or not. Kindly share the results with us, so we could guide you accordingly. Also, please change the printer name to your own printer.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,