Script for crops only only pages portrait or landscape

I need apply the settings from a different culture for the landscape and portrait pages in a document. The document runs to a thousand pages for a manual any solution is not viable.

I know Acrobat allows only the crop tool to be applied selectively to the odd and even pages and not pages portrait and landscape.

I understand that a script can achieve what I'm trying to do. Unfortunately, the script is outside my area of expertise.

I'll be very grateful if anyone who knows how can give me a helping hand.

Thank you!

Jay

This is a basic script that should do it:

var i, aRect1, nWidth, nHeight;

To loop through all the pages

for (var i = 0; i)< numpages;="" i="" +="1)">

rect1 = getPageBox ("Crop", i);  Get the current rect of the page

nWidth = rect1 [2] - rect1 [0];  Calculate the width of the page

nHeight = rect1 [1] - rect1 [3];  Calculate the height of the page

If (nHeight > = nWidth) {/ / Portrait/square pages}

rect1 [0] += + 2.5 * 72;  Left 2.5 "

} else {/ / landscape pages}

rect1 [0] += 3.5 72;  3.5 left. "

rect1 [1] = 1.0 72;  Top 1.0 '.

rect1 [2] = 3.5 * 72 / / right 3.5;

rect1 += [3] 0.5 72;  Low 0.5 "

}

Crops page

setPageBoxes ("Crop", I, I, rect1);

}

You can run this in the console JavaScript interactive (Ctrl + J), a temporary bookmark, link, or button, or a custom action.

Tags: Acrobat

Similar Questions

  • Can I create a password protected for members only page?

    Can I create a password protected for members only page?

    Muse does not support this natively, but you could password protect the page with a simple cut and paste javascript - see this article: http://www.javascriptkit.com/script/cut10.shtml

    That should allow you to lock certain pages, and you can then provide a password for your users. You could also change the password every month, protect the directories/different sections of the site and so on.

  • Script to crop only odd or even pages in Acrobat

    Someone at - it script to crop the even or odd pages only through batch processing. I use the same settings of harvesting almost every day and would like to be able to define a batch process for this. I copr parameters for odd and even pages, so I can't use the basic crop tool already contained in the batch. Thanks for any help.

    I copr parameters for odd and even pages, so I can't use the basic crop tool already contained in the batch.

    Why not?

  • Pages portrait and landscape in the same document ID?

    I use InDesign CS4 and am certainly not an expert user.  This may sound strange, but I have a need to produce a document that contains both portrait and landscape oriented pages but I'd rather turn the page 90 ° to the right rather than rotate the content of 90 ° to the left so that I'm not craning my neck while working on the content. Is this possible?  If so, how?  Thank you in advance for assistance.

    In the pages Panel, choose the rotation of the spread of the display in the Panel menu.

  • How to convert a file FrameMaker containing pages Portrait and landscape in PDF?

    I recently converted to 9 FrameMaker and Acrobat 9. In the FrameMaker manual created by me, most of the pages have portrait orientation, but some have landscape orientation. However, when I convert the manual as a PDF using Acrobat Distiller, pages in landscape becomes Portrait. It wasn't a problem when I converted the PDF manual in earlier versions of Acrobat Distiller, he showed up after I installed Acrobat 9. In other words, the FrameMaker file has worked before. I also tried this on three different computers to make sure that the computer is not the problem. Does anyone have ideas that I could try to do this job?

    Jorunn, never solved this problem? If this isn't the case, I have a solution for you.

    In FrameMaker, select the book you want to create a PDF file, click file > print and select Adobe PDF as the printer.

    Click Properties and make sure you have the selections you want.

    Back on the Print Setup dialog box, leave the paper and Orientation as a letter and Portrait respectively.

    The print dialogue box book, select print to file and navigate to the correct location. Be sure to save as a PostScript (name.ps) file and the safe field book both, you want only selected file.

    Once again on the print dialogue box book, click on the checkbox to generate data Adobe and click Configuration of PDF. On the PDF configuration for the selected files dialog box, PDF job options, select print quality or make the choice for your situation for settings, Favorites, Tags, and links.

    With Adobe Distiller open, file > open and find the .ps file you previously reported. Also check that your default settings for the PDF file are correct. When the Distiller is finished, you can double-click the PDF to open it and check your landscape and portrait pages display correctly.

  • Horizontal definition in the page from Portrait to landscape orientation.

    "Adobe Acrobat XI.

    I have a PDF file with pages 11 x 17-inch in the middle of several standards of 8.5 x 11 pages portrait in landscape mode. When copy paste form fields, the 8.5 x 11 pages in the same PDF file, it auto turn fields on 11 x 17 pages assuming that they are on the side of resources, when in fact they are not.  Even things like organize fields horizontally/vertically are reversed on the 11 x 17 pages.

    I tried turning & retrieval and their don't change separately or no effect.

    I have more than 100 items and fields on each page.  Resizing, repositioning, and adjust the settings for each field are too tedious.  There must be there to adjust settings so that pages in landscape as horizontal 6 & 7 of my PDF read.

    How to adjust the setting while she reads the pages 11 x 17 landscape as horizontal?  If horizontal cannot be resolved then how prevents fields to turn when I have in front of them?

    What I propose is not usually recommended. I would on the copies. If you have bookmarks and others on 11 X 17 pages, they will be lost. Try first on only one of the 11 X 17 pages.

    1. print this page for a new PDF (don't forget he has the correct orientation in the printing process and do not turn after the fact).

    2. use replace pages to insert the new page in the original location.

    Who can solve the problem. For some reason, Acrobat retains the original orientation info and seems to link the form fields to this orientation. This extra step can redefine the orientation for you, but I'm not sure. The worth a try anyway, and it might give you a solution to your problem.

  • Best practices for the application of page multi Landscape/Portrait

    Hello
    I am looking for information on track to develop auto guide demand in pure actionscript with new components of qnx.fuse, but there is not a good example in real code. Every time I tried to make it resizable layout to get deformated fluid only components in portrait or landscape mode.

    I have a simple application with the point main and 3 displays:

    public class Main extends NavigatorSprite
    {
        public function Main()
        {
            addEventListener(Event.ADDED_TO_STAGE, init); 
    
            stage.nativeWindow.visible = true;
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            stage.nativeWindow.activate();
        }
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
            navigator.pushView(View1);
        }
    }
    
    public class View1 extends ViewSprite
    {
    
        private var container:Container;
        private var button_two:LabelButton;
        private var button_three:LabelButton;
    
        public function View1
        {
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            container = new Container();
            var layout:RowLayout = new RowLayout();
            container.layout = layout;
    
            button_two = new LabelButton();
            button_two.label = "to page 2";
            button_two.width = 150;
            button_two.height = 45;
            button_two.addEventListener(MouseEvent.CLICK, handleTwoClicked);
            container.addChild(button_two);
    
            button_three = new LabelButton();
            button_three.label = "to page 3";
            button_three.width = 150;
            button_three.height = 45;
            button_three.addEventListener(MouseEvent.CLICK, handleThreeClicked);
            container.addChild(button_three);
    
            addChild(container);
        } 
    
        private function handleTwoClicked(e:Event):void
        {
            navigator.pushView(View2);
        }
    
        private function handleThreeClicked(e:Event):void
        {
            navigator.pushView(View3);
        }
    }
    
    public class View2 extends ViewSprite
    {
    
        private var container:Container;
        private var back:BackButton;
    
        public function View2
        {
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            container = new Container();
            var layout:RowLayout = new RowLayout();
            container.layout = layout;
    
            back = new BackButton();
            back.label = "Back";
            back.width = 100;
            back.height = 45;
            back.addEventListener(MouseEvent.CLICK, goBack);
            container.addChild(back);
    
            addChild(container);
        } 
    
        private function goBack(e:Event):void
        {
            navigator.popView();
        }
    }
    
    public class View3 extends ViewSprite
    {
    
        private var container:Container;
        private var back:BackButton;
    
        public function View3
        {
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            container = new Container();
            var layout:RowLayout = new RowLayout();
            container.layout = layout;
    
            back = new BackButton();
            back.label = "Back";
            back.width = 100;
            back.height = 45;
            back.addEventListener(MouseEvent.CLICK, goBack);
            container.addChild(back);
    
            addChild(container);
        } 
    
        private function goBack(e:Event):void
        {
            navigator.popView();
        }
    }
    

    Is there for example some best practices how to modify this code to have pages and components with the same sizes in portrait and landscape? On presentation buttons size always 150 width and height 45 and wil containers have stageWidth and stageHeight.

    Thank you if someone could help with this problem

    Hello

    Try listening to a shift in focus screen with this code:

    stage.addEventListener(Event.RESIZE, onResizeHandler, false, 0, true);
    

    You can only change the width/height of your components to the event based on the width/height of the floor.

    I will guard against specifying specific sizes, if you want your code to work on devices BB10. I recommend using %'s.

    Kind regards

    Dustin

  • Firefox for Android only displays the desktop version of gmail rather than mobile.

    Android only question.

    I prefer to access gmail via a browser rather than the gmail app. Tests of other browsers on Android (Chrome and Dolphin) I see that they display a mobile-specific version of the gmail Web site.

    Firefox for Android only displays the version of office on my Nexus 7 (5.1 runs Android 2012) - and therefore more difficult to read and use. Any help or ideas would be greatly appreciated.

    Thank you

    Pinellas Chuck

    Well, Yes, it's that Word annoying Tablet.

    What I'm going to describe is difficult to type, so I hope that you can open this page on your tablet.

    Select (0) and copy the following text on your Tablet if possible to avoid the excesses of type:

    general.useragent.override.mail.google.com Android; Tablet;#Android; Mobile;
    

    The forum linkifies this first part, but it is not supposed to be a link.

    (1) open a new tab to Subject: config (type about: config the Awesomebar and hit the arrow go or tap Enter).

    You can bookmark it for easy future access.

    (2) in the search box, type agen and make a pause while Firefox filter list

    (3) scroll down to the bottom and look for a preference named general.useragent.site_specific_overrides and confirm that it has its default value true. If it is set to false, press the reset button for it back to true.

    (4) scroll back up and press the big button "+" to the left of the search box to add a new parameter

    (A) the name of the preference must be general.useragent.override.google. com (for all Google sites) general.useragent.override.mail.google. com (for Gmail only)

    If you type this, beware of the correction automatic insertion of spaces and be sure to remove those.

    If paste, remove the part after that.

    (B) on the right side, type Boolean and in the popup, change it to a String

    (C) the value of the preference should be Android; Tablet; #Android; Mobile; -in other words, substituting Mobile for Tablet.

    If you type, pay attention to the excess spaces.

    If gluing, remove the preference name and extra space before this part.

    (D) then click on create

    If you open https://mail.google.com/ must now use the mobile layout.

    Success?

    Edit: To clarify the name of preference options.

  • VeriStand "Custom Device" creation, including the different types of sources of code for simulation only

    Hello

    Before I ask my questions, I want to describe my problem:

    I would use VeriStand on a PXI system for simulation only. The simulation includes different types of sources such as Maltlab-Simulink-models, MultiSim SPICE models and code LabView for FPGAS-programming. Simulink models are available as a dll-file, generated with 'Real-Time-Workshop' and 'Simulation tool Kid. " They need to generate heavy duty, calculated by the modulation of the vector space and model the performance of a special converter. The MultiSim model will be transformed via a special VI in LabView code. I can generate code VeriStand (--> NI VeriStand--> Generate tools...). The PWM duty cycles of this dll matlab above are for LabView FPGA code entry. This will be the entrance of the gate of the tansistors of the MultiSim-model. Means, space vector modulation generates tension of the door and get the FPGA code to the ports of the inverter model.

    I am new in programming with VeriStand and LabView. I don't know how I can handle this. But NEITHER says it's possible. So my questions are:

    Is it possible to use VeriStand with more than one device Costum and simulate as a whole simulation. How can I associate different files.

    If this isn't the case, that I have to build a LabView Vi, where all the different sources of models are included.

    Is a walkthough or a user guide available, that I can use to fix my problems.

    I hope you can help out me. I need it for my bachelor thesis very fast. Thank you for your attention.

    Best regards Andre

    Here is a document describing how to create compiled LabVIEW templates and import them into NI VeriStand:

    http://www.NI.com/white-paper/12785/en

    The following link is a more general page describing several model and their support environments in NI VeriStand:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/6488

    Some additional modeling environments are supported, but not necessarily listed here since this is a growing list.  In addition, since NEITHER created a strategy of open model interface called NI VeriStand model framework, it would be possible to connect new types of sources of model in NI VeriStand without too much work.  Then the mapping tool, you found, makes the magic of easily to configure the connections of logical data between models.  You can also easily transfer each model to the individual processor cores, which contributes to the speed of calculation for system-level simulations.

  • If Google is my default search, can I go and change it if I want to do a search for GMaps; only the default is in the search drop-down list.

    If Google is my default search, can I go and change it if I want to do a search for GMaps; only the default is in the search drop-down list.
    So I have to change the default to Google Maps then back to Google to search for one.

    I have it! It's the topic: config "hiddenoneoffs" where the 3 elements of google, maps and mcafee have been included. There was no space between Google and maps. I put one in from Google Maps. She appeared in the first box-ff, but not sure about the search in the second time zone. I went back to the subject: one-offs. Safe search was shown with a space after Secure. I took out the space. Safe search arose in the 2nd single search box!
    Weird! This is contrary to how they show in the search parameters.
    Can I have messed that when Firefox has been reset all the search engines on an update, but I do not.
    Either incidentally, I tried to re-installation characteristic but the file comes down as a .dmg that I'm not familiar with and don't apparently is 8.0 to win because he couldn't open it. Thank you once again.

  • Use the TC for backups only, while the computer is connected to a different network

    Time Capsule version 7.7.3

    I want to be able to make backups without having to connect to its network via wi - fi, because I'm connected to a different wireless network to access the internet.

    I thought that I need to connect the TC to my computer with an Ethernet cable.

    But how to set it?

    Like this.

    Time Capsule using wired for Mac for backup only.

  • How attached iPhone off to USB host for charing only

    How attached iPhone off to USB host for charing only

    How attached a motorized iPhone to USB plug for battery charing

    without the phone starts in normal mode? The phone should simply keep turned off

    and only switch to the mode of charing on its data cable plug-in / original accessory load to the USB host.

    iPhone 6 s.

    You cannot charge an iPhone if it is turned off, because the charger is implemented on the software, which must be supplied to do its job. However, if you plug first, then turn to it it keep the charging circuit on and off the rest of the phone.

  • Legal to use "For DISTRIBUTION only with a NEW or HP Compaq PC" CD sent AFTER the purchase of the REFURBISHED computers?

    Several months after the purchase of a refurbished laptop factory small business HP,
    I came across some problems that I have contacted HP.

    HP sent me (with no extra charge) a set of 2 CDs, both marked
    "For DISTRIBUTION only with a NEW HP or Compaq PC" (underlining)
    and protected by HP (with portions by Microsoft).

    The 2 CD of this set of CD XP Pro DR/OS were:
    Operating system CD
    Application and Driver Recovery DVD

    Since:
    1. the PC was a PC refurbished, rather than another.
    2. the CD set was sent AFTER my purchase, rather than be distributed with it.
        
    I was always a little uneasy on this subject, but had never asked about it before.

    Is it legal to use these CD with my PC HP refurbished?

    Thank you.

    -RJ, USA

    The key words here are "HP refurbished factory."

    That's why since you received the media to "HP" its legal. Recovery media is automatically sent to end users like you to a number of PC makers, with HP being one of many.

    J W Stuart: http://www.pagestart.com

  • I found a cd of OS Windows XP in the House who said for distribution only with a new hp or compaq pc, is it legal to install this on my pc tailor-made with a new product key?

    The Windows XP operating system disk

    I found a cd of OS Windows XP in the House who said for distribution only with a new hp or compaq pc, is it legal to install this on my pc tailor-made with a new product key?

    I found a cd of OS Windows XP in the House who said for distribution only with a new hp or compaq pc, is it legal to install this on my pc tailor-made with a new product key?

    No, it is an OEM drive and only good for the computer, it came with.

    If you have a valid license of retail XP but no installation disc:

    How to replace Microsoft software

    http://support.Microsoft.com/default.aspx/KB/326246

  • message from BIOS X120e diagnosis "for evaluation only. not for resale. "

    This is just a minor quibble, but when I turn on the messages of 'Diagnostic' in the BIOS, I get the following screen:

    http://imgf.tw/717745842.jpg

    I guess the message 'FOR ASSESSMENT ONLY. NOT FOR THE RESALE"is not supposed to be there; at least this is the case for some previous Thinkpad BIOSes (http://www-307.ibm.com/pc/support/site.wss/MIGR-59180.html).

    Or do I have some special super x120e?

    EDIT: My model code is 0596-CTO.

    It might be fun to try, but no matrix - it has been fixed in the updated BIOS/UEFI:

    http://imgf.tw/232673443.jpg

    Now, the CPU is actually identified!

Maybe you are looking for