Spread Extract as JPEG not show image on spread


hi experts

 

i create indesign document(cs5.5) file on mac os using script, contain text , images on spread.

my file created sucessfully. exterect spreads image(jpeg) using script

#target indesign

var mydocument =app.activedocument;

mydocument.exportfile(exportformat.jpg,file("/private/var/root/desktop/1.jpg"),false)

with(app.jpegexportformatpreferences)

{

exportingspread=true;

}

 

first time when start mac system extract spread sucessfully image data. if exteract again exteract image contain text data , image data not present.

if restart mac system same result(first time present second time not)

 

while on window there no such problem .

 

how solve problem ?

 

thanks.

before have export, set ruler orgin spread orgin............

 

var mydocument = app.documents.item(0);

    //<fragment>

    with(mydocument.viewpreferences){

        //measurement unit choices are:

        //* measurementunits.picas

        //* measurementunits.points

        //* measurementunits.inches

        //* measurementunits.inchesdecimal

        //* measurementunits.millimeters

        //* measurementunits.centimeters

        //* measurementunits.ciceros

        //* measurementunits.agates

        //* measurementunits.custom

        //set horizontal , vertical measurement units points.

        horizontalmeasurementunits = measurementunits.points;

        verticalmeasurementunits = measurementunits.points;

//set ruler origin page origin

rulerorigin = ruler origin.spread origin;

    }



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account