Skip navigation
spacecowboyuk
Currently Being Moderated

InDesign Server Developer Edition, PDF export problem

Mar 2, 2011 2:29 AM

I'm currently testing our application on IDS CS5, using Developer Edition. Whenever I attempt to export a PDF, I receive the following error:

Wed Mar  2 10:17:29 2011 WARN [server] Colour in one or more placed graphics cannot be represented as CMYK.  Non-CMYK colour is not compliant with the PDF/X-1a standard. You can click OK to produce a valid PDF, but it will not be a PDF/X-1a compliant file.
Wed Mar  2 10:17:29 2011 ERROR [server] JavaScript Error!
Error Number: 2
Error String: User cancelled this action.
Engine: main
Line: 1428
Source: this.document.exportFile(ExportFormat.pdfType, documentFile);
Interpreter: CS4 (6.0)

This happens even with a completely blank document. It works fine if I export JPGs or an INDD file from the same file. I'm guessing this is due to the watermark that Developer Edition places on every page. I'm fine with that, but not actually being able to export an X-1a PDF makes testing quite tricky.

Any suggestions?

 
Replies
  • Currently Being Moderated
    Mar 3, 2011 1:18 AM   in reply to spacecowboyuk

    Can you post your code, pls?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 8, 2011 5:00 AM   in reply to idservdev

    I get the same thing:

     

     

        private void exportPDF(Document document, PDFType pdfType) throws IdsException {

            String pdfPath = this.outputPrefix + pdfType.getFileEnding();

     

            getApplication().getPDFExportPreferences().setPageRange(buildExportPa geRange(document));

     

            document.doExport(VariableTypeUtils.createString("Adobe PDF"),

                    pdfPath,

                    OptArg.makePDFExportPreset(getPDFExportPreset(document, pdfType)),

                    OptArg.noBoolean(),

                    OptArg.noString(),

                    OptArg.makeBoolean(true));

     

            addExportedPreview(pdfPath);

     

            log.debug("Exported PDF: " + pdfPath);

        }

     

     

     

        private PDFExportPreset getPDFExportPreset(Document document, PDFType pdfType) throws IdsException {

            Application application = getApplication();

            PDFExportPreset preset = application.getNamedChildPDFExportPreset(pdfType.getExportPresetName( ));

     

            preset.setCropMarks(pdfType.isCropMarks());

            preset.setUseDocumentBleedWithPDF(pdfType.isBleed());

     

            if (pdfType.isBleed() || pdfType.isCropMarks()) {

                preset.setPageMarksOffset(UnitConverter.toUnit(getPageMarksOffset(doc ument)));

            } else {

                preset.setPageMarksOffset(UnitConverter.toUnit(Length.zero()));

            }

     

            return preset;

        }

     

     

    Editing the profile to use none for standard compliance allows the export of the PDF.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 5, 2012 7:35 AM   in reply to spacecowboyuk

    Sounds like the same issue as http://forums.adobe.com/thread/900451 - ie it is the Developer Edition watermark that is causing the problem

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points