I’m working on a script that imports eps files into an indesign document and then export that document as PDF file. So far so good except one thing :
If indesign upon opening has it’s fill and stroke different from transparent (or none), the rectangles created by the script pick up that fill and stroke. Not really what I want.
But I cannot find anywhere the command to set fill and stroke to ‘none’, prior to creating the rectangles.
So right now I need to make sure by hand that fill and stroke are none prior to launching the script. There is got to be a better way.
right now it’s looking like :
tell application "InDesign 2.0.2"
set myDocument to make document
set myPageWidth to 900
set myPageHeight to 330
tell document preferences of myDocument
set page width to myPageWidth
set page height to myPageHeight
-- set fill color to none (does not work) ???
-- set stroke color to none (does not work) ???
end tell
tell page 1 of myDocument
-- importing / placing stuff is done here
end tell
tell myDocument
export format PDF type to mypdf using PDF export style "eBook" without showing options
close saving no
end tell
end tell
any ideas how to achieve that ?
thanks