However, I want to account for all PDF/A types. As such, could you tell me what value to enter into the "Part" and "Conformance" items below to produce the following:
PDFA_1a
PDFA_1b
PDFA_2a
PDFA_2b
PDFA_2u
PDFA_3a
PDFA_3b
PDFA_3u
Also, what is the most common type or the one I should use as default?
Code: Select all
for i := 0 to INST_PXV.ExportConvertersCount - 1 do
begin
cnv := INST_PXV.ExportConverter[i];
cnv.Get_ID(AName);
if SameText(AName, 'conv.exp.pdfa') then break;
cnv := nil;
end;
if Assigned(cnv) then
begin
cab := INST_PXV.GetFormatConverterParams(False, PChar('conv.exp.pdfa'));
if Assigned(cab) then
begin
params := cab.Root;
APDFAPart := Max(1, Min(APDFAPart, 3));
params.SetInt('Part', 1);
params.SetInt('Conformance', 1);
params.SetInt('ShowReport', 0);
params.SetString('ErrorMessage', 'false');
FDocEx.Save(destPath, PXV_DocSave_NoProgress, nil, cnv, cab, nil, nil, 0);
Result := FileExists(AOutputName);
end;
end;