Back

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

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • in reply to: Auto replace text with an object #93426
    Kathy Cote
    Member

    Hi,
    You can do something like that with typinator:
    https://www.ergonis.com/products/typinator/

    you have to set your default settings. Exemple: when you tap “pictogrey”, it will be replace with your image. You can tell that you want it only for Indesign and not for all software.

    ??

    in reply to: Remove unused objectStyle #92385
    Kathy Cote
    Member

    ok good, it works.

    Thanks for your help

    in reply to: Apply Object Style to specific text frame with label name #91646
    Kathy Cote
    Member

    Hi,
    Ok I got it.

    Thanks ;-)

    ////////////////
    #target indesign
    var myDoc = app.documents[0];
    var myFrames = myDoc.textFrames;
    var myObjectStyle = “CIS_Slug_Top”; //Object Style qui doit déja etre par default dans Indesign

    for (var i=0; i< myFrames.length ; i++) {
    if (myFrames[i].label == “Label2”){
    myFrames[i].applyObjectStyle(myDoc.objectStyles.item(myObjectStyle));
    alert (“OK Done”); // you changes here
    }
    }

    in reply to: How to resize Graphic to specific inches ? #90633
    Kathy Cote
    Member

    Hi,
    This is exactly what I needed.

    Another big thank you for your help so precious.

    Thanks!

    Kathy

    in reply to: How to resize Graphic to specific inches ? #90627
    Kathy Cote
    Member

    Hi,
    oh wow, you’re like a Jeidi ;-) It works very well.
    There is just a small part that I tried to modify but I am not able to because I’m just a padawan.

    Is not exactly : var pageBounds = page.bounds; that I need because the image size frame must also include bleed.
    Do you think this can be done?

    Thanks a lot for your help. This is very much appreciated.

    in reply to: How to resize Graphic to specific inches ? #90603
    Kathy Cote
    Member

    Hi,
    ok to do fit image depending on the width of the document.

    And now if I want the picture fit height of the Height size?

    I cannot use: app.selection[0].fit ( FitOptions.PROPORTIONALLY );
    Because it adjusts the image to be fully visible in the frame.
    If I use a fit proportionally in height, the image may be wider than the Frame and it’s ok. It’s what I want.

    ///////////

    var PHeight = myDocument.documentPreferences.pageHeight;
    var myHeight = parseFloat(PHeight);
    var FinalHeight = myHeight + “in”;
    alert (FinalHeight);
    var h = new UnitValue(FinalHeight).as(“pt”);

    //How to do not have the value w? I want a fit Height and not width. Width is forced to be there?
    myGraphic.resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.TOP_CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,h,ResizeConstraints.KEEP_CURRENT_PROPORTIONS])

    in reply to: How to resize Graphic to specific inches ? #90602
    Kathy Cote
    Member

    Hi,
    ok this code works

    var PWidth = myDocument.documentPreferences.pageWidth;
    var myNumber = parseFloat(PWidth);
    var FinalWidth = myNumber + “in”;
    alert (FinalWidth);
    var w = new UnitValue(FinalWidth).as(“pt”);

    myGraphic.resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.TOP_CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,ResizeConstraints.KEEP_CURRENT_PROPORTIONS])

    in reply to: How to resize Graphic to specific inches ? #90601
    Kathy Cote
    Member

    Hi,

    We almost succeeded. If I use the code as below, it works.
    I only want to change the value of the variable w, I would like to have the height of my page (which is variable).

    /////

    var myHeight = myDocument.documentPreferences.pageHeight;

    //Instead of 3in, I would like to have height of my page. Is it possible ?
    var w = new UnitValue (“3in”).as(“pt”);

    myGraphic.resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.TOP_CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,ResizeConstraints.KEEP_CURRENT_PROPORTIONS]);

    Thanks again ;-)

    Kathy

    in reply to: How to resize Graphic to specific inches ? #90600
    Kathy Cote
    Member

    Hi,

    We almost succeeded. If I use the code as below, it works.
    I only want to change the value of the variable w, I would like to have the height of my page (which is variable).

    /////

    var myHeight = myDocument.documentPreferences.pageHeight;

    //Instead of 3in, I would like to have height of my page. Is it possible ?
    var w = new UnitValue (“3in”).as(“pt”);

    myGraphic.resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.TOP_CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,ResizeConstraints.KEEP_CURRENT_PROPORTIONS]);

    Thanks again ;-)

    Kathy

    in reply to: How to resize Graphic to specific inches ? #90598
    Kathy Cote
    Member

    Hi,
    No because I want the image to be the same height as my box image but the width can vary.
    Once the correct height, I center the image in the box. The image may be wider than the box itself.

    Thanks ;-)

    in reply to: Position new text boxes #90514
    Kathy Cote
    Member

    Ok I got it! I have use parseFloat.

    var width = D;
    var height = parseFloat(E);

    myFrame2=newDoc.textFrames.add();
    myFrame2.contents = H;

    //Top, Left, Bottom, Right
    var Y2 = E; //Top
    var X2 = 0; //Left
    var H2 = height+5; //Bottom. 5 if my slug
    var L2= D; //Right

    myFrame2.geometricBounds = [Y2, X2, H2, L2];

    Thanks

    in reply to: Position new text boxes #90358
    Kathy Cote
    Member

    Hi,
    I trying place my text box on slug in the bottom of page. I can do it. Can you help me?

    Thanks again.

    My part of code:

    width = D;
    height = E;

    myFrame2=newDoc.textFrames.add();

    myFrame2.contents = H;

    //Top, Left, Bottom, Right
    var Bleed2 = “0.25”;
    var Slug2 = “0.5”;

    var Y2 = E+Bleed2; //Top
    var X2 = 0; //Left
    var H2 = E+Slug2; //Bottom
    var L2= D; //Right

    myFrame2.geometricBounds = [Y2, X2, H2, L2];

    in reply to: Export pdf in Original Folder #89625
    Kathy Cote
    Member

    Ok I have my working code. I would now add “_LR” at the end of the name of the pdf. I tried several things but it does not work. Can someone help me with this?

    while(app.documents.length>0){
    var myDoc = app.activeDocument;
    myDoc=myDoc.filePath+”/”+myDoc.name.split(“.indd”).join(“.pdf”);
    //alert(myDoc);
    var exportfile=new File(myDoc);
    app.activeDocument.exportFile(ExportFormat.pdfType, exportfile, false, “LR”);
    app.activeDocument.close();
    }

    in reply to: Merged Text Frame #88880
    Kathy Cote
    Member

    hi,
    YES!!! It’s exactly that!!!

    Thanks a lot!

    in reply to: Global Table to Text #88879
    Kathy Cote
    Member

    Hi,
    is it possible to have each table in separately text frame for each ?

    I guess it’s more complicated?

    thanks

    Kathy

Viewing 15 posts - 1 through 15 (of 30 total)