You will want to use the PDF library instead of trying to implement all this yourself, otherwise you will get bogged down in processing variations of linearized documents, filters, incremental updates, object streams, cross-reference streams and more.
; , , Adobe ISO 32000: 2008 , PDF v1.7 ISO- .
, PDF v1.7 8,7 ( ), 3.6.1 ( ) 8.6 ( ).
:
- "Perms" "AcroForm".
- "" "DocMDP", "UR" "UR3". , , , , Reader.
- "AcroForm"; (, "XFA", , Porgy Bess: !). , () "SigFlags", . "", "FT" ( ), "Sig" (), "V" (Value), .
PDF, , , , .