RE: flatten specific fields in a pdf

2018-04-10 Thread Baker, Ricky
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: 'users@pdfbox.apache.org' 
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  
Sent: Sunday, April 1, 2018 12:24 PM
To: users@pdfbox.apache.org
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 :
> 
> Known bug :-(
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FPDFBOX-3809=02%7C01%7Cricky.baker%40ttu.edu%7C46e2d9b7e87d4c4c8f6a08d597f5724a%7C178a51bf8b2049ffb65556245d5c173c%7C0%7C1%7C636582002816162481=3r5VDNmYuyBQOr%2F7OmtcVWjilFGtaFbBD4vXIFlX2VA%3D=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>
>>  fields,
>> 
>>boolean refreshAppearances)
>> 
>>  throws 
>> IOException
>> 
>> This will flatten the specified form fields.
>> 
>> 
>> 
>> Thanks
>> Ricky Baker
>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



Re: Fill XFA pdf using PDFBox

2018-04-10 Thread Maruan Sahyoun
Hi Kush,
 
> Hello apache,
> 
> 
> I'm new to PDFBox library. I want to fill an XFA pdf by extracting the fields 
> and setting their corresponding value. I did a basic research and came across 
> this 
> (https://mail-archives.apache.org/mod_mbox/pdfbox-users/201409.mbox/%3c420ecc47-637a-4abf-9544-e0eadeaed...@fileaffairs.de%3E
>  and https://stackoverflow.com/a/21169130/8603014).

The stackoverflow link you provided has an example code. Does that work
for you?

Please note that at this point in time you can not fill out a form
which contains Reader Extensions i.e. you need to reaply these after
you've filled out the form or they will be deactivated.

BR
Maruan

> 
> 
> Also, I did not find any example for filling an XFA pdf on the SVN repository 
> for PDFBox 
> (https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/).
> 
> 
> Can you please provide a simple example to do the aforementioned task?
> 
> 
> Many thanks,
> 
> Kush
> 
-- 


-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



Fill XFA pdf using PDFBox

2018-04-10 Thread Kush Patel
Hello apache,


I'm new to PDFBox library. I want to fill an XFA pdf by extracting the fields 
and setting their corresponding value. I did a basic research and came across 
this 
(https://mail-archives.apache.org/mod_mbox/pdfbox-users/201409.mbox/%3c420ecc47-637a-4abf-9544-e0eadeaed...@fileaffairs.de%3E
 and https://stackoverflow.com/a/21169130/8603014).


Also, I did not find any example for filling an XFA pdf on the SVN repository 
for PDFBox 
(https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/).


Can you please provide a simple example to do the aforementioned task?


Many thanks,

Kush