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

Print ID Document as PDF

Explorer ,
Oct 07, 2016 Oct 07, 2016

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.

TOPICS
SDK

Views

525

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
LEGEND ,
Oct 07, 2016 Oct 07, 2016

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.

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
Explorer ,
Oct 09, 2016 Oct 09, 2016

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.

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 ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

You cannot make a preseparated output with InDesign. Why should you want to do so?

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
Explorer ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

LATEST

@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!!

 

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
LEGEND ,
Oct 10, 2016 Oct 10, 2016

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.

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
Explorer ,
Oct 10, 2016 Oct 10, 2016

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.

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 ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

Avoid Postscript: No EPS, no PDF via print. 

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
LEGEND ,
Oct 10, 2016 Oct 10, 2016

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.

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
Explorer ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

@FarzanaA 

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!!

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