• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can i use the FS_PDFUseDistiller porperty ? And how can i set the STS file?

New Here ,
Sep 20, 2018 Sep 20, 2018

Copy link to clipboard

Copied

Is the an example how to do this ?

Josef Böhm

[Moved to Scripting sub-Forum by moderator]

TOPICS
Scripting

Views

537

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 27, 2018 Sep 27, 2018

CallClient ("FMPublisher", "SetMCPSetting " + absolute path to STS file);

CallClient ("FMPublisher", "SetOutputLocation " + output folder path);

CallClient ("FMPublisher", "MCPPublish PDF");

Votes

Translate

Translate
New Here ,
Sep 27, 2018 Sep 27, 2018

Copy link to clipboard

Copied

Ok I found some solution for  this :

1. Get params with F_ApiGetSaveDefaultParams

2. then set/replace  FS_PDFUseDistiller to  FALSE in the params

3. Save the document as PDF with F_ApiSave

-> now it will be used the new PDF-Engine .

But how can I set an sts config file or should I set joboption "name".

With old FrameMaker version we set only the joboption Name with FP_PDFJobOption.

But what I should do now with 2019 SDK- FrameMaker ?

Josef

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 27, 2018 Sep 27, 2018

Copy link to clipboard

Copied

Hi Josef,

nice to meet you here. Not sure for FM 2019 for the Moment, but in FM 2017 it works as follows and I think it didn't change

Setting STS file

CallClient("FMPublisher", "SetOutputLocation youroutputpath");

Setting Output path

CallClient("FMPublisher", "SetMCPSetting yourstsfile.sts");

Execute Publishing process

CallClient("FMPublisher", "MCPPublish applicationname");

while application is something like "Responsive HTML5" or "PDF" (I think it's that what you see in Publishing dialog

If someone knows of any Document or Book property please let me know

if CallClient returns something != 0 Action failed)

CU

Markus

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2018 Sep 27, 2018

Copy link to clipboard

Copied

CallClient ("FMPublisher", "SetMCPSetting " + absolute path to STS file);

CallClient ("FMPublisher", "SetOutputLocation " + output folder path);

CallClient ("FMPublisher", "MCPPublish PDF");

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

Hi,

so I have the solution. I use the C++ FDK.

{code}

F_ApiCallClient((ConStringT)"FMPublisher", (ConStringT) "SetMCPSetting C:\Program Files\Adobe\Adobe FrameMaker 2019\fminit\Publisher\\Default.sts");

F_ApiCallClient((ConStringT)"FMPublisher", (ConStringT) "SetOutputLocation  C:\\temp");

F_ApiCallClient((ConStringT)"FMPublisher", (ConStringT) "MCPPublish  PDF");

{code}

Thanks Josef

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

Hi Josef,

this is an Extend Script Forum, so you will always get code in ExtendScript Syntax.

Please mark this thread as answered and select one of the answers als the correct one

Markus

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 30, 2018 Sep 30, 2018

Copy link to clipboard

Copied

LATEST

Hi

the right code is

  1. CallClient ("FMPublisher", "SetMCPSetting " + absolute path to STS file); 
  2. CallClient ("FMPublisher", "SetOutputLocation " + output folder path); 
  3. CallClient ("FMPublisher", "MCPPublish PDF"); 

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines