I've just commited the change to PDFBox 3.0.0 - see details in PDFBOX-3809. Please test with that version and let me know if that works for you. If it's fine I'll also implement the change for 2.0.
BR Maruan > Am 10.04.2018 um 16:56 schrieb Baker, Ricky <[email protected]>: > > Maruan, have you had an opportunity to look at the flatten for specific > fields? > > Thanks > ricky > > -----Original Message----- > From: Baker, Ricky > Sent: Monday, April 2, 2018 12:52 PM > To: '[email protected]' <[email protected]> > Subject: RE: flatten specific fields in a pdf > > Maruan, I added the pdf and a word doc showing a screen shot of some of the > fields to PDFBOX-3809 > > thanks > Ricky > > > > -----Original Message----- > From: Maruan Sahyoun <[email protected]> > Sent: Sunday, April 1, 2018 12:24 PM > To: [email protected] > Subject: Re: flatten specific fields in a pdf > > Could you add a sample PDF and the list of fields you'd like to get flattened > to > > • PDFBOX-3809 > > I'll look to get something done but that's based on the requirements that all > fields and their annotations need to be properly defined i.e. have the pages > they relate to set etc. > > BR > Maruan > > >> Am 01.04.2018 um 16:02 schrieb Tilman Hausherr <[email protected]>: >> >> Known bug :-( >> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FPDFBOX-3809&data=02%7C01%7Cricky.baker%40ttu.edu%7C46e2d9b7e87d4c4c8f6a08d597f5724a%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C1%7C636582002816162481&sdata=3r5VDNmYuyBQOr%2F7OmtcVWjilFGtaFbBD4vXIFlX2VA%3D&reserved=0 >> >> Tilman >> >> Am 30.03.2018 um 20:02 schrieb Baker, Ricky: >>> I have tried using the flatten for specific fields but it flattens all >>> fields even when I only pass in one PDField. Can someone point me to a >>> working example? >>> >>> >>> >>> public void >>> flatten(List<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdownload.oracle.com%2Fjavase%2F1.6.0%2Fdocs%2Fapi%2Fjava%2Futil%2FList.html%3Fis-external%3Dtrue&data=02%7C01%7Cricky.baker%40ttu.edu%7C46e2d9b7e87d4c4c8f6a08d597f5724a%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C1%7C636582002816162481&sdata=xRt17TzZraSs5iZvMTVM%2BT6lJhUqQaAFLGSK4SfUWGI%3D&reserved=0><PDField<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpdfbox.apache.org%2Fdocs%2F2.0.7%2Fjavadocs%2Forg%2Fapache%2Fpdfbox%2Fpdmodel%2Finteractive%2Fform%2FPDField.html&data=02%7C01%7Cricky.baker%40ttu.edu%7C46e2d9b7e87d4c4c8f6a08d597f5724a%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C1%7C636582002816172489&sdata=ksC3C1itEatd18%2B5XCFpzayUK6YQOsH8%2Fidomr1Lt3s%3D&reserved=0>> >>> fields, >>> >>> boolean refreshAppearances) >>> >>> throws >>> IOException<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdownload.oracle.com%2Fjavase%2F1.6.0%2Fdocs%2Fapi%2Fjava%2Fio%2FIOException.html%3Fis-external%3Dtrue&data=02%7C01%7Cricky.baker%40ttu.edu%7C46e2d9b7e87d4c4c8f6a08d597f5724a%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C1%7C636582002816172489&sdata=05r6c92%2BC2303zUtStQRukNryOvkIXJcU8jZ5eLYFOM%3D&reserved=0> >>> >>> This will flatten the specified form fields. >>> >>> >>> >>> Thanks >>> Ricky Baker >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

