Extract the Page Size from the Document Properties

I have multiple drawings of various sizes and need to extract the page size from the document properties of each drawing.
this.info object can be used to extract the title, author, subject etc of a document but there is no property shown for extracting the page size.
Can any one please advise a way of extracting the page size from the document properties of a file?
Any assistance will be most appreciated.
Once the page size can be extracted I will be using a script to place a stamp with onto the drawing depending on the page size.
Thank you.

Thank you for your help George.
I have used the getPageBox script as follows:
var aRect = this.getPageBox("Crop");
var width = aRect[2] - aRect[0];
var height = aRect[1] - aRect[3];
console.println("Page 1 has a width of " + width + " and a height of " + height);
The console reports back - Page 1 has a width of 1162 and a height of 814.
The actual drawing shows in the document properties page size as 40.988 x 28.713 cm.
Can you please advise why the getPageBox measurement is not reporting correctly?

Similar Messages

  • How can I remove the page number from the first page of the document that is the cover page?

    How can I remove the page number from the first page of the document that is the cover page?

    If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
    It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages).

  • How to set the page size and the margins programatically

    Hello,
      I am working with crystal report XI Release2 and asp.net.
    One of my report is having 4 graphs in a single report.In order to display all the graphs in one page i have set  the paper size as A3.(Via Crysta report ->File->Page set up)
    But the page size A3 is not provided by all printers.So problem comes when the application is diployed on a machine which does not support A3 Printer.All the graphs will not be shown on a single page.
    Also Each and Every time ,when the application is diployed on a machine,user has to open the crystal report and adjust the page size accordingly to get all the reports on a single page.
    This is a kind of usability issue also.
    Is it possible to set the page size and the margins programatically say for eg 11 X 17.so that with out doing anything all the 4 graphs will get displayed on a single page ?
    Please let me know if you require more information regarding this issue.
    Thanks in advance.
    smitha.

    Hi Ludek,
    i could solve the issue by using the follwing code.
    report = new ReportDocument();
    PageMargins customPageMargin = report.PrintOptions.PageMargins;
    report.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
    report.PrintOptions.PaperSize = PaperSize.Paper10x14;
    customPageMargin.rightMargin = 1;
    customPageMargin.topMargin = 0;
    customPageMargin.bottomMargin = 0;
    report.PrintOptions.ApplyPageMargins(customPageMargin);
    Thanks for you help.
    Regards,
    smitha.

  • Is possible to get the page name from the _pageid

    Is possible to get the page name from the _pageid displayed in the url?
    It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
    Thanks in advance.

    You have you execute this query, using both the numbers included in the parameter pageid:
    select display_name from portal.wwsbr_all_folders
    where caid = :first_number
    and id = :second_number

  • Embedding the page size into a document (envelope)

    Hi all. I'm new to this forum and sort of a newbie
    In indesign I created and envelope and actually had to use custom paper size of 9.5 x 4.125 inch. Print setup in indesign is set to Envelope Com10 for paper size.
    when I create the pdf using adobe acrobat and then I look at file properties, I see that the page size is indeed 9.5 x 4.125 inch
    then in adobe reader, if I go to print, it wants to print to a letter. when I click on file printer setup, it says letter in there.
    is there a way that the printer setup can be embeded in the document. So that I don't have to change it every time I open the document.
    thanks a bunch

    I do not believe it is possible because the method to do so depends upon the OS.

  • Need to reduce the page size, not the file size (shrink the page to allow for binding)

    I need to reduce the image size (text is too large to allow for binding).

    What is the output device - it is best to set scaling there, or scale while printing from Acrobat. The only means to accomplish
    I need to reduce the image size (text is too large to allow for binding).
    Print to Adobe PDF printer.
    Define a page size in the Properties of the PDF Printer
    Print from Acrobat to PDF Printer with scaling in effect.

  • Why do links in the template change location to 'file:///'...on the pages created from the template?

    Im not sure what I am doing wrong but I am building a portfolio site from a template that I downloaded online.
    The site is working and I am slowly converting it from the template content to the content that I want.
    As I will be editing the site and adding more pages I decided to try and add the Header, footer and main navigation bar as a template with another gallery container and navigation as an option on the template.
    I thought that it was working fine untill I noticed that the links on the pages created using the template are showing as follows,
    instead of the links that were in the template that show as,
    Is this something that will change when I upload the site with the template or have I done something wrong making the links?

    Usually this happens when you don't use a proper Site Definition, or if you have files outside your defined site folder.
    Have you defined your site properly?
    http://tv.adobe.com/watch/learn-dreamweaver-cs5/gs01-defining-a-new-site/

  • Pro X to retain the page size from my macWord doc?

    I am saving my MacWord doc to PDf (Pro X) and used a 6x9 template. However the PDF size is something completely different (not 6x9). How do I fix this?

    The problem is that no Adobe Printer 10 installs in the printer queue, with the result that Acrobat 10 doesn't recognize the customized page size settings but instead reverts to the default paper size, usually letter or A4. My current solution was arrived at by experimentation. Don't use Distiller 10 but rather whatever version of Distiller you've used up to this point to convert the Postscript file to PDF. I also set the default paper size to the custom size in printer prefs, although I'm not certain that's necessary. Will experiment later.
    This is clearly a problem with the software installation, unless there's a way to install the printer at a later time I've failed to locate. At least I don't have to, as I feared I might, uninstall all the Acrobat software and start over from scratch. I was using 8 upgraded from 7, and that would be a massive pain in the butt.
    Liz Burton

  • How do you number pages but start the numbering on the second page, while omitting the page number from the first page (my title page)

    I have recently changed from Word to Pages 5.5. I want to create a document with a title page (no number) and the second page as Page 1. It is quite simple to do in Word, but I cannot find a way to do it in Pages.

    Hi Ryanlipp;
    Insert a section break
    Place cursor in the newly created section (page)
         In the Document panel:
    select Insert page number: 1.
    Under Numbering, select start at: 1
                     It starts numbering from number 1 in the new page (2nd page).
    Now place the cursor in the previous page (Ist page).
    Select Hide on first page section.
                     This hides page number in the first page of the document.
    I hope, this is what you are after.
    Regards,

  • How do I match the printed pdf page breaks with the page breaks from the online form?

    The online form is setup to be 4-5 separate pages...each page going to a different person/group when it is printed in a pdf. However, when the form is printed, it prints out all the blanks and the forms are off by about a half page.
    Is there any way to not print the blank spaces (I have several boxes hidden based on choices of the user), and to make the printed pdf honor the online page breaks?

    Hi;
    When you are viewing the "Design" while authoring your form there is a "View" setting that you can access from the "View" menu along the top right, or from the dropdown at the bottom right corner, if you change from "Web View" to "Page View" you can add page breaks there that will affect the PDF.
    Page View is an authoring view to design for PDF where Web View is an authoring View to design for web/browser/HTML forms.  You can use both so that your form looks good in both web and PDF.  Some features have to be added/edited in Web View because they are not supported in PDF such as Attatchments and Skip/Page logic, those are not available to add/edit in Page View.  The Page Breaks added in Web View are not used in the PDF, in Page View "Implicit page breaks" are added automatically based on the size of the page in PDF and you can add "Explicit page breaks" using the form field toolbar as you did in Web View (which will only be used in the PDF).
    When you ask if there is any way not to print the "blank spaces" you are referring to the questions that had remained hidden based on skip logic right?  At this time the entire form is saved/printed to PDF, there is not an option to omit those hidden fields.
    I hope that I understood your issue correctly, let me know if I can help further.
    Thanks,
    Josh

  • When I click CONTINUE READING the page resets from the top

    On many sites (salon.com for example) you'll have part of an article and then a link that says "Continue Reading". In Firefox version's before 4.0 when I clicked that link, the rest of the page would show up but I could keep reading from where I was.
    Now when I click that, the rest of the page shows up but it refreshes and I'm back at the top of the page and have to scroll down to where I was reading.
    www.salon.com is not the only site this happens with - just the one I'm on most.

    Try to clear the Google cookies.
    Does it help if you set the language to English via the gear icon > Settings?

  • HT201240 Red closes the page, green reduces the page size. green the enlarges the page but smaller than before. How to get page to full screen?

    How do I get the page back to screen size after using the Green icon[top LHS] Currently returns to 3/4 size??

    This (older) thread explains it well:
    https://discussions.apple.com/message/4613798#4613798

  • How do I change the page size of a pdf?

    I'm trying to send a manuscript to a printing service in another city. It was produced using Microsoft Publisher. In Acrobat Pro I changed the page size from the default (8 1/2" x 11") to the size of my finished document --- 7.8" x 10". Yet when I send the manuscript to the printer it's still the larger size. I've tried right-clicking on the pdf printer and changing to a close approximation (7.5" by 10"), which is listed as one of the available alternatives, but it won't let me change it. What am I doing wrong?

    There's no real need to do that. A PDF can have pages of different sizes.
    On Fri, Jun 6, 2014 at 4:11 AM, christine rambo <[email protected]>

  • Can I increase the page size in an existing PDF?

    We have a PDF of a CAD drawing from a consultant.  The problem is, the page size is letter, and we need it to be tabloid to accommodate a section of General Notes and a Cost Estimate table.  We would rather not go back to the consultant both from a cost standpoint and from a time standpoint.
    Is it possible to increase the page size within the PDF so that I have some blank space at top or bottom for the needed blocks?
    I am using Adobe Acrobat X Pro.
    Thanks!

    Hi Mamie ,
    Please refer to the following kb document and see if this helps.
    https://helpx.adobe.com/acrobat/kb/scale-or-resize-printed-pages.html
    Let us know how it goes.
    Regards
    Sukrit Dhingra

  • Adjusting the page size in numbers on the ipad

    I need to be able to adjust/set the page size for numbers documents on the ipad. Every time I export the numbers document from icloud as a pdf to a pc the spreadsheets are all over the place with page breaks in the wrong places. If i export as an excel I lose all formatting. I can't download as a numbers doc as the pc will not support it. Is there a way of setting and locking the document/page size with out going through the print option as i do not have an airprint printer and am not going to get one either!

    I don't see a setting for page size.  Everything else related to that (sans setting the page size) appears to be found here:
    Click the wrench
    Share & Print
    Print
    Select portrait/landscape, content size, page numbering, headers
    Done (don't actually print it)
    I wonder if you set the page size when you actually go to print it.  I don't have a printer to try it on. Otherwise it looks like 8.5x11 is all you get.

Maybe you are looking for