I have a PDF form created using Adobe LC 8.0 that contains several fields.
But a call to PdfPage::GetNumFields() returned 0. However, if I used a PDF
form that is created by the test program "FormTest", the method returns 4,
which is correct. Below is the code fragment:
--
PdfMemDocument doc(in);
EPdfVersion ver;
PdfPage *pPage;
int n_pages;
int n_fields;
int i;
int ret = 0;
ver = doc.GetPdfVersion();
std::cout << std::endl << "ver: " << ver << std::endl;
n_pages = doc.GetPageCount();
std::cout << "n_pages: " << n_pages << std::endl;
for (i = 0; i < n_pages; i++)
{
pPage = doc.GetPage(i);
n_fields = pPage->GetNumFields();
std::cout << "Page " << i + 1 << " contains " << n_fields << " fields."
<< std::endl;
}
--
Output for PDF form created using Adobe LC 8.0:
--
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
Demand loading on, but can't demand-load from object stream.
<<
/Type /XRef
/DecodeParms <<
/Columns 4
/Predictor 12
>>
/Filter /FlateDecode
/ID [ <98A982FE16217044BF869AC321041E90> <FA231DF51A451A48947ED257A3F049D0>
]
/Index [ 34 17 ]
/Info 33 0 R
/Length 58
/Prev 146737
/Root 35 0 R
/Size 34
/W [ 1 2 1 ]
>>
ver: 7
n_pages: 1
Page 1 contains 0 fields.
--
Output using PDF form created by FormTest:
--
DEBUG: Size=18
DEBUG: Reading numbers: 0 18
DEBUG: Reading XRef Section: 0 with 18 Objects.
<<
/ID [ <80F93F1AD5492DB25ED5794270995A4D> <80F93F1AD5492DB25ED5794270995A4D>
]
/Info 2 0 R
/Root 1 0 R
/Size 18
>>
ver: 3
n_pages: 1
Page 1 contains 4 fields.
--
The only difference is the creator of the PDF form.
Thanks.
On Thu, May 6, 2010 at 10:07 PM, Leonard Rosenthol <[email protected]>wrote:
> There is nothing special about such a PDF. It follows the ISO 32000-1
> specification.
>
>
>
> What do you believe is the issue?
>
>
>
> Leonard
>
>
>
> *From:* shoks [mailto:[email protected]]
> *Sent:* Thursday, May 06, 2010 4:23 AM
> *To:* [email protected]
> *Subject:* [Podofo-users] parse PDF created by Adobe LC
>
>
>
> Hi,
>
> Does PoDoFo supports PDFs created by Adobe LiveCycle 8.0? Also is there a
> list of unsupported specs (1.7), or just the limitations of the current
> version?
>
> Thanks
>
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users