PDFA Values

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

PDFA Values

Post by jeffp »

I use the code below to convert a document into a PDFA compliant document.

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;

Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PDFA Values

Post by Sasha - Tracker Dev Team »

Hello Jeff,

I used the word Conformance in the forum Search and found this:
https://forum.pdf-xchange.com/ ... 06#p104006

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: PDFA Values

Post by jeffp »

Thanks. I missed that one.

What is the most common PDFA type these days? What should I set as the default? PDF/A-2b?

--Jeff
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PDFA Values

Post by Sasha - Tracker Dev Team »

Hello Jeff,

The GetFormatConverterParams method returns the default values. Simply don't set the

Code: Select all

params.SetInt('Part', 1); 
params.SetInt('Conformance', 1);
And the Editor's defaults will be taken.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply