Why filled PDF form answers can appear blank: values, appearances and flattening
A common complaint is that a PDF form was filled in and sent, yet the recipient sees it as blank, though the answers are actually stored in the file. Form field values live in the /V entry, while the visible box is drawn from a separate appearance stream in /AP, so a viewer that paints the stored appearance will show nothing if the two disagree. The article identifies three causes: values never saved to the file, values written without regenerating appearances, and XFA forms whose data only displays in Adobe Reader. It demonstrates a pdf-lib example where the value is set directly and the appearance stays empty, and notes that the high-level setText API rebuilds appearances, so it is safer. It also cautions that checking whether /AP exists does not prove it is correct, and mentions the NeedAppearances flag as a way to ask viewers to regenerate appearances on open.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in