Force persistent layout / initial view

Hello @all,
I can set the layout of a pdf document by the doc properties methods, f.e.:
this.layout = "TwoColumnLeft";
But after saving the active pdf document these settings are lost. :-/
I need a way to make these settings persistent.
Manuelly this works with the menu "File > Properties > ..."
I think I have to use the app (and not doc) properties. But what is the correct way to define this persistent inital view of the pdf document by JavaScript?
Best wishes
Jessica

Hi Jessica,
I had a similar problem recently. I wanted to make every document open to full page view, and save that setting into the file.
The way I solved it was to create a script that inserts a document Javascript into the PDF.
So, to solve your problem, try:
this.addScript("TwoColumnLeft", "this.layout = "TwoColumnLeft";);
You could incorporate this into a batch sequence.
I do not like batch sequences, so the way I did it was to create a button in the toolbar that does the following to a PDF when clicked:
1. Inserts some metadata into the PDF (title, copyright, author, etc)
2. Inserts the document Javascript 
this.addScript("Page", "this.zoomType = zoomtype.fitP;");
3. Locks the document
I hope this helps
Michael

Similar Messages

  • Is there any way to force the following initial view...

    ..."fit to page" + "two pages per screen - but only if there's room for two"?
    In other words, I want the page to fit in the screen upon initial view, but I also see a lot of wasted real estate all around that could, most of the time, fit a second page. However, I don't want the two pages to count against the "fit" -- meaning, on narrower screens, the priority should go to fitting the first page (and not showing the 2nd) rather than fit both pages at all costs.
    Is there any way to ask Acrobat to do this?

    The initial view (IV) settings within a PDF file are static tags - they can't be made to dynamically-adapt based on the window dimensions,it's the renderer (Acrobat, Reader, or whatever else is opening the file) that decides if and how it will follow the IV requested by the file header.
    It would be possible to use a Page Open action on the first page of the file, which does some nasty math with the various doc.*WindowRect objects to work out how much "wasted" space there is, and then set the doc.layout and doc.zoomType properties - but page actions are a different concept to IV as the zoom will reset itself every time that page is viewed. Users don't like their application apparently fiddling with the zoom level without being told to!

  • Set default Initial View to Bookmarks Panel and Page on all new docs

    Hello Acrobat Experts,
    We convert *many* Word docs to PDF.  We have PDFMaker force security on all docs.  Now every document has the security settings we want.
    That works.
    We want to force the default Initial View to be Bookmarks Panel and Page so that *every* new document shows the Bookmark Panel and the Page.
    We don't want to set this per document (which is a multi-setp process and a hassle, especially now that security is enabled) but globally for all new documents created by Adobe Acrobat.
    Any and all advice is most welcome.
    Thank you in advance.
    Tech details:
    Acrobat Professional 8.1.7
    Windows Xp Professional (all current updates)

    The article I pointed to in my Oct 20, 2009 post #3 contains two pointers that might assist to initially open the PDF fitting the page to the window.
    I think you may be after "Vire [/Fit]" as described in the article;
    [ /PageMode /UseOutlines
    /Page 1 /View [/Fit ]
    /DOCVIEW pdfmark
    These lines of code open your PDF document with the bookmarks panel open. If you just want the document on its own try "UseNone" instead of "UseOutlines". Here are some additional values:
    /Page 1 opens the PDF on page 1
    View [/Fit ] opens the PDF Fit to page
    And the article points to the PDFMark reference where you might look at Actions and Destinations on page 47.
    I've not tried to do this myself so would you be kind enough to post your result and let us know the version of Acrobat you're using?

  • In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?

    Adobe Acrobat 9 Pro V9.4.0
    Win7 Pro x64
    Problem: In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?
    Every time Acrobat scans a document, I have to go to Initial View to set Navigation tab, Page layout, and Magnification. It does not remember the settings I last used.
    Thanks in advance.

    See my response to this post

  • Initial View is disabled on a Form created in LiveCycle ES2

    Hi,
    I am trying to change the preferences using the Initial View tool in Acrobat.  I want to set it to open with bookmarks visible.  However, the entire initial view page is disabled for me.  The PDF is one that I created myself using LiveCycle Designer ES2.  I am using Acrobat Pro X.  Why would this functionality be disabled?
    Thanks,
    Nicole

    Thank you for your link. Unfortunately, I am not a developer and that was like a foreign language to me.  Is it possible to accomplish the same from a LiveCycle menu?
    The view of a document can be set in manifold ways in Acrobat/Reader.
    If single page, 2-up continious, with bookmarks panel, fit to width etc..
    A lot is possible, but only with the menu.
    JavaScript enables control of all these things from within a XFA-form.
    Therefore the properties of the viewState object are used.
    overViewMode controls the panels and full screen mode.
    pageViewLayoutMode controls the page layout.
    pageViewZoom controls the zoom level.
    pageViewZoomType controls the zoom adaption to the application window.
    This properties can be changes through a button script or the docReady:event of the form.
    So you're able to control the initial view of the form.
    event.target.viewState = {overViewMode:3};
    event.target.viewState = {PageViewLayoutMode:1};
    event.target.viewState = {PageViewZoom:0.75};
    event.target.viewState = {PageViewZoomType:1};

  • PDF through VBA: How to set Initial View?

    - Adobe Acrobat 6.0 (sorry we're a bit out of date)
    - MS Office 2003
    - MS Windows XP Professional SP2
    I am trying to automate the creation of PDFs from MS Word. I have succeeded. My VBA code works fine (have pasted it below). I can create a PDF, and give it a title and author.
    The problem I am having is with the Initial View settings, i.e. how the document opens. I want to hardcode:
    1. Show to "Page Only"
    2. Page Layout to "Continuous"
    3. Magnification to "Fit Width"
    The first I have done, using AcroExch.PDDoc's SetPageMode() function (although it seems to default to that even without doing this). I cannot, for the life of me, find any reference to the second and third, though. This must be doable, right? Be kind of weird not to have access to this in the API.
    Hours of Googling has thrown up three ideas I've discarded.
    1. AcroExch.App's SetPreference() function. This would presumably change preferences on the machine making the PDF, not reading it. I don't want to fiddle with other people's preferences anyway.
    2. AcroExch.AVPageView's ZoomTo() function. Ditto. I am not creating an app to view PDFs, just trying to configure the default for opening one I've created.
    3. An "undocumented" SetOpenInfo() in AcroExch.PDDoc. This looked the most promising for Magnification, but nobody seems to be able to get it to work, and it does nothing for me either. Someone somewhere even suggested it had been deprecated in later versions of Acrobat.
    So... what do I do?
    Thanks in advance for any pointers.
    jON
    ===============================================
    Sub MakePDF(strFilename As String, strTitle As String, strAuthor As String)
    Dim pdfD As PdfDistiller
    Dim strPDFName As String
    Dim strPSName As String
    strPSName = strFilename & ".ps"
    strPDFName = strFilename & ".pdf"
    '... make PS
    Application.ActivePrinter = myPDFPrinter
    Application.PrintOut Filename:="", _
    Range:=wdPrintAllDocument, _
    Item:=wdPrintDocumentContent, _
    Copies:=1, _
    Pages:="", _
    PageType:=wdPrintAllPages, _
    ManualDuplexPrint:=False, _
    Collate:=True, _
    Background:=False, _
    PrintToFile:=True, _
    PrintZoomColumn:=0, _
    PrintZoomRow:=0, _
    PrintZoomPaperWidth:=0, _
    PrintZoomPaperHeight:=0, _
    OutputFileName:=strPSName, _
    Append:=False
    '... make PDF
    Set pdfD = New PdfDistiller
    pdfD.FileToPDF strPSName, strPDFName, ""
    '... tag PDF
    Set qq = CreateObject("AcroExch.PDDoc")
    b = qq.Open(strPDFName)
    b = qq.SetInfo("Title", strProperties_Title)
    b = qq.SetInfo("Author", strProperties_Author)
    b = qq.SetPageMode(1) '... 1 = PDUseNone
    b = qq.Save(33, strPDFName) '... 33 = PDSaveFull (1) OR PDSaveCollectGarbage (32)
    b = qq.Close
    End Sub

    I have the same problem. I need to change Initial View Settings configuring the following settings
    2. Page Layout to "Single Page"
    3. Magnification to "Fit Width"
    My software configuration is as follows:
    - Adobe Acrobat 7.9
    - Microsoft Windows XP SP2
    - Visual Basic 6
    Has anyone worked with this attributes of Acrobat?

  • Setting Initial View of .PDF when exporting from ID

    Hi,
    I use 5.0.1 and upgrading is not an option due to the IT department - don't get me started!
    I have created a document in ID with Bookmarks to aid navigation when its converted to a PDF.
    In Acrobat 8.0 there is a feature to set the initial view to open the pdf with the bookmarks tab showing - Document Settings > Initial View > Layout & Magnification > Bookmarks Panel & Page.
    Is it possible to set this attribute in ID without having to use Acrobat after creating the pdf? i.e when I export the ID file to pdf it is effectivly fire and forget.
    Thanks in advance all...

    No need to apologize - I'm a rookie when it comes to IS detail.
    I use Acrobat Standard 8.1 when setting the initial view and IE 7. There are no security settings set.
    I'm posting the documents on a web site and others that open to view are most likely using Acrobat Reader.
    Not certain what I should try next. I appreciate your help.

  • Exporting PDF's - Initial View settings?

    Hey all!
    Is there any way from InDesign CS4 to set the Initial View of the PDF when exporting your layout to a PDF? I would like to be able to set the display of the Navigation Tab, the Page layout, Magnification, and a few security settings. Is this even possible? Or do I just have to do this from Acrobat? This might be where developing a script for Acrobat might be in my future
    Much thanks!
    Eric

    That must be done in Acrobat.
    Bob

  • Set PDF Document Properties Initial View by Acrobat SDK with C#

    Hi,
    Here am trying to set the PDF document initial view by the Acrobat SDK with C#.
    Here I am show my screen shot which properties I want to set.
    For this process I am referred Acrobat SDK and also following Adobe forums they also asked similar question.
    http://forums.adobe.com/message/3866361
    http://forums.adobe.com/message/4803264
    http://livedocs.adobe.com/acrobat_sdk
    And also I am used following C# code
          Acrobat.AcroPDDocClass doc = new Acrobat.AcroPDDocClass();
          doc.Open(@"D:\..\sap.pdf");
    doc.SetOpenInfo(1,1,"Fit Width");
          doc.SetPageMode(3);
          doc.Save(1, @"D:\..\sap.pdf");
          doc.Close();
    From the above code {doc.SetPageMode(3);} is working for set the page mode.
    But I am having problem in following code {doc.SetOpenInfo(1,1,"Fit Width");}
    Because it won’t work I do’t known, and there is no clear samples in the SDK reference document.
    So please give advice and clear sample code/syntax to meet above needs which are marked in red box.
    Document Properties - > Intial View
    Document Option
         Show: Bookmarks Panel and Page
         Page Layout: Continuous
         Magnification: Fit Width
    Window Options
         Show : Document Title
    Regards,
    Thirusanguraja Venkatesan

    ok thank you Test Screen
    I will try and let you know if i am done by automation .
    Regard,
    Thirusanguraja Venkatesan

  • Initial View in a PDF Portfolio

    I have just started using the new portfolio feature, I have four forms that I've combined. I am using the Grid with Preview option to layout the files. When I open the portfolio it always opens to the same page in the second form, how do I change it to open to the first page of the first form?

    Michael,
    Can you explain precisely?
    Cover Sheet? In Acrobat Pro 9? Where?
    A search in the Help file returns nothing when searching for "Cover Sheet" or even "Welcome Page."
    In Acrobat Pro 8, there was an explicit command to set the currently viewed document as the start document.
    The Help files describe setting an Initial View for a Portfolio; but when you select Portfolio Properties... from the File menu, you get a Document Properties dialog, not a Portfolio Properties dialog. You only get an Initial VIew pane for a document.
    JET

  • Initial View set with epilogue.ps when exporting pdf from Indesign

    Hi all. After years of Quarking, Freehanding, Pagemakering and my favourite, Indesigning, i finally got down to investigating a one step solution to setting the initial view in pdfs.
    When distributing pdf 'layouts' and 'proofs' to clients i always set the pdf's initial view to fit page before emailing. It is simply the pro thing to do, and allows for a client to view the 'big picture' without having to first see a close-up of the top of a layout or design.
    In the same breath i would set a business card layout to open at 125% or 150% so they get a feel for the actual size of finished product.
    Well all these years of pdf proofing i have been hitting the old ⌘-D in Acrobat and manually setting initial view to fit page. Then ⌘-S and "bobs your uncle".
    Ready to email.
    Huge deadlines aside, this morning i woke up early, and decided to have a good look online as to what one can do to automate this small, but oh so repetitive task. Well reading about the prologue.ps and epilogue.ps, got me really excited, especially when i implemented a little postscript tweak to the epilogue.ps, and distiller saw it through beautifully.
    Alas my elation was short lived as it seems Indesign uses it's own 'distiller' so to speak and does not see the epilogue.ps.
    And i am definitely not going to start printing ps files to a 'watched folder'. I spent years distilling manually, and since Indesign and it's superb built in pdf-ing, i have never looked back.
    So looks like we are all gonna have to continue ⌘-D ing, till adobe picks this up and changes the build to accomodate.
    Just wanted to put this out there, and see perhaps if anybody has another take on this one. Am i missing something. If i am please let us all know.
    Many thanks,
    Rupert Pluck

    If you upgrade to InDesign CS5, there are two ways to export a PDF file: (1) For Print. This this does not include the option to set Initial View (2) For Interactive. For Interactive PDF's you can set the Initial View in InDesign.

  • Cross-platform issues with Initial View

    When I specify my Initial View setting on Acrobat Pro (10.1.9) on my Mac, they are not honoured when the PDF is opened on a Windows machine. I've noticed this specifically with the Page Layout view. Any help would be appreciated.
    Thanks.

    Hi Bill.
    I open the PDF in Acrobat Pro, then go to File > Properties (cmd + D), choose the Initial View tab and change the setting there. I then OK that and save the PDF. When I open the same PDF again on the Mac (in either Reader or Acrobat Pro) the settings I made are honoured. When I open the same PDF on a Windows machine, they're not.
    J

  • Initial View + Viewing Through the Plugin is Inconsistent

    We have a set of PDF's that are all set with an initial magnification of 'Fit to Page / Single Page'.
    When browsing between documents in firefox + acroread plugin via links/bookmarks embedded within, the plugin will ocassionally change to an initial magnification of '125%'.  It does seem like it's more likely to happen if you use the bookmarks the swap between documents as opposed to links in the document text.  We've also tried setting the the initial view in the reader's preferences, however this seems to have little/no effect.  We can't seem to reproduce this if we read the pdf in an actual acroread instance, as opposed to the plugin.
    We have tried various versions of Adobe in the production of the pdf's to verify it doesn't have anything to do with what is produced.  We have yet to try Adobe Acrobat Reader 9.1 to see if this has been corrected in later versions.

    Hi JasonMock,
    Fit Page layout adjusts the magnification level so that one page fills the document pane vertically. Therefore, the magnification level can be any value depending on a number of factors like the browser window size, any navigation panel is opened/closed etc. At any moment, Reader will try to fit the page in the document pane. So if PDFs are to be opened at a particular zoom level then try setting that magnification level (say 100%) in the File > Document Properties>Initial View settings from Acrobat.
    You can also try changing the size of the standalone acroread window to see the change in the magnification value in the Fit Page layout.
    Thanks,
    Swati

  • Initial view 2-up spreads with single cover page

    I hope I have this wrong and i'm missing something obvious but elusive: It seems like there is no way in the newest version of Acrobat to modify a generated multi-page PDF via preferences>page display so that on initial view it will show as spreads and also have a single cover page. Is that correct? Is this yet another one of those Adobe modifications that makes a graphic designer want to bang his head on the monitor? Or is there a workaround? I would be most grateful for some wisdom as I'm coming up empty with forum searches.

    Hi again ej 5000,
    Your screen shot shows the application preferences, but you should see what you're looking for in the Document Properties dialog box. So, when the file is open, choose File > Properties, and click the Initial View tab. Two-Up (Cover Page) is available in the Page Layout pop-up menu.
    Is that what you need?
    Best,
    Sara

  • Acrobat 9 Ingores Document Initial View Settings

    I've created a PDF from InDesign. I set Initial View Settings for the document in Acrobat 9. When I open the document in A9, the Initial View Settings are ignored. I then open the same document in A8 and it opens fine. I'm guessing there is a global setting in the A9 preferences, but I can't seem to find one that works. Please help.

    I apply the Initial View settings as I first create the PDF.
    I use File... Properties... Initial View.
    Depending on the length of the document, I make the first setting Page Only, Pages Panel and Page (most often), or Bookmarks and Page (if it is a long report and I am making bookmarks).
    I make Page Layout be Single Page.
    And I check Hide Tool Bars in the last group. (All commands are still available with menus, with much less real estate taken up by tall toolbars.)
    Then I save and close the document. Then I re-open it to make sure it looks as I intended.
    On my old computer, that always worked great and made a professional looking PDF.
    But when I downloaded the same product onto my new computer, this no longer works.
    I am using a workaround and hoping that when I upgrade on the new computer that the later version will work.

Maybe you are looking for

  • Setting exclusions in Time Machine to achieve limited backup

    I'm trying to help a friend with doing a limited backup of her data using Time Machine. The backup is going to a 4 GB flash drive. After preparing the drive I used options to exclude the following: Applications, Developer, Library, System files and a

  • How do you un-install without a disc?

    I have a mac BookPro i bought Feb 2011and never updated the OS, until i bought Mountain Lion and for some reason it's not going to port over anything from iPhoto, which is about 2k pictures etc.  i want to uninstall the OS and i do not believe i have

  • Mail crashes after update 10.10.1......:-(

    Anyone having the same issue?

  • XI 3.1 Query Builder?

    In XI R2 under the adminlaunch pad there was a tool called the Query Builder.  Where is this tool in XI 3.1?  Anyone know? Thanks!

  • Setting Time Limits on Router

    Hi all.  I would like to block my daughters ipod from accessing our router from 10:00 pm to 7:00 am on the weekdays, and am not sure how to create the rule using the router.  If I make the rule from 10 pm to 7 am, the rule spans midnight.  Is the rou