Unable to open XFA PDF with PDF for C++ v. 18.3

Hello. My goal is to open a PDF containing XFA and submit that to a printer, but at this point I’m seeing an error when just opening the document:

    system_io_stream:2: parser error : Extra content at the end of the document
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
                                                  ^
    system_io_stream:1: parser error : StartTag: invalid element name
    </xdp:xdp>
     ^

This PDF opens and looks fine in Acrobat.

The sample app I’m using looks like this:

auto lic = MakeObject<Aspose::Pdf::License>();
lic->SetLicense(u"Aspose.Total.Product.Family.lic");
String filename = u"321Z16G_00DM00PPL000L1W.pdf";
auto doc = MakeObject<Document>(filename);

Any assistance on this would be greatly appreciated!

thank you,
Randy
321Z16G_00DM00PPL000L1W.pdf (63.7 KB)

@rrrandy,

We are investigating your scenario in our environment and will get back to you soon.

@rrrandy

Thanks for your patience.

We have tested the scenario in our environment and were able to notice the exception while using Aspose.PDF for C++ 18.3. We have logged this issue as PDFCPP-680 in our issue tracking system, for the sake of correction. We will further investigate the reasons behind the issue and keep you posted with the status of its rectification. Please be patient and spare us little time.

We are sorry for the inconvenience.