Dear PoDoFo,

I successfully compiled PoDoFo lib with vs2013 win64. I've created a GUI
(vs2013 + Qt5) and I want to read PDF that contain checkboxes. I'm not an
expert of PDF but I would like to know how can I read the value of those
checkboxes (true or false) using PoDoFo library. Is there any documentation
about how to extract the field value of the acroform? Please I would
appreciate your help on this matter

here is my ocde so far:

        PoDoFo::PdfMemDocument pdf;
pdf.Load("myPdf.pdf");
PoDoFo::PdfAcroForm *acroform = pdf.GetAcroForm();
if (!acroform){
QMessageBox::StandardButton msg = QMessageBox::critical(this, "Critical",
"Cannot find acroform!", QMessageBox::Cancel);
return;
}

PoDoFo::PdfObject* obj =
acroform->GetObject()->GetDictionary().GetKey(PoDoFo::PdfName("Fields"));
if (!obj)
{
QMessageBox::StandardButton msg = QMessageBox::critical(this, "Critical",
"Cannot find Fields!", QMessageBox::Cancel);
}


Thanks in advance!

Best Regards.

Massi
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to