Skip to main content
josefboehm
Participant
September 20, 2018
Answered

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

  • September 20, 2018
  • 3 replies
  • 970 views

Is the an example how to do this ?

Josef Böhm

[Moved to Scripting sub-Forum by moderator]

This topic has been closed for replies.
Correct answer frameexpert

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

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

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

3 replies

josefboehm
Participant
October 1, 2018

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

josefboehm
Participant
September 28, 2018

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

Inspiring
September 28, 2018

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

josefboehm
Participant
September 27, 2018

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

Inspiring
September 27, 2018

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