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

Community Beginner ,
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

343

Likes

Translate

Translate

Report

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

1 Correct Answer

Community Beginner , Sep 30, 2018
josefboehm Community Beginner , Sep 30, 2018
Hithe right code isCallClient ("FMPublisher", "SetMCPSetting " + absolute path to STS file);  CallClient ("FMPublisher", "SetOutputLocation " + output folder path);  CallClient ("FMPublisher", "MCPPublish PDF");  Thanks

Likes

Translate

Translate
Jump to answer Jump to answer
Community Beginner ,
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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Engaged ,
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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
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");

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Beginner ,
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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Engaged ,
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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Beginner ,
Sep 30, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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