How to change/crop to larger page size?

Hi,
I have the following script to loop through each page in a document, check if each page is A4 Portrait size, and if it is, change it to US Letter paper size:
//Change Portrait A4 Page Size to US Letter Size
//Values are in points and there are 72 points per inch
//Check if page is Portrait A4 size (if Yes, then crop to US Letter otherwise ignore)
for (var i=0; i<this.numPages;i++){
var rCrop = this.getPageBox("Crop",i);
if (this.getPageBox("Crop",i)[1]<842 && getPageBox("Crop",i)[1]>841 && getPageBox("Crop",i)[2]<596 &&
getPageBox("Crop",i)[2]>595){
rCrop[0] -= 8.28; // Adjust Left Side
rCrop[1] -= 24.84; // Adjust Top Side
rCrop[2] += 8.28; // Adjust Right Side
rCrop[3] += 24.84; // Adjust Bottom Side
this.setPageBoxes("Crop",i,i,rCrop);
The script crops the top and bottom of each page correctly, but only expands the width of the left and right sides on the first page. After doing some experiments it seems the script will crop pages to a smaller size but struggles to expand pages to a larger size (in converting from A4 to US Letter I need to crop top and bottom to smaller size, but expand left and right sides to larger size). I tried changing "Crop" to "Media" but this didn't help.
Any ideas?
Many thanks. HJ

The page size options are limited, but are in the crop tool. If there are no tags or other markup, you can also print to a new PDF and adjust the size in the printer interface -- sometimes the simplest method, but not normally recommended. The rotation can be done in the document menu and then saved. The rotation that is typically on the toolbar are only for the current view and does not save with the PDF. Many of these you can use a batch process to resolve (in AA8 that is under the Advanced>Document Processing). The better method is to setup your Adobe PDF printer to create the correct page size and orientation in the future. You can setup to typically expand to fit, select a paper size, and have the settings set to auto-rotate. The later is based on the text that is found on the page. The margin elimination is also part of the crop tool. Hopefully this at least gives you some things to look at. Unfortunately, the tools get moved around with every version, so you may have to search for the tools.

Similar Messages

  • How to change a pdf's page size, margins and page orientation? Are there available tools to do this?

    We are converting Lotus Notes documents to PDF by exporting (printing) them to PDF via a PDF writer but found some content are truncated or cropped. We have to manually re-print to pdf using a different page/paper settings in order to capture the content correctly. Are there any other methods or tools which can automate this step? Would it be possible to change the PDF properties to adjust the page size, etc?
    Hope there are some useful tools available as there are thousands of documents that are having this issue. Thank you.

    The page size options are limited, but are in the crop tool. If there are no tags or other markup, you can also print to a new PDF and adjust the size in the printer interface -- sometimes the simplest method, but not normally recommended. The rotation can be done in the document menu and then saved. The rotation that is typically on the toolbar are only for the current view and does not save with the PDF. Many of these you can use a batch process to resolve (in AA8 that is under the Advanced>Document Processing). The better method is to setup your Adobe PDF printer to create the correct page size and orientation in the future. You can setup to typically expand to fit, select a paper size, and have the settings set to auto-rotate. The later is based on the text that is found on the page. The margin elimination is also part of the crop tool. Hopefully this at least gives you some things to look at. Unfortunately, the tools get moved around with every version, so you may have to search for the tools.

  • How do i convert several large pages files to pdf?

    how do i convert several large pages files to pdf?

    Hello:
    Open Pages.  Go to the menu bar>file>export.  Select PDF.  The size of the file should be irrelevant.
    Barry

  • Oracle 10gR2 LARGE PAGE SIZE on Windows 2008 x64 SP2

    Hello Oracle Experts,
    What are the advantages of Large Page Size and how would I know when my DB will benefit from Large Page Sizes?
    My undeqrstanding is on Windows x64 – 8kb default page size – will now be 2 MB. Will this speed up accesses to buffer cache? If so is there a latch wait that I can monitor before vs. after to verify that large page size has improved performance?
    My Database server has 256GB RAM and SGA is set to 180GB. I am quite sure the overhead involved in maintaining a large number of 8kb allocations (as opposed to 2MB) must be high - how can i monitor this?
    I am planning to follow the procedure here:
    http://download.oracle.com/docs/html/B13831_01/ap_64bit.htm#CHDGFJJD
    The DB is for SAP on a 8CPU/48 core IBM x3950. For some reason SAP documentation does not mention anything about this registry setting or even if Large Page Size is supported in the SAP world.
    Part 2 : I notice that more recent Oracle patch sets (example 25) turn NUMA OFF by default. Why is this and what is the impact of disabling NUMA on a system like x3950 (which is a NUMA based server)?
    My understanding is Oracle would no longer know that some memory is Local (and therefore fast) and some memory is Remote (therefore slow). Overall I am guessing this could cause a real performance issue on this DB.
    -points for detailed reply!
    thanks a lot -

    Hello
    Thanks for your reply. I am very interested to hear further about the limitations of Windows 2008 and the benefits of Oracle Linux.
    Generally we find that Windows 2008 has been pretty good, a big improvement over Windows 2003 (bluescreens don't occur ever etc)
    Can you advise further about Large Page Size for the buffer cache? I assume this applies on both Windows and Linux (I am guessing there is a similiar parameter for 10gR2 on Linux).
    SAP have not yet fully supported Oracle 11g so this is why 11g has not made it into the SAP world yet.
    Can you also please advise about NUMA? regardless of whether we run Linux or Windows this setting needs to be considered.
    Thanks

  • Large page sizes on Solaris 9

    I am trying (and failing) to utilize large page sizes on a Solaris 9 machine.
    # uname -a
    SunOS machinename.lucent.com 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Blade-1000
    I am using as my reference "Supporting Multiple Page Sizes in the Solaris� Operating System" http://www.sun.com/blueprints/0304/817-6242.pdf
    and
    "Taming Your Emu to Improve Application Performance (February 2004)"
    http://www.sun.com/blueprints/0204/817-5489.pdf
    The machine claims it supports 4M page sizes:
    # pagesize -a
    8192
    65536
    524288
    4194304
    I've written a very simple program:
    main()
    int sz = 10*1024*1024;
    int x = (int)malloc(sz);
    print_info((void**)&x, 1);
    while (1) {
    int i = 0;
    while (i < (sz/sizeof(int))) {
    x[i++]++;
    I run it specifying a 4M heap size:
    # ppgsz -o heap=4M ./malloc_and_sleep
    address 0x21260 is backed by physical page 0x300f5260 of size 8192
    pmap also shows it has an 8K page:
    pmap -sx `pgrep malloc` | more
    10394: ./malloc_and_sleep
    Address Kbytes RSS Anon Locked Pgsz Mode Mapped File
    00010000 8 8 - - 8K r-x-- malloc_and_sleep
    00020000 8 8 8 - 8K rwx-- malloc_and_sleep
    00022000 3960 3960 3960 - 8K rwx-- [ heap ]
    00400000 6288 6288 6288 - 8K rwx-- [ heap ]
    (The last 2 lines above show about 10M of heap, with a pgsz of 8K.)
    I'm running this as root.
    In addition to the ppgsz approach, I have also tried using memcntl and mmap'ing ANON memory (and others). Memcntl gives an error for 2MB page sizes, but reports success with a 4MB page size - but still, pmap reports the memcntl'd memory as using an 8K page size.
    Here's the output from sysinfo:
    General Information
    Host Name is machinename.lucent.com
    Host Aliases is loghost
    Host Address(es) is xxxxxxxx
    Host ID is xxxxxxxxx
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    Manufacturer is Sun (Sun Microsystems)
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    System Model is Blade 1000
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    ROM Version is OBP 4.10.11 2003/09/25 11:53
    Number of CPUs is 2
    CPU Type is sparc
    App Architecture is sparc
    Kernel Architecture is sun4u
    OS Name is SunOS
    OS Version is 5.9
    Kernel Version is SunOS Release 5.9 Version Generic_112233-11 [UNIX(R) System V Release 4.0]
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    Kernel Information
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    SysConf Information
    Max combined size of argv[] and envp[] is 1048320
    Max processes allowed to any UID is 29995
    Clock ticks per second is 100
    Max simultaneous groups per user is 16
    Max open files per process is 256
    System memory page size is 8192
    Job control supported is TRUE
    Savid ids (seteuid()) supported is TRUE
    Version of POSIX.1 standard supported is 199506
    Version of the X/Open standard supported is 3
    Max log name is 8
    Max password length is 8
    Number of processors (CPUs) configured is 2
    Number of processors (CPUs) online is 2
    Total number of pages of physical memory is 262144
    Number of pages of physical memory not currently in use is 4368
    Max number of I/O operations in single list I/O call is 4096
    Max amount a process can decrease its async I/O priority level is 0
    Max number of timer expiration overruns is 2147483647
    Max number of open message queue descriptors per process is 32
    Max number of message priorities supported is 32
    Max number of realtime signals is 8
    Max number of semaphores per process is 2147483647
    Max value a semaphore may have is 2147483647
    Max number of queued signals per process is 32
    Max number of timers per process is 32
    Supports asyncronous I/O is TRUE
    Supports File Synchronization is TRUE
    Supports memory mapped files is TRUE
    Supports process memory locking is TRUE
    Supports range memory locking is TRUE
    Supports memory protection is TRUE
    Supports message passing is TRUE
    Supports process scheduling is TRUE
    Supports realtime signals is TRUE
    Supports semaphores is TRUE
    Supports shared memory objects is TRUE
    Supports syncronized I/O is TRUE
    Supports timers is TRUE
    /opt/default/bin/sysinfo: /dev/ksyms is not a 32-bit kernel namelist
    Device Information
    SUNW,Sun-Blade-1000
    cpu0 is a "900 MHz SUNW,UltraSPARC-III+" CPU
    cpu1 is a "900 MHz SUNW,UltraSPARC-III+" CPU
    Does anyone have any idea as to what the problem might be?
    Thanks in advance.
    Mike

    I ran your program on Solaris 10 (yet to be released) and it works.
    Address Kbytes RSS Anon Locked Pgsz Mode Mapped File
    00010000 8 8 - - 8K r-x-- mm
    00020000 8 8 8 - 8K rwx-- mm
    00022000 3960 3960 3960 - 8K rwx-- [ heap ]
    00400000 8192 8192 8192 - 4M rwx-- [ heap ]
    I think you don't this patch for Solaris 9
    i386 114433-03
    sparc 113471-04
    Let me know if you encounter problem even after installing this patch.
    Saurabh Mishra

  • How do I set a fixed page size in Muse so that the window always stays the same size

    how do I set a fixed page size in Muse so that the window always stays the same size

    Hi Aish & thanks for responding;
    I would like the window size to stay the same for the entire site and not be
    able to scale to drag & scale it. ie 950 pixels x 500 pixels.
    Thanks,
    JB
    On 12/4/14 3:30 PM, "Aishvarya Raj Rastogi" <[email protected]>

  • Adobe pro - print settings: How do i make a custom page size list, which i can copy to my other comp

    Adobe pro - print settings: How do i make a custom page size list, which i can copy to my other computers who have adobe pro installed?

    your right.. i ment acrobat pro :-)
    my problem is that i use the PDF printer to export CAD drawings as PDF´s.
    As it is now, there are some pre-defined page sizes in the print settings, and i know i can add custom pages manually one at a time.
    What i want is to copy the list of my danish standard page sizes, and use them on my other versions of acrobat.
    Its like 70 different sizes, and i have them made manually on my current computer, but i hope its possible to copy the list to other computers.
    Maby its some script where i can define the sizes, and then copy to another computer. Im just not that much of a computer genius :-)
    Hope i got through this without to many spelling mistakes...
    Thanks for helping.

  • How to change an after login page?

    Does anyone knows how to change an after login page from a default page 1 to, let's say page 200?

    Jessica,
    The URL to run your application is http://apex.oracle.com/pls/otn/f?p=23533.
    If you use this, page 3 is the first page shown after login.
    Using the URL you gave runs the Application Builder, not your application. If you use the Builder's Run Application icon to run your application, the page in your application that you are requesting is page 1 (or whatever is in the application's Home URL attribute). But running your application this way is something you do in a development environment only
    Your basic question has to do with how end users would get to a particular after-login page. End users do not have access to the Application Builder.
    Scott

  • I just want to know that how to change the font color, font size, and forgr

    i just want to know that how to change the font color, font size, and forground color in JTextPane for the Selected text. i try diffrerent menthod like setFont and setColor, these methods change the fonts of the whole textpane. so please reply me as soon as possible, and thanks in advance.
    Moazzam

    Sell the Old one... Buy a New one...

  • How to change sentence Case in Pages for ios

    Hi,
    does anyone anyone know how to change sentence case in Pages for IPad.
    I Mean from UPPER CASE TO lower case.

    The IOS version of Pages has no Format > Font > Capitalization facility to transform uppercase text into other case forms. You need to use Pages v5.2.2 on OS X, or export to Word, and use most any other Word compatible word processor. If it is a couple of words, then retype them in the appropriate case.

  • How to change the font, the font size, and color text

    How to change the font, the font size, and the color for a selected text in C++.
    David

    Look at the documentation in the SDK about how to build a plugin and then the PDEdit APIs available to them.

  • How to get the Pdf's page size?

    Hi,
    Anyone can tell me how to get the pdf's page size with js in acrobat?
    Regards
    Goldbridge

    The page size will not always necessarily conform to a standard size such as A4 - PDFs can be defined at any abstract size a user wants. Having a function that only output standard sizes would greatly limit its ability, so it was left up to the user to calculate whether or not the returned rectangle is a standard size as that satisfies many more workflows than the opposite method.

  • How to change DEFAULT font and font size on new Pages document

    When I open a new Page document, it always comes in with a default font and font size. I know how to change those settings on the open document.
    I want to know how to change the ~default~ font and font size so that a new Page document always opens with those default settings.
    -Thanks for your service to the community.

    Hi Lionate
    Welcome to the forum.
    Make a document to your liking.
    Change the Body style and any other styles in :
    +Menu > Show Styles Drawer > click on the little triangle next to Body > redefine Style from Selection+
    Capture the page:
    +Menu > Format > Advanced > Capture Pages… > Name it > OK+
    +Menu > Format > Advanced > Manage Pages… > Delete other Sections/Pages > OK+
    Save as a template:
    +Menu > File > Save as Template…+
    +Menu > Pages > Preferences > General Preferences > For New Documents > click Use template: > Choose > browse to the template above+
    Peter

  • Printing a PDF at a larger page size

    Proabably an easy fix but I hit a wall,  my document is 13"x19" and I want to print it out full frame on our 4880 but it keeps defaulting to 8.5x11", how can I change the page size (or where) so it prints the full 13"x19"s?
    Thanks

    I have a similar problem, question related to this thread. Even though I have set up Adobe Acrobat 8 to print to my Epson 1400 at Super-B size (even using custom size of 13x19") in page set-up, it seems to be printing my page like it's a 'cropped 8.5x11" page. No matter what I have tried, I can't get this to print full-page. It was working last week (or a few weeks agoand it's possible that the last OS patches screwed this up somehow maybe. I can't recall when I printed and when the other installs were done. It will print fine from Photoshop, full page (as I did that last week).
    I am using a Mac, OS 10.5 latest version, and I have uninstalled, and resinstalled the epson print drivers, removed and added the printer from the OS, trashed Adobe Acrobat's prefs, restarted my computer and acrobat... and I'm at the end of my rope not being able to think of anything else to try. Any help or suggestions on this one? I'm stumped and need to print these pages out properly! I have to print them from Acrobat to get consistent color on what I'm printing so I can't print from in Design...
    HELP!

  • How do I make a custom page size in Acrobat X pro?

    I downloaded a gigantic trial version of Acrobat X pro to create a full PDF book cover. I was
    unable to figure out how to make the program do anything at all. The help file and forums did
    not give me the information I needed. Eventually I was able to use 4 other programs in
    combination to create a .doc version of the cover but now I need to turn it into a PDF.
    Can somebody please tell me how to, or how to find out how to, create a custom page size in
    Acrobat X Pro and import a Word document into that page size.
    Alternatively perhaps someone could tell me where I can download an earlier, hopefully more
    usable, version of Acrobat.

    As you have discovered, Acrobat is not a creation or editing tool. It is a program to create a final archive of a document from another application that is readable on most platforms. There have been several tools added to Acrobat to provide more functionality for forms and such, but it was never intended for the creation process.
    Now that you have created your cover in WORD, an appropriate place to create it, you would simply print the page to the Adobe PDF printer. You should change the printer in WORD before the conversion and check the page to be sure that it is still what you wanted. This check is needed for versions prior to OFFICE 2007 that used printer metrics by default. Since OFFICE 2007, printer metrics have been turned off by default.
    If the page does not come out correctly (like is 8.5X11 letter or an A-4 page), then enter the printer properties before printing and set a custom page size there to match your WORD document. I assume the WORD document has the desired size. The printer property change is like putting the correct paper in the printer before printing. Sometimes it seems to sense the application setting, and yet at other times is seems to need to be set.

Maybe you are looking for

  • How to stripe and mirror 4 drives on my Mac

    I have a Mac Pro. 4 internal 2TB SATA drives. I've already striped two drives as one array. I then used Carbon Copy Cloner to clone my boot drive to the striped array. It boots up and works fine (with a BIG increase in disk speed). I've striped the o

  • Lost my complete iphoto library!!

    Hi, I have lost my complete iphoto library. I have just upgraded to OS X 10.8.2 from 10.5 and I did not back up previous to losing it. Is there anything tha I can do to retrieve it?

  • Help?! Playback Resolution error on Premiere CC 2014

    I recently upgraded to new release of Adobe CC 2014. I have a sequence set at 1080P AppleProRes 422 HQ. I currently have a mixture of 4k footage and 1080p footage. When I set my program window to playback resolution to 1/2, the program window magnifi

  • Condition on a text is corrupting the output of a smartform

    Hello Everybody, I put a condition as advised ( int_sal-sal = 0 or int_sal-kondt = 0.)but it is corrupting the output of the form , headers are coming in one page and headers in middle of the form. Why is that ? Thanks

  • Which segment in INVOIC IDoc holds Allowance value @ header level?

    Hi all, I want a segment in INVOIC IDoc to hold SAC (Service Allowance and Charge) Values @ Header level. Plz suggest me one. I know @ item level SAC values are stored in E1EDP26 segment. Tell me which segment i can use it for holding SAC values at h