PlaceMultipagePDF Modified Problem

InDesign CS2
Hi i try to place multiplepagePDF File into Indesign document where each PDF page placed 3 times on different places in one Indesign document. this work but only on the first page the following pages of indesign get the first pages of the pdf.
please help
code
var myPDFFile = File.openDialog("Choose a PDF File");
if((myPDFFile != "")&&(myPDFFile != null)){
var myDocument, myPage;
if(app.documents.length != 0){
myDocument, myNewDocument = myChooseDocument();
else{
myDocument = app.documents.add();
myNewDocument = false;
if(myNewDocument == false){
myPage = myChoosePage(myDocument);
else{
myPage = myDocument.pages.item(0);
myPlacePDF(myDocument, myPage, myPDFFile);
function myChooseDocument(){
var myDocumentNames = new Array;
myDocumentNames.push("New Document");
//Get the names of the documents
for(var myDocumentCounter = 0;myDocumentCounter < app.documents.length; myDocumentCounter++){
myDocumentNames.push(app.documents.item(myDocumentCounter).name);
var myChooseDocumentDialog = app.dialogs.add({name:"Choose a Document", canCancel:false});
with(myChooseDocumentDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
staticTexts.add({staticLabel:"Place PDF in:"});
with(dialogColumns.add()){
var myChooseDocumentDropdown = dropdowns.add({stringList:myDocumentNames, selectedIndex:0});
myChooseDocumentDialog.show();
if(myChooseDocumentDropdown.selectedIndex == 0){
myDocument = app.documents.add();
myNewDocument = true;
else{
myDocument = app.documents.item(myChooseDocumentDropdown.selectedIndex-1);
myNewDocument = false;
myChooseDocumentDialog.destroy();
return myDocument, myNewDocument;
function myChoosePage(myDocument){
var myPageNames = new Array;
//Get the names of the pages in the document
for(var myCounter = 0; myCounter < myDocument.pages.length;myCounter++)
myPageNames.push(myDocument.pages.item(myCounter).name);
var myChoosePageDialog = app.dialogs.add({name:"Choose a Page", canCancel:false});
with(myChoosePageDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
staticTexts.add({staticLabel:"Place PDF on:"});
with(dialogColumns.add()){
var myChoosePageDropdown = dropdowns.add
({stringList:myPageNames, selectedIndex:0});
myChoosePageDialog.show();
var myPage = myDocument.pages.item(myChoosePageDropdown.selectedIndex);
myChoosePageDialog.destroy();
return myPage;
function myPlacePDF(myDocument, myPage, myPDFFile){
var myPDFPage;
app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
var myCounter = 1;
var myBreak = false;
while(myBreak == false){
if(myCounter > 1){
myPage = myDocument.pages.add(LocationOptions.after, myPage);
app.pdfPlacePreferences.pageNumber = myCounter;
myPDFPage = myPage.place(File(myPDFFile), [0,0]);
b myPage.rectangles.add({geometricBounds:[5,0,290, 210]}).place(File(myPDFFile));
b myPage.rectangles.add({geometricBounds:[4,'-6',235, 210]}).place(File(myPDFFile));
if(myCounter == 1){
var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
else
if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
myPage.remove();
myBreak = true;
myCounter = myCounter + 1;

This only happens when you view locally right?
If so, look at adding 'Mark of the Web' on the page and that will stop that popup from happening when you view locally.
From the top menu go to:   Commands>Insert Mark of the Web
I checked the page in Firefox and IE7 and no problems with the flash loading on my end.

Similar Messages

  • ALV after sorting modifying problem

    Hi all,
    I use ALV with function.On ALV output when i sort output for some field ITAB was not modify new index key. Forexample,
    Record before sorting index key 10, then after sorting it was same 10. How can i solve this problem?
    Best regards,
    Munur

    Hi Munur,
    if you want to see the same thing after sorting on the grid, save it in a layout.
    or else before displaying the grid , sort the itab contents and push them on to alv.
    Thanks & regards,
    Sasi Kanth.

  • Album artwork not modifiable problems

    I can get album art from lots of places, the problem is I tunes will not let me put in. keeps coming up with album artwork not modifiable I'm not trying to modify anything. I just want to put some album art in. Is there a way around this ?? I tunes is pretty good most of the time, but sometimes it makes a person want to just go sit in a corner and eat dirt..........
      Windows XP  

    Ah, okay. Well, if you are trying to get artwork by using that handy "Get Album Artwork" feature of iTunes, it is likely that you aren't going to get some art because the iTunes database doesn't have every album under the sun.
    So here is what you do: 1) Run a Google image search, or something similar, and find the artwork online. (If you own the album physically, you can always scan the artwork into your computer yourself if you have a scanner.)
    2) Save the artwork to your hard drive (make sure it's a jpg or other common format).
    3) Open iTunes, and select all the songs in an album that you wish to add the artwork to (should be highlighted in blue), right- or ctrl-click on the selection, and select "Get Info." You will probably get a "Do you want to do this?" window, so hit "okay."
    4) You should see a section in the lower-right corner of the new window that says "Album Art" or similar. Double-click on that empty space, and navigate to the file you just saved on your hard drive.
    5) Select the art, hit all of the okay buttons you need to, and let iTunes process it.
    Voilà, you have album art.
    Peach

  • Date Modified problem not fixed . . . maybe never?

    Dunno if this has come up recently--I couldn't find it in a search. But the problem of a file, being modified and updated, not showing up as such in a folder unless clicked, is a massive one, and obviously has not been fixed with 4.5. I can modify a file, say an FCP movie, then save it, but it will still be down on the list date-wise that it was before I modified it. Only if I highlight it with a mouse click does it go to the top of the "Date Modified" column.
    This is inexcusable. OS 9 was instantaneous. What is it about OS X that Apple can't get right in this incredibly basic Finder function?

    Hello Ben
    If you want to use BT and make connection between the notebook and your mobile phone you must not be any expert. I have done it several times and it works perfectly.
    I can really not understand that your dealer was not able to help you. If you want to use the mobile phone as modem you can configure it on follow way:
    1. activate Bluetooth using FN+F8 key combination
    2. install all new hardware components if necessary (few of them)
    3. start Bluetooth stack (BT Manager) using small icon near the time information using right mouse button > Bluetooth Settings
    4. activate the Bluetooth on the mobile phone (discoverable)
    5. choose Express mode > Next
    6. Choose visible device listed in Bluetooth device list > Next
    7. Choose pass key for identification (1234)
    8. Enter the key into mobile phone. Paring will be success
    9. Go to Next and configure the internet connection (provider number) > Finish
    10. The new connection will be created in Bluetooth stack utility
    11. You can start the dialing up with double click or click with right mouse button and choose Connect
    In my case I use Motorola mobile phone and I am also able to send the pictures to the notebook.
    Please make it again. It must works!
    Good luck!

  • DATABASE STRUCTURE HAS BEEN MODIFIED PROBLEM...

    Hi
    I am getting the message " The database structure has been modified " after every 5 minutes.
    Regards

    Hi,
    You may check this thread:
    Message: "The database structure has been modified" every time I log to SAP
    Thanks,
    Gordon

  • Adobe Form Logo Edit(Modify) Problem in Travel Request Form of ESS

    Dear Experts
    We have the ESS working in which travel Request form has got the logo of IDES (Adobe Form) thatb come from the t-code: TRIP. My query is to remove that logo and print our company's logo on the same. After doing many effort to change that logo, I am not able to make change on that Adobe Form. Please suggest how could we achieve that?
    Regards,
    Akg
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 25, 2011 11:39 AM

    Hi,
    As per your code, you are seletcing data from BSEG table as 'SELECT * FROM BSEG'.
    BSEG is a cluster table. Its better to use only selected field from this table during select query.
    Other than this run your program in SE30 and check analysis for the queries taking more time.
    Better to modify them, tune them and re transport the program in production.
    Regds,
    Anil

  • Public modifier problem

    Hey there :) ,
    I was coding this :
    class Employee {
    //code for Employee Class
    public class EmployeeTest {
    public static void main(String[] args) {
    //code for EmployeeTest, this class will use Employee object
    }The above is compiled without any bug in it, but when i add modifier public to Employee class, code is giving error
    public class Employee {
    //code for Employee Class
    public class EmployeeTest {
    public static void main(String[] args) {
    //code for EmployeeTest, this class will use Employee object
    }Can anybody tell me the reason behind this ? Thanks
    PS : i know i am missing some very basic concept but unable to figure it out

    r035198x wrote:
    ashish.escape wrote:
    Yeah, but i am using command line, and only it shows 1 error, no error message.That's odd. the message should have been there.yeah, my bad it was there...i dint noticed it
    D:\coding\Java>javac EmployeeTest.java
    EmployeeTest.java:1: class Employee is public, should be declared in a file name
    d Employee.java
    public class Employee {
           ^
    1 error
    D:\coding\Java>
    Also, out of curiosity can you tell me the reason behind this rule of only public ?Suppose two public classes where allowed and you defined a main method in both of them and they are all in the file called A.java. Which class' main method would get executed if you typed "java A" on the command line?
    The class which is named as A
    And what if we dont include any modifier to a class ? i suppose by default is private ?No. No modifier defaults to default.Sorry, I did not get your point
    >
    PS. Better get Sun's tutorial and read it.

  • Quicktime mov modify problem

    I just modified and saved the video luminosity with quicktime pro but, as I upload it on vimeo it loses all the modifies I made on the luminosity getting back dark again.
    How can i avoid that?

    Adjustments made using the A/V Controls window are not saved with the file.
    You would need to make your adjustments and then "export" (re-compress) your file to save them.

  • Date modified problem

    Since I have been using Lion, folders and documents get "modified date" updated by just opening or moving them. This is highly annoying. Is there a way to avoid that and have date modified when document or folder is really modified? Thanks!

    Hi all
    I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
    I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
    Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
    Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
    Am I on the only one?

  • BiPub 11g World Template builder if tag modify problem

    Hi Gurus,
    in World Template Builder 11.1.1.3.0 if I copy an "if Tag" on a different point of the template and I try to modify the condition, if I reopen the tag it is always the original condition...
    Any Idea?
    This does not happend in 10g.
    Regards,
    Daniele

    Sounds weird. How are you testing the modified RTF?
    --Shiv                                                                                                                                                                                                   

  • Adobe Form Logo Edit(Modify) Problem

    Dear Experts
    We have the ESS working in which travel Request form has got the logo of IDES (Adobe Form). My query is to remove that logo and print our company's logo on the same. After doing many effort to change that logo, I am not able to make change on that Adobe Form. Please suggest how could we achieve that?
    Regards,
    Akg
    Moderator Message: Wrong Forum.
    Edited by: kishan P on Jun 9, 2011 4:02 PM

    Hi Srivijay,
    I guess output type configured for adobe form will help you.
    Have checked it with basis guy.
    Regards,
    Ashish Kaple

  • Access modifier problem... please help

    //file A.java
    package p1;
    public class A{
    protected int i = 10;
    public int getI() {
    return i;
    // file B.java
    package p2;
    import p1.*;
    public class B extends p1.A{
    public void process(A a) {
    a.i = a.i * 2; }
    public static void main(String[] args) {
    A a = new B();
    B b = new B();
    b.process(a);
    System.out.println( a.getI() );
    This code fails to compile ..Its unable to access i.
    Why is it?? Please help

    But Class A is public and i variable is protected,$
    that means i can be accessed in a class within the
    package and also by any subclass of A.
    So why the error? I did not quite get it
    !!!!!!!!!!!!!!I don't know how to explain that, but your approach is wrong anyway. public void process(A a) {
        a.i = a.i * 2;
    }You shouldn't have one A take another A as an arg to process it. The A should just process itself. (And I know this is a B, but all Bs are As).
    public void process() {
        i *= 2;
    } This will probably work as far as the protected member goes too.
    Also, since you're importing p1.*, you can just say extends A instead of extends p1.A.

  • [APEX 3] Requested source data of the report has been modified

    Hello APEX-Friends,
    I have a common problem but the situation is a bit different here. Many of you might know the "invalid set of rows requested the source data of the report has been modified" problem. Often it occurs on submit. That means, you have a report, you select rows, you do things, you submit the page and everything blews up.
    This is because you enter some values into fields the report depends on and so you modify your report parameters and the source data changes.
    But:
    In my case I have a dynamically created report that blews up before any submits occur or values change.
    My query is a union of two selects. Both query different views. Those views use a date field as parameter and some compare functions.
    I read the field with a V-Function i wrapped arround the apex V Function - declared as deterministic. My date compare function is also declared deterministic (I doubt this makes any differences as it might be only important for the optimizer, but as long as I don't know exactly what APEX evaluates, I go for sure).
    I ensured, that the date field is set by default with the current date (and that works, because my interactive report initially displays correct data from the current date).
    So everything is deterministic and the query must return same results on subsequent calls, but APEX still throws this "source data has changed" error and I am to 99.99% sure, that this cannot be true.
    And now the awesome thing about this:
    If I change the value of the date field, an javascript performs a submit. The page is reloaded (without resetting pagination!) and everything works fine. I can leave the page, reenter, do things - everything works well.
    But if I log into the application and directly move to the corrupted report and try to use the pagination without editing fields or submitting the page the error occurs.
    Do you have any Idea what's happing there? I could try to workaround this by submitting the page the first time it's entered to trigger this "mystery submit" that gets everything working. But I would like to understand this issue and have a clean solution.
    Thanks in advance,
    Mike aka UniversE

    Okay, I found a solution, but I do not understand it - it might be a design flaw in APEX.
    I mentioned the date field that is used in the query. I also mentioned that it is set with the current date by default. I did not mention how.
    There are some possibilities in APEX to do so.
    1. Default-Setting in the element properties
    2. Static assignment if no value is in session cache
    3. Computation before header
    I did the first and second.
    BUT:
    An interactive report seems to work as follows. A query is executed to get all rows of the report. Then a second query is executed to get the rows that shall be displayed. And the order is screwed up, I think.
    1. The first report query to get all rows
    2. The elements are loaded and set to default values
    3. The second report query to get the display rows
    And that's the reason why nothing worked. Scince I added a computation before header the date field is set before the report queries are executed and everything works all fine now.
    But I think it's a design flaw. Either both queries shall be executed before Regions or afterwards but not split as field values might change when elements are loaded.
    Greetings,
    UniversE

  • Calculation in update rule/routine in order to modify DATA_PACKAGE

    Hello all,
    I want to load some finance data from two ODS objects into an InfoCube. In the update rule I have build a start routine in order to compare two values of  two internal tables (itab1 and itab2) which gets loaded with data from the both ODS.
    When the value of the itab1 is higher of itab2 then I want to subtract the value from itab2 from itab1.
    After that I want to MODIFY the DATA_PACKAGE in order to update later the cube with an new lower value.
    The DATA_PACKAGE is defined as standard table as well as itab1 and itab 2 but I get the error message that the line type is not compatible.
    How I have to build the MODIFY statement in order to calculate and update values in the DATA_PACKAGE?
    Any helps would be great.
    Best regards from Munich/Germany,
    Stefan Leontiadis

    Hi Stefanos,
    My thought is probably not the best in terms of performance, but it should work.  The problem you'll hit is not having the entire data set from both ODS Object loads in memory at the same time.
    To cover this, you can declare a table in the global section of the start routine, let's call it GT_REF_DATA.  Next, perform a SELECT ffrom <other ODS Object> FOR ALL ENTRIES IN DATA_PACKAGE WHERE <selection> into GT_REF_DATA in the local section of the start routine.
    In the individual update routine, you can do a READ TABLE GT_REF_DATA INTO LS_REF_DATA WITH KEY <selection> to get the record you want to compare.
    Here's where you have to be careful.  If I understand your logic right, you can do:
    IF LS_REF_DATA-field < COMM_STRUCTURE-field.
      RESULT = COMM_STRUCTURE-field - LS_REF_DATA-field.
    ELSE.
    RESULT = COMM_STRUCTURE-field.
    ENDIF.
    That avoids processing everything in the start routine and your MODIFY problem.  If you prefer the start routine, you can work with the DATA_PACKAGE directly.  Just remember that DATA_PACKAGE has a header line, so you can simply LOOP AT DATA_PACKAGE, change the value in DATA_PACKAGE, then MODIFY DATA_PACKAGE.
    The way I prefer to do things is to create a separate internal table that is the same type as DATA_PACKAGE.  I fill the internal table with all values to store to the InfoCube (even those you don't change from DATA_PACKAGE).  At the end of the routine, CLEAR DATA_PACKAGE then APPEND LINES OF itab TO DATA_PACKAGE.
    I know there's lots of options above.  Let me know if I got your logic wrong or you have questions.
    Cheers,
    Adam

  • Possible fix for Word2004 "Date Modified" issue

    I'm not sure if anyone else is still dealing with this problem - we discussed it a year ago here:
    http://discussions.apple.com/thread.jspa?messageID=7610823
    But just in case there's someone else out there with the problem - I think I've found a fix (requiring OSX Server 10.5, tested on OSX Server 10.5.6)
    The problem:
    When you have a Word 2004 file (whatever.doc) stored on a server (10.4.0-10.5.6) then you have an annoying Date Modified issue. Whenever someone who is not the owner simply opens the file, the Date Modified date updates. When the owner of the file opens it, the date does not change. So by simply opening the document (and making no changes, and not re-saving it) you trigger an update of the Date Modified field.
    More info can be found following the link above.
    Well. I think I've found a work-around that's better then the current "Have everyone login as the same user" one.
    In OSX Server, setup the permissions for the share with group as "read only" - so the POSIX permissions only give non-owners read-only access. (Everyone should also be RO or None)
    Then you need to apply a Custom ACL. You want to give them Read & Write, but then edit the Write permissions to not allow Write Attributes and Write Extended Attributes.
    So the ACL is:
    [ ] Administration
    [Y] Read
    [-] Write
    --[ ] Write Attributes
    --[ ] Write Extended Attributes
    --[Y] Create Files (Write Data)
    --[Y] Create Folder (Append Data)
    --[Y] Delete
    --[Y] Delete Subfolders and Files
    [Y] Inheritance
    Obviously this means your users cannot write attributes - so for photos and other files where meta-data is critical, this is not a great idea. But for the vast majority of shares, this is fine - they can still "read and write" all the files and folders, but the Date Modified problem does not arise.
    I'd be interested to see if this works for anyone else. Please let me know
    Charles

    Interesting and understood. I always tell people/clients that want to use dates either date created but definitely date modified to add that into the name of the file or call them revisions each time, ie:
    lawsuitJamesrev2
    or
    lawsuitJames_5_1209
    Reason being is depending on the backup system or worse yet disaster recovery you might not see or be able to see modified dates. IF the file is labeled as shown above it makes it easier. Again each person is different but from experience this works best as well as sorting. Also law firms I worked with have a number system since they needed to follow regulations on how to secure content. Again just ideas...hope you find an answer and pass it on

Maybe you are looking for

  • Error in UM Configuration

    Hi When I click on the link "UM Configuration" under "System Administration - System Configuration" I get the following error message: Portal Runtime Error An exception occurred while processing a request for : iView : pcd:portal_content/administrato

  • Error : Access not possible using "null" objects reference

    Hello. i am working with a zbapi. i called a external email program in this bapi,everything is working fine over here. In webdynpro java they mapped my bapi and starting working from there. every functionality is working fine but regarding this email

  • Anyone tried using Xcode 4?

    With the public release of Xcode 4, I was wondering if anyone has tried using it for InDesign development? Any success stories? Any failures? What version of the SDK did you try? 3, 4, 5? Any important lessons learnt that you'd like to document?

  • Video - Images in Flash

    Hello Forums: I've been curious to see a technique that I've been seeing a lot recently in Flash website, where a small video clip is cut into images or what not and then played, almost like a video, in Flash. How is this done? Example here: http://w

  • Reg: For 3rd party vendor..

    Hi all, How to find out if any order is shipped by 3rd party vendor or not.. With Regards, Mahaboob