galkahana / PDF-Writer

High performance library for creating, modiyfing and parsing PDF files in C++
http://www.pdfhummus.com
Apache License 2.0
900 stars 215 forks source link

example of fill form in c++ #97

Open Dhle1 opened 7 years ago

Dhle1 commented 7 years ago

Hi,

do you have any example to fill a form in c++ ?

Dhle1 commented 7 years ago

Hello, how to get this var acroformObjectId = acroformInCatalog.toPDFIndirectObjectReference().getObjectID(); in c++

this interface "toPDFIndirectObjectReference" seen not found

galkahana commented 7 years ago

in C++ you cast. you can usePDFObjectCastPtr<PDFIndirectObjectReference> for this.

useful parsing info - https://github.com/galkahana/PDF-Writer/wiki/PDF-Parsing useful modification info - https://github.com/galkahana/PDF-Writer/wiki/Modification

some modification examples - https://github.com/galkahana/PDF-Writer/blob/master/PDFWriterTestPlayground/ModifyingExistingFileContent.cpp