Reputation: 151
I'm trying to fill an XFA form using the example file using PdfBox 2 or 3 from: https://issues.apache.org/jira/secure/attachment/12964530/XFAFormFiller.java
I'm not so used to PDFBox so not sure how to correct it.
Line 107 I tried to fix with
Set<COSDictionary> objectsToWrite = new HashSet<>();
Line 121 I tried to fix with
COSWriter writer = new COSWriter(fos, new RandomAccessReadBuffer(baos.toByteArray()), objectsToWrite);
Line 128 I tried to fix with:
objectsToWrite.add(dataSetsStream);
<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
><xfa:data
><mycompany
>
.....
><mycompany
></dd:dataDescription
></xfa:datasets
>
Any help is appreciated.
Upvotes: 1
Views: 635