pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: needsappearances flag
Date Thu, 11 Jun 2015 09:15:18 GMT
Hi,
> Am 10.06.2015 um 18:44 schrieb Daniel Young <danielyoung.private@gmail.com>:
> 
> Hello,
> 
> Wondering if anyone can give an example of the proper way to set the
> needsappearances flags on an acroForm? Currently, having an issue with PDF
> fields filled with PFDBox, using setValue, not rendering in Chromes native
> PDF viewer. I remember that this flag may help in that situation. Any help
> either way is much appreciated.


for PDFBox 2. there is already a setter/getter within PDAcroForm. For PDFBox 1.8 you could
do

COSDictionary dictionary = PDAcroForm.getDictionary();
dictionary.setBoolean(COSName.NEED_APPEARANCES, true);

BR
Maruan

> 
> Thanks.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message