How to amend PlaceMultipagePDF.jsx?

Hi all
I've found this script very useful, but there is one thing that is causing me an issue.
I'm generally placing A4 pdfs into an A4 sheet. The script automatically places the pdf on the page with x, y axis of 0. I've been able to amend this measurement to allow placing of pdfs with varying degrees of bleed/trim, however (it seems to me) the script won't run if the bleed dimensions of the placed pdf are larger than around 25mm causing the automatic image box to fall outside the visual area of the desktop (eg if the pdf is 297x210mm but has bleed surrounding it requiring x,y co-ordinates of -31.0). However it is possible to create an image box manually to these co-ordinates.
I assume that the following line of text from the could be changed to crop the placed pdf to the trim and I can then run with the [0,0] co-ordinates - I've tried but sadly I don't know the correct terminology is it 'object model'?
app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
MTIA
Steve

Hi Shonklyn
Thanks for the link.
I have tried to use your script before but had forgotten about it - I've been concentrating on using javascript.
I can't get it to run very sucessfully though. If I choose either the crop trim or crop bleed I get an Applescript error:
Adobe InDesign CS4 got an error: A resource wasn’t found. (-192)
I can get the pdf to place (the first page) using crop media, but is there a way to place 'all' pages of the pdf without opening up the pdf to see how many pages there are and entering that number into the 'To:' field?
If I try to load 10 pages from a 64 page pdf I get the following error:
'There are missing any pages in your document'
Steve

Similar Messages

  • How to  amend search.aspx

    Hi All
    How to  amend search.aspx to show number of pages (search results) on top and botom of the list. I found
    <PagerStyle NextPageText="Next&amp;gt;" PrevPageText="&amp;lt;Previous" BorderStyle="None" HorizontalAlign="Right"
                                  Position="Bottom" CssClass="npadminbody" Mode="NumericPages"></PagerStyle>
    and here i can change Position to top or botom , but I need botch.
    Thanks.
    Greg.

    Try changing the position attribute to
    position="TopAndBottom"

  • TS1630 People can't hear me on the phone unless I put the speaker on.any suggestions on how to amend this problem.

    I am having trouble when people ring me I have to use the speaker for people to hear and understand what I'm saying.any suggestions on how to amend this problem as it is now starting to get annoying.

    if your have tried powering it off then i would back up your information import picture and then restore your phone to new in itunes. if that doesnt work then it is hardware. at that point if your with in your limited hardware warranty it is free if your not its a out of warranty repair for 149$

  • Wrong posting period created and has transactions, how to amend

    Hi All,
    I have created the posting period in 2005B, forgot to change the Sub-Periods from defaulted Year to Months. So my posting period for 2009 is actually only one period instead of the normal 12 periods in a month.
    I have some transactions posted into the period, how can I amend this situation? Hope anyone can assist as soon as possible. Thanks in advance.
    Regards,
    MH

    Hi MH,
    I am afraid you cannot do that, because period setting is a very basic setting and the system checks if there are already transactions for that period.
    Even if you reverse all transactions the system still considers them as transactions belong to the period.
    I suggest that you do it this way:
    1. Download the transactions that are already entered
    2. Prepare them into templates
    3. Go back to the status where database is still empty
    4. Correct the period settings
    5. Upload back the transactions to the database.
    Cheers,
    Marini

  • How to amend Rules in Mail

    I am using Mail on my Mac and also have it configured on my iPhone and iPad.
    I have an alias e-mail address and set up a rule for any mails to that e-mail address to go straight into a specific folder (mailbox) within Mail.
    I am now trying to amend the rule but cannot access it.
    I have tried via Mail > Preferences but no rules are displayed.
    I have also tried to delete the folder and then send a test mail to the e-mail address, but when the mail arrives in the inbox it just creates a new folder again.
    How can I amend the rule in Mail?
    Thank you

    Many thanks. Would be more helpful if the rules in Mail on my Mac reflected those in iCloud but I followed your advice and made the change successfully.
    Two other linked questions:
    1. Why can't I access icloud.com on my iPad? (to effect the change, I had to use my Mac to go to icloud.com)
    2. Can the e-mail alias addresses be colour coded so that I can easily identify incoming mail?
    Thank you

  • How to InDesign CS5 - .jsx script export multiple PDF??

    ok I have a datamerge process with .jsx script that is exporting to single page pdf files. What I need it for 2 of these pages to be in one (multi-page pdf). how can I accomplish this?
    here is the script I have here is my function & teardown:
    function mySnippet(){
              //<fragment>
              var myPageName, myFilePath, myFile;
              var myDocument = app.documents.item(0);
              var myBaseName = myDocument.name;
              for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){
                        myPageName = myDocument.pages.item(myCounter).name;
                                app.pdfExportPreferences.pageRange = myPageName;
                        //app.pdfExportPreferences.pageRange = myPageName, "15-16";
                switch(myPageName) {
                        case "1" : myPageName = "Human Card Approval";
                                  docType = ""  break;
                        case "2" : myPageName = "Pet Card Approval";
                                  docType = "" break;
                        case "3" : myPageName = "Rx FAQ EN";
                                  docType = "FAQ" break;
                        case "4" : myPageName = "Rx FAQ ES";
                                  docType = "FAQ" break;
                        case "5" : myPageName = "Labs & Imaging FAQ EN";
                                  docType = "FAQ" break;
                        case "6" : myPageName = "Labs & Imaging FAQ ES";
                                  docType = "FAQ" break;
                        case "7" : myPageName = "Equalizer No Cards EN";
                                  docType = "Equalizer" break;
                        case "8" : myPageName = "Equalizer w_cards EN";
                                  docType = "Equalizer" break;
                        case "9" : myPageName = "Equalizer Slick Stand EN";
                                  docType = "Equalizer" break;
                        case "10" : myPageName = "Equalizer No Cards ES";
                                  docType = "Equalizer" break;
                        case "11" : myPageName = "Equalizer w_cards ES";
                                  docType = "Equalizer" break;
             case "12" : myPageName = "Equalizer Slick Stand ES";
                                  docType = "Equalizer" break;
                        case "13" : myPageName = "Medicare Donut Hole EN";
                                  docType = "Donut Hole" break;
             case "14" : myPageName = "Medicare Donut Hole ES";
                                  docType = "Donut Hole" break;
             case "15" : myPageName = "Trifold EN Outside";
                                  docType = "TriFold" break;
                        case "16" : myPageName = "Trifold EN Inside";
                                  docType = "TriFold" break;
                        case "17" : myPageName = "Pet w Cards EN";
                                  docType = "Pet" break;
             case "18" : myPageName = "Pet Slick Stand EN ";
                                  docType = "Pet" break;
                        case "19" : myPageName = "Pet w Cards ES";
                                  docType = "Pet" break;
             case "20" : myPageName = "Pet Slick Stand ES";
                                  docType = "Pet" break;
                        fileName = group + " " + myPageName + " " + date + ".pdf";
                        myFilePath = dirPath + docType + "/" + fileName;
                        myFile = new File(myFilePath);
                        myDocument.exportFile(ExportFormat.pdfType, myFile, false);
              //</fragment>
    //</snippet>
    //<teardown>
    function myTeardown(){
    Here is what I need exported as one pdf file:
             case "15" : myPageName = "Trifold EN Outside";
                                  docType = "TriFold" break;
                        case "16" : myPageName = "Trifold EN Inside";
                                  docType = "TriFold" break;

    That would require scripting. You might inquire in the InDesign Scripting forum for scripts that might work.

  • How to amend the seeded sales order lines workflow

    Hi,
    I'd like to amend the workflow of order lines in sales order form in Order Management
    I want to clear the schedule ship date field because
    it is auto deafulted with sysdate
    How to download the seeded workflow ?
    How can i determien the needed amendment ?
    Any Guide PLS ?
    Thanks

    You can download the workflow using the WFLOAD command - see MOS Doc 1569004.1
    You will need Workflow Builder on a Windows PC to modify the workflow - see MOS Doc 1461991.1 and MOS Doc 125067.1

  • How to amend java source

    Hi. I'm relatively new to Java. I need to create a program wherein in each and every method of the code (e.g. protected void setDetails()), I have to insert at the very first line of the method a code like this one
    LOG.entering("setDetails")
    The "LOG.entering("")" is constant, but the string inside refers to the method name.
    Could someone shed a light on how I should go about it? Thanks in advance.

    Thank you all for the responses on my query. I really appreciate it.
    With regards to my query, they wanted to put the logger code in each and every method of our classes. One thing that I could do is to copy and paste the entry "LOG.entering("methodname")" in each and every method of our sources, and change the string passed to be the method name. Though I find this method to be too tedious and prone to errors. I find that a utility that would automatically do this mechanism is much more efficient, but I do not know where to start and how to go about it.
    I really do appreciate about the info regarding the Logger class. I may need to look deeper into our code and understand the use of these logger instances, and their intent of putting it into each and every method of our classes.
    Once again, any help regarding my query will really be appreciated. Thank you all once again.

  • How to modify labelgraphics.jsx to read custom metadata

    This script works flawlessly. However, I would like to be able to extract other XMP metadata than just
    //XMP description
            case 2:
                try{
                    myLabel = myLink.linkXmp.description;
                catch(myError){
                    myLabel = "No description available.";
                break;
            //XMP author
            case 3:
                try{
                    myLabel = myLink.linkXmp.author
                catch(myError){
                    myLabel = "No author available.";
    I have developed a custom info panel (based on the generic one) with following "properties.xml":
    <xmp_definitions xmlns:ui="http://ns.adobe.com/xmp/fileinfo/ui/">
        <xmp_schema prefix="custom0" namespace="http://my.custom0.namespace/" label="$$$/Custom0/Schema/Label=Ref_SAP" description="$$$/Custom0/Schema/Description=This example panel contains most of the options available for the 'Generic Panel'.">
            <!-- simple properties -->
            <xmp_property name="Ref_SAP" category="external" label="$$$/Custom0/Property/TextInputLabel=Referentie nummer SAP:" type="integer"/>
            <ui:separator/>
        </xmp_schema>
        <xmp_schema prefix="custom1" namespace="http://my.custom1.namespace/" label="$$$/Custom1/Schema/Label=FRANS" description="$$$/Custom1/Schema/Description=This example panel contains most of the options available for the 'Generic Panel'.">
            <!-- simple properties -->
            <xmp_property name="Titel_FR" category="external" label="$$$/Custom1/Property/TextInputLabel=Titel FR:" type="text"/>
            <xmp_property name="Tekst_FR" category="external" label="$$$/Custom1/Property/TextInputML_Label=Tekst FR:" type="text" ui:multiLine="true" ui:height="100"/>
            <ui:separator/>
        </xmp_schema>
        <xmp_schema prefix="custom2" namespace="http://my.custom2.namespace/" label="$$$/Custom2/Schema/Label=VLAAMS" description="$$$/Custom2/Schema/Description=This example panel contains most of the options available for the 'Generic Panel'.">
            <xmp_property name="Titel_VL" category="external" label="$$$/Custom2/Property/TextInputLabel=Titel VL:" type="text"/>
            <xmp_property name="Tekst_VL" category="external" label="$$$/Custom2/Property/TextInputML_Label=Tekst VL:" type="text" ui:multiLine="true" ui:height="100"/>
            <ui:separator/>
        </xmp_schema>
        <xmp_schema prefix="custom3" namespace="http://my.custom3.namespace/" label="$$$/Custom3/Schema/Label=NEDERLANDS" description="$$$/Custom3/Schema/Description=This example panel contains most of the options available for the 'Generic Panel'.">
            <xmp_property name="Titel_NL" category="external" label="$$$/Custom3/Property/TextInputLabel=Titel NL:" type="text"/>
            <xmp_property name="Tekst_NL" category="external" label="$$$/Custom3/Property/TextInputML_Label=Tekst NL:" type="text" ui:multiLine="true" ui:height="100"/>
            <ui:separator/>
        </xmp_schema>
    </xmp_definitions>
    Now I would like to adapt the LabelGraphics.js to retrieve the information stored in the fields "Titel_FR", "Tekst_FR", "Titel_VL", "Tekst_VL", "Titel_NL", Text_NL". These fields contain fixed text that goes with the image and should be retrieved in several "goes".
    Question 1: is this possible at all ?
    Question 2: how to proceed ?

    Have you already found Marijan Tompa's "Extract Metadata with Adobe XMP"?
    David

  • How to amend a do an post a goods issue by using BAPI_OUTB_DELIVERY_CONFIRM

    Dear All,
    As advised in this forum ,I want to used BAPI_OUTB_DELIVERY_CONFIRM_DEC to amend my DO and post a goods issue. However, I keep getting error message "error in document 80000970 item 000010 (quantity consistency check)"
    code:
    DATA:
    W_HEADER_DATA LIKE BAPIOBDLVHDRCON,
    W_HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCON,
    DELIVERY_NUM LIKE BAPIOBDLVHDRCON-DELIV_NUMB,
    W_ITEM_DATA LIKE BAPIOBDLVITEMCON,
    I_ITEM_DATA LIKE BAPIOBDLVITEMCON OCCURS 0,
    I_RETURN LIKE BAPIRET2 OCCURS 0.
    DATA :
    W_RETURN  LIKE BAPIRET2,
    L_RETURN LIKE SY-SUBRC.
    PERFORM OUTBOUND_DELIVERY
      CHANGING
        L_RETURN.
    FORM OUTBOUND_DELIVERY
      CHANGING
            L_OUT_RETURN   LIKE SY-SUBRC.
    DATA:
      V_LOGSTR(128)    TYPE C.                       "LOG ÄÚÈÝ
    DELIVERY_NUM = '80000970'.    "DO NUMBER
    "HEAD DATA PART
    W_HEADER_DATA-DELIV_NUMB = '80000970'.
    W_HEADER_DATA-GROSS_WT = 240.
    W_HEADER_DATA-NET_WEIGHT = 240 .
    W_HEADER_DATA-UNIT_OF_WT = 'G'.
    "HEAD DATA CONTROL PART
    W_HEADER_CONTROL-DELIV_NUMB = '80000970'.
    W_HEADER_CONTROL-GROSS_WT_FLG = 'X'.
    W_HEADER_CONTROL-NET_WT_FLG = 'X'.
    W_HEADER_CONTROL-VOLUME_FLG = 'X'.
    W_HEADER_CONTROL-POST_GI_FLG = 'X'.
    "ITEM DATA PART
    CLEAR W_ITEM_DATA.
    W_ITEM_DATA-DELIV_NUMB = '80000970'.
    W_ITEM_DATA-DELIV_ITEM = '000010'.
    W_ITEM_DATA-MATERIAL = '0015223'.
    W_ITEM_DATA-BATCH = '20040202'.
    W_ITEM_DATA-DLV_QTY = 1.
    W_ITEM_DATA-SALES_UNIT = 'CAR'.
    APPEND W_ITEM_DATA TO I_ITEM_DATA.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
      EXPORTING
        HEADER_DATA                = W_HEADER_DATA
        HEADER_CONTROL             = W_HEADER_CONTROL
        DELIVERY                   = DELIVERY_NUM
      TABLES
      HEADER_DEADLINES           =
        ITEM_DATA                  = I_ITEM_DATA
        RETURN                     = I_RETURN
      LOOP AT I_RETURN INTO W_RETURN.
        IF W_RETURN-TYPE = 'E'.
          L_OUT_RETURN = 4.
          MESSAGE   ID     W_RETURN-ID
                    TYPE   W_RETURN-TYPE
                    NUMBER W_RETURN-NUMBER
                    WITH   W_RETURN-MESSAGE_V1
                           W_RETURN-MESSAGE_V2
                           W_RETURN-MESSAGE_V3
                           W_RETURN-MESSAGE_V4
                    INTO   V_LOGSTR.
          WRITE :/ V_LOGSTR.
        ENDIF.
      ENDLOOP.
    ENDFORM.
    Does anybody have a hint to the cause of the error message?
    There's no problem to do a goods issue manually in VL02n for the delivery.
    Best Regards,
    ERIC XU

    Hi Lin,
       he has changed the commit value to 'X' in DEBUG mode.
    If you just want to test it in se37, you have to keep a break point in the WS_DELIVERY_UPDATE_2 fm, and give the value of COMMIT = 'X' in debugging.
    If you want to do the same in a program, you have to cal the fm: bapi_transaction_commit after the call to the BAPI_OUTB_DELIVERY_CONFIRM_DEC bapi.
    Regards,
    ravi

  • How can amend lyrics in itunes

    Can't amend lyrics in itunes, please help!

    I open get info-lyrics in iTunes on my computer.
    I edit the lyrics and press ok.
    I open get info-lyrics on my iTunes on my computer, the lyrics are edited.
    For them to appear edited on the phone, you will have to sync it over.

  • How to amend workflow email footer that only appears in transaction SOST

    I am fairly new to workflow (less than one yearu2019s experience).
    An email is created by a User Decision step (Advance with dialog) in workflow (BOR ZDECISION2, method PROCESS). When you display the workflow task (transaction PFTC - standard task) just the email content is displayed in the task description i.e .no email header or footer is displayed.
    No Methods AFTER Work Item Execution are defined for the Workflow User Decision step.
    After the workflow has run and the email/document is displayed by transaction SOST a header and footer are displayed  u2013 where are the header and footer configured? Is anyone able to point me in the right direction? Many thanks.
    We are running SAP ECC 6.0
    Eg. email/document displayed by transaction SOST
    E-mail header text - where is this defined?
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail content as defined in Workflow task.
    E-mail footer text - where is this defined?

    Hi David,
    I am also facing the same issue.
    Issue: I got the workflow in which mail body is created through some task attached to function module. In Transaction code: SOST, i am getting some additional text, and my mail body (from workflow task) is sandwich between those text displayed in SOST. Also, when mail is getting sent, text visible to receiver is the only ail body (created from workflow task).
    Ex. The text highlighted in bold-italic is additional text.
    Your Workflow inbox in the SAP system QA1, client 100, contains the following work item:
    <Mail Body created in workflow task>
    Open the SAP shortcut attachment in order to process the work item.
    If you have any problems logging on, contact your system administrator.
    I tried to find out from where those text is displayed using program RSWUWFML2, SE61 and SLG1 but couldn't find it.
    Can u please help me out to solve this issue.
    Thanks,
    Ketan

  • How to amend this PL/SQL COMMANDS?

    if :TRANSACTION.SHOW_DATE> TRANSACTION.TRANSACTION_DATE
    THEN
         MESSAGE ('MOVIE SHOW_DATE SHOULD BE at most 3 DAYS after TRANSACTION');
         RAISE FORM_TRIGGER_FAILURE;
         else
         message('OK');
         end if;
    (TABLE, VIEW OR SEQUENCE REFERENCES 'TRANSACTION.TRANSACTION_DATE' NOT ALLOWED IN THIS CONTEXT.
    In fact, I want to do the thing quoted in the MESSAGE of the command.

    Prefix transaction.transaction_date with colon.
    if :transaction.show_date > :transaction.transaction_date
    (I am assuming that transaction is a block in Oracle Forms).

  • My iCloud address on the iPad needs to be changed. If I press "delete account" it tells me I will lose all the content including pictures. How can I change it? I see other people have had the same problem

    I have had to change my e mail address but I cannot work out how to amend it on my iCloud account. If I press "delete account" the box appears telling me that I will lose all content including photos if I continue. The box asking for a password keeps appearing but I just press cancel and continue.
    I have not attempted to upgrade to iOS 7 until this problem is sorted. Can anyone help please?

    If you mean that you created a new icloud account using a new email address as the primary address, then when changing to that account on a device, all data maintained by the old account will be deleted.  I was not aware that photos are included.  But as for photos, ALWAYS sync them to a computer for archiving, never rely on icloud as your only backup.
    If you want to keep the contacts, etc. data from the old account, then go to Settings>icloud and turn off the services, one at a time.  When doing so, you are given the choice to keep the data local or delete from the device.  Later, when doing Delete Account and logging into the new account, your data will sync up to it.
    If, on the other hand, your changed email address is just an alias in the existig icloud account, then there's no reason to delete the account as the alias is just another link to the same account.

  • Edit ContactSheet_ID.jsx to include default template

    We're using Bridge CS3 to generate contact sheets with InDesign CS3 using Bridge CS3's Tools > InDesign > Create InDesign Contact Sheet command. We've defined an InDesign template which we're using for these contacts sheets but find it annoying to have to browse for the template each time. Saving your settings with a Preset doesn't record your template selection so there's no joy there either.
    Not being at all savvy with Javascript, does anyone know how to edit ContactSheet_ID.jsx so that a default template is already input when the Create InDesign Contact Sheet command is invoked? Or perhaps to change the behavior of saving Presets so as to include this default template information? We'd want to locate the file at a universally locatable path such as a user's documents folder or the InDesign folder or on a server, etc. so that all users could easily use the command with expected results. The solution would ideally be for the Mac but any would be great too!
    Thanks!

    Is this not easily implemented? Or has everyone moved on to CS4? Just curious...

Maybe you are looking for

  • Show Web Dynpro as a Pop up on CRM Web-gui from ABAP Call

    Hello Everybody, i have a created a Web Dynpro Application in Z'* naming Space and want to show this WD as a POP up on the CRM Business Partner. Step by Step Description of what I have done. 1) Want to change the Business Partner Addresse on CRM page

  • What is the point of the multitasking bar?

    So, I get that for Pandora, Skype, etc. that multitasking is great. I just opened up my multitasking bar though, and found the following "open" items: Messages, Mail, Calendar, Camera, Settings, Map, Weather, Calculator, YouTube, Compass, IMDb, Faceb

  • Help!!!!! How do I find out if my Mac has a virus

    Help!!!!!! I was searching the web and some window popped out (Apple window) recommending that I download something to do with antivirus. I guess the website that I was about to visit had a virus. I clicked ok and the next thing I know some things st

  • Built-in iSight not working with Skype

    Hi, I have an iMac Intel Core with Built-in iSight, and ever since I've upgraded to Snow Leopard OS, my Skype does not recognize my webcam- when I select the "Built-in iSight" option, it says it is in use by another applications, and when I select th

  • Oracle.apps.fnd.framework.OAException: Message not found. Application: FND

    Hi Team, In My Project i am using One AM called rootAM and 2 VO's are attached with the rootAM,While running the page i am getting following error ..Please help me....... oracle.apps.fnd.framework.OAException: Message not found. Application: FND, Mes