Copy link to clipboard
Copied
Is the an example how to do this ?
Josef Böhm
[Moved to Scripting sub-Forum by moderator]
CallClient ("FMPublisher", "SetMCPSetting " + absolute path to STS file);
CallClient ("FMPublisher", "SetOutputLocation " + output folder path);
CallClient ("FMPublisher", "MCPPublish PDF");
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
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
Copy link to clipboard
Copied
CallClient ("FMPublisher", "SetMCPSetting " + absolute path to STS file);
CallClient ("FMPublisher", "SetOutputLocation " + output folder path);
CallClient ("FMPublisher", "MCPPublish PDF");
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
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
Copy link to clipboard
Copied
Hi
the right code is
Thanks