Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Exporting to PNG

Return to Member Forum

  • Author
    Posts
    • #63608

      Could anyone please tell me how to define parameters such as page range and quality when exporting to the new PNG format in CS6. I have defined boolean values such as spreads with no problem but Javascript is not happy no matter how I format them.

      I have searched the web and Adobe scripting guides for help but can find no examples that will help me.

    • #63609

      Page range:use “pageString”, which is a text string. It comes with this description:

      The page(s) to export, specified as a page number or an array of page numbers. Note: Valid when PNG export range is not all.

      so don't forget to set pngExportRange as well.

      The description may seem confusing at first — it's defined to use a 'string' but the description calls it a 'page number'. This is because in InDesign, a page number is a text string, since a page can be 'numbered' “xviii”, or “Section 2:B”, or “001”.

      See https://jongware.mit.edu/idcs6j…..rence.html for all available preferences and the value types they accept. (Quite surprisingly, “pngQuality” is among them as well. I was pretty sure 'quality' was a JPEG-only thing. I wonder if it actually makes any difference whether you use LOW or MAXIMUM quality.)

    • #63621

      Thanks Jongware, I am no longer getting an error but neither does it seem to be working. If I manually export to PNG, specifying only the first page and then run the script that specifies ALL, I still only get the first page.

      My code is as follows:

      with (app.pngExportPreferences){
      PNGExportRange = PNGExportRange.EXPORT_ALL
      PNGQuality = PNGQuality.MAXIMUM
      exportResolution = 300;
      exportingSpread = true;
      simulateOverprint = true;
      transparentBackground = false;
      useDocumentBleeds = false
      }

      I would be very grateful if you could let me know where I'm going wrong. Thank you.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads