🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
4 messages
4 total messages Started by studioj Wed, 25 Feb 2009 15:01
ID CS4: Can file import options be forced?
#997
Author: studioj
Date: Wed, 25 Feb 2009 15:01
1 lines
1117 bytes
I have a scripted ID Cs4 app that I am using to construct books that are made from a library of PDF files. The library has files coming from various sources and as a result all PDFs are not created with a uniform definition of bounding box. I have found that if I import my files with the "cropbox" option enabled, all is well. However, I have also found that it's easy for ID to be "reset" to use "boundingbox" as the means of import and this wreaks havoc on my layouts. Is there any way that I can force ID to use the cropbox method of import when I invoke it?
Re: ID CS4: Can file import options be forced?
#900
Author: Robert Tkaczyk
Date: Wed, 25 Feb 2009 16:50
37 lines
2024 bytes
you need to set PDFPlacePreference(s) before you place PDF page

  Class PDFPlacePreference
    Member of InDesign
    PDF place preferences

and:

  Property PDFCrop As idPDFCrop
    Member of InDesign.PDFPlacePreference
    Specifies how much of the PDF page to place

where:

  Const idCropArt = 1131573313 (&H43727041)
    Member of InDesign.idPDFCrop
    Places only the area defined by the PDF author as placeable artwork
  Const idCropBleed = 1131573314 (&H43727042)
    Member of InDesign.idPDFCrop
    Places only the area that represents where all page content should be clipped
  Const idCropContent = 1131573315 (&H43727043)
    Member of InDesign.idPDFCrop
    places the page's bounding box
  Const idCropMedia = 1131573325 (&H4372704D)
    Member of InDesign.idPDFCrop
    Places the area that represents the physical paper size of the original PDF document
  Const idCropPDF = 1131573328 (&H43727050)
    Member of InDesign.idPDFCrop
    Places only the area that is displayed by Adobe Acrobat
  Const idCropTrim = 1131573332 (&H43727054)
    Member of InDesign.idPDFCrop
    Places only the are that represents the final trim size of the document

robin

-- 
www.adobescripts.com
Re: ID CS4: Can file import options be forced?
#919
Author: studioj
Date: Wed, 25 Feb 2009 19:46
1 lines
1074 bytes
Thanks for the detailed suggestion and response. I was thinking that the import option would be something I could set at the program level but apparently from your response this is something that is set at the time of import (as it would be if one were manually placing the page). As it happens, I use the emsoftware plugin called indata for the actual page placement script. Perhaps I have to inquire of them whether I can force the same behavior when placing pages using their script.
Re: ID CS4: Can file import options be forced?
#853
Author: studioj
Date: Thu, 26 Feb 2009 20:02
1 lines
963 bytes
The indata plugin does not support the modality of crop or bounding box selection. The solution I am leaning toward is to use the script above to open a blank document and force the page placement mode prior to using my indata plugin on each invocation. Thanks again for the clear response.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads