Copy link to clipboard
Copied
Hello,
I am trying to Print the InDesign Document as PDF by using the Print Preset file(.prst). I am trying this using the reference of the Snippet Code under SnpPrintDocument. But it keeps on asking me for the output filename. I have given the path of the Output file under IPrintData->SetFileName(). Also specified IPrintData information into IPrintCmdData by using printActionCmdData->SetPrintData(iPrintData) before executing the command.
Has anyone tried this before? if so can someone help please and let me know what I am doing wrong.
Thanks in Advance.
Farzana.
Copy link to clipboard
Copied
If you want to make a PDF, you need to automate the export function, not printing to PDF. Printing to PDF is considered very poor working practice, essentially obsolete, though a few die hards still use it.
If you really really must use the Adobe PDF driver, it has its own API, you cannot use a filename setting option.
Copy link to clipboard
Copied
Hi,
Thanks for the reply. But basically i would like to export PDF with Composite and Separation options. Is that available with standard Export to PDF api's. I do have Export to functionality in place but client is asking for Separation which was found in Print. Thus switched to it.
Also I tried my own command of Print. It does save the PDF file but on opening it shows file is not of appropriate format.
Thanks and Regards
Farzana.
Copy link to clipboard
Copied
You cannot make a preseparated output with InDesign. Why should you want to do so?
Copy link to clipboard
Copied
@Willi AdelbergerI want to implement this as kPDFExportCmdBoss is returning error 9485 on Windows (only on a couple of PCs). So as an alternative, I want to print to PDF if kPDFExportCmdBoss returns an error.
https://community.adobe.com/t5/indesign-discussions/kpdfexportcmdboss-fails-error-9485/m-p/14326080#...
Thanks!!
Copy link to clipboard
Copied
If you must separate, then you have to print. This workflow too is considered obsolete as separation should happen in the RIP. But the client rules.
I don't know the InDesign API but to automate the Acrobat PDF printer you must use information in the Acrobat SDK. Or, print to PostScript with the Distiller PPD and use a different API to run Distiller. This is better as you can choose job options (And the default job options are unsuitable).
Bear in mind if considering a server that you may need InDesign Server and you MUST NOT USE ACROBAT as it is forbidden by the license. You can use instead LiveCycle PDF Generator through its Java API.
Copy link to clipboard
Copied
Hi,
So according to you there is no way to Print the document as PDF on design or Server programatically. But we can generate postscript. Right.
I am trying to export Postscript now with Separations. Again not coming as expected. It is not referring to my Preset file.
Regards
Farzana.
Copy link to clipboard
Copied
Avoid Postscript: No EPS, no PDF via print.
Copy link to clipboard
Copied
On a server you could do this programmatically using the LiveCycle PDF Generator Product (PostScript edition) about which I know nothing except that it has a Java API and has a high price ticket.
Copy link to clipboard
Copied
have you managed to print InDesign document to PDF using the Snippet Code under SnpPrintDocument? If yes can you please share more details. May be a sample code snippet if possible.
Thanks!!