DynaPDF Manual - Page 452
Previous Page 451 Index Next Page 453

Function Reference
Page 452 of 860
lbPrinting.Caption := 'Low Resolution only';
// rsModify
if info.Restrictions and rsModify <> 0 then begin
lbChangeDoc.Caption
:= 'Not Allowed';
lbPageExtraction.Caption := 'Not Allowed';
if info.Filter < kl128bit then
lbDocAssembly.Caption := 'Not Allowed';
end;
// rsAssemble
if (info.Filter >= kl128bit) and (info.Restrictions and rsAssemble <> 0) then
lbDocAssembly.Caption
:= 'Not Allowed';
// rsCopyObj
if info.Restrictions and rsCopyObj <> 0 then
lbCopyCont.Caption
:= 'Not Allowed';
// rsExtractObj
if info.Restrictions and rsExtractObj <> 0 then
lbCopyContAcc.Caption := 'Not Allowed';
// rsAddObj
if info.Filter >= kl128bit then begin
if info.Restrictions and rsAddObj <> 0 then
lbCommenting.Caption := 'Not Allowed';
// rsFillInFormFields
if info.Restrictions and rsFillInFormFields <> 0 then begin
lbFillFormFields.Caption := 'Not Allowed';
lbSigning.Caption
:= 'Not Allowed';
lbTemplCreation.Caption
:= 'Not Allowed';
end;
end;
end;
end;
end;
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetInFieldCount
Syntax:
SI32 pdfGetInFieldCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of top level fields included in the currently opened import file. The
number of top level fields may not match the number of fields in the PDF file. For example,
interactive forms created by Adobe's Designer contain usually one top level group field that
contains all other fields of the document. The return value would be 1 in this case because the
children of group fields are not taken into account.
Return values:
If the function succeeds the return value is the number of top level fields, a value greater or equal
zero. If the function fails the return value is a negative error code.
Previous topic: GetInEncryptionFlags (obsolete), GetInEncryptionInfo
Next topic: GetInIsCollection, GetInIsEncrypted, GetInIsSigned