How to access a PDF file imported inside a rectangle and move

Hi, I have the following code which puts a PDF file inside a rectangle var f = new File ("C:/pdf.pdf");    var doc = app.activeDocument;  var thepdf = doc.pages [0] .rectangles [0] .place (f, false);  doc.pages [0] .rectangles [0] .fit (FitOptions.FILL_PROPORTIONALLY);  Now I want to spend "thepdf" (which is the type of PDF object), but I can only find a way to move the rectangle around it. I need to move the inner rectangle (PDF), as I would with the direct Selection tool. is this possible?

Yes. It is possible.
The PDF file placed inside the rectangle is the graphics object [0] of the rectangle.
Or, if search you the collection of links, the parent of this link. The parent of the parent that is the container, the rectangle object.

myRectangle.graphics[0].move(/*insert your arguments here*/)

Move the PDF file inside. When the move() method could have different arguments:

Adobe InDesign CS6 (8,0) object model JS: graph

Uwe

Tags: InDesign

Similar Questions

  • Can someone help me understand how to access such RW2 files saved by my Lumix LX100 in Lightroom 4.4?

    Can someone help me understand how to access such RW2 files saved by my Lumix LX100 in Lightroom 4.4?

    Hi Edward,.

    4.4 Lightroom does not support files of Lumix LX100 RW2. You need at least 5.7 version of Lightroom to access these raw files.

    Or, you can use free Adobe DNG Converter to convert raw to DNG files, and then import the DNG in Lightroom.

    For Mac: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5854

    For Windows: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5864

  • How to download & print pdf file?

    How to download & print pdf file?

    Hello!

    If you are referring to a file that is saved in your Acrobat.com account, then you can access it by logging into your account on https://cloud.acrobat.com/files. Select the file you want to download and click the download at the top of the list of files. Once it is downloaded (it'll most likely be in your downloads folder), you can open in Reader or Acrobat and print!

    Please let us know if you have any additional questions.

    Best,

    Sara

  • Why the adobe reader software is blocking all access to pdf files

    software Adobe reader doesn't block my access to pdf files.  Says I have to sign the contract of use I did.  How can I get on it?

    If you are on Mac and installed the Adobe Reader software to the deafult location.

    Try this:

    1. Quit Safari

    2. from Finder > go > go to folder... > type in the path: /Applications/ and click 'Go '.

    3. run "Adobe Reader"

    4. accept the end user license

    5. open a PDF file in Safari.

  • How to insert a pdf file from a dynamic location in a table

    Hi friends
    Can you get it one please let me know how to insert a pdf file into a table from a dynamic location to the server.
    Suppose that I have a table CUST_BLOB (file_name, file_data). I have a file in the directory c:\local having file_name test.pdf

    I want to insert this file in CUST_BLOB. Please help me.

    Thanks in advance.
    -Ahmed

    user620950 wrote:
    Hi friends
    Can you get it one please let me know how to insert a pdf file into a table from a dynamic location to the server.

    Why dynamic locations on the server?

    Make a business case that the files must be stored in specific locations.

    Oracle uses directory objects to point to locations on the file system, and while these places may be changed, it is best to implement the specific locations and grant permission to correct for locations users so that there is total control over who accesses what on the server. While the names of files can be dynamic, I wouldn't recommend using dynamic sites.

  • How to save a PDF file in Adobe so it appears correctly in the Firefox default drive?

    I have seen discussions on how to change your own settings of Firefox for poster correctly PDF files (documents to look at a PDF in Firefox 19 +) However, I'm looking for a solution on how to save a PDF file so that they display correctly in the new default Firefox reader. Our files PDF is bad looking and I can not go in the browser of each clients and difficulty settings (http://www.cherrybekaertbenefits.com/wp-content/uploads/2014/07/ACA_Infographic_072114.pdf). Meet them all parameters within the Acrobat Distiller is going to fix this without the Viewer to enter their own arrangements?

    Hmm, not a subtle difference.

    We did not have many experts PDF or Adobe Illustrator users post advice here; those who might be sprinkled around on other forums, blogs or support sites.

    I noticed when you view the properties of the PDF in Adobe Reader that the PDF has been created with optimization for active fast Web view. This is a feature that allows the progressive rendering of PDF files over a slow connection (http://helpx.adobe.com/illustrator/kb/optimize-native-pdf-file-sizes.html#...). You can try to re - generate the PDF file with this feature turned off to see if that makes a difference?

  • How to restore a pdf file

    How to recover a pdf file

    Accidentally deleted, corrupt, can't find it on your Mac? Be more descriptive of your particular problem. We are not mind readers.

  • Is it possible to plug a USB to my new iPad Pro, to transfer PDF files and some Jpeg files from the USB key with an adapter of lightning? If there is NO adapter, how can I get these files on the USB key and my iPad pro?

    Is it possible to plug a USB to my new iPad Pro, to transfer PDF files and some Jpeg files from the USB key with an adapter of lightning? If there is NO adapter, how can I get these files on the USB key and my iPad pro? I need these PDF files transferred my I touch pro. Any suggestions?  Please

    Thank you

    Mike Tingey

    The iPad does not support USB keys. There are some wireless flash drives that can be used, but not the classical records. I suggest you transfer files to a computer and their synchronization then back to the iPad via iTunes.

  • How to access a shared file on my RN212 NAS remotely from another program?

    I've looked everywhere trying to find how to access a shared file on my RN212 NAS remotely from another program (kodi) on my iPhone 6 more remotely, away from home. I tried to FTP, UPnP, HTTP, etc. anything and it's driving me crazy! I run the program kodi from my phone for watching videos stored on my SIN, I have a router NightHawkR7000 and believe that I am fairly warned to get this figured out, but apparently not lol I have all the correct ports forwarded, but perhaps I'm missing a step somewhere. Any help on this would be much appreciated!

  • HP officejet 4650: how to print a pdf file of windows 10-hp officejet 4650

    How to print a PDF file using windows 10 to a HP Officejet 4650

    You can install Acrobat Reader (free) DC from Adobe here.

  • How to open the pdf files from hotmail.

    OMG no body can help with this question, how to open the pdf files from hotmail

    OMG no body can help with this question, how to open the pdf files from hotmail

    Told you that you need Adobe Reader, which is designed to open pdf files?

    Download Adobe Reader:

    http://www.Adobe.com/products/reader.html

  • How to recover a deleted file important?

    original title: delete the file

    How to recover a deleted file important?

    Hello

    Recuva - free - recovers files deleted from your Windows computer, Recycle Bin, digital
    map of the camera or MP3 player. And it's free!
    http://www.Piriform.com/Recuva

    Forums - help here
    http://Forum.Piriform.com/

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to open a PDF file in Windows 7? When I click on an all I get is a blue promotion screen 'extras '.

    How to open a PDF file in Windows 7? All I get is a blue promotion screen 'extras '.

    One of those 'extras' is likely to be Adobe Reader :)

  • I need to modify a pdf file. The answer on the forum did not explain the directions on how to change a pdf file.

    All I want to know is how to change a pdf file.

    HI martahawk,

    Please let us know the Adobe application you have?

    To check how to change a PDF document, you can check this link: Edit text in PDF in Adobe Acrobat format

    Let us know if that helps.

    Concerning

    Sarojini

  • How to display the pdf file in the apex region

    How to view pdf file in an apex html region. pdf files are stored in the column of type blob of a table. Please note this is not a static file. I am able to create a link to download and view the pdf in a new window. But it's not my priority. I need to see the full pdf file in the html area.

    I looked around the forums but couldn't find a good answer. All suggestions will be useful. Thank you

    Hi Alexandre-Oracle,

    Alexander-Oracle wrote:

    How to display the pdf file in an html apex region. PDF files are stored in the column of type blob of a table. Please note this is not a static file. I am able to create a link to download and view the pdf in a new window. But it's not my priority. I need to see the full pdf file in the html area.

    I looked around the forums but couldn't find a good answer. All suggestions will be useful. Thank you

    See the following thread I explained how to display PDF in the region HTML using the embed tag:

    Re: Display pdf

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for