PrintParams "silent" ignores PDF Print Preset to Duplex

Hello All,
Here is my script to send a PDF to the default printer.
var pp = this.getPrintParams(); 
var fv = pp.constants.flagValues;
pp.flags = (fv.setPageSize=false);//Sets the Auto-Rotate and Center Flag
pp.interactive = 0;// 0=interactive, 1=auto, 2=silent
pp.pageHandling = 3;//3=shrink to fit
this.print(pp);
the problem is that my PDF has my desired Document Properites Print Dialog Preset "DuplexMode" set to Duplex Flip Short Edge, and that property is ignored if the interactive is set to silent or automatic. It is honored if the print dialog is prompted and the user enters "OK".
The  pp.flags = (fv.setPageSize=false); seems to be undocumented, but I stumbled upon it and it produces the desired result (sets Auto Rotate and Center). I hope it may be helpful to others.
Any ideas why my preset is being ignored in silent mode, and any way to make it work?
Thank you in advance and Happy Holidays,
Message was edited by: kentgbaker
Thom Parker was good enough to demonstrate the documented way to set auto-rotate and center.
var pp = this.getPrintParams(); 
pp.flags &= ~pp.constants.flagValues.suppressCenter
pp.flags &= ~pp.constants.flagValues.suppressRotate
pp.interactive = 0;// 0=interactive, 1=auto, 2=silent
pp.pageHandling = 3;//3=shrink to fit
this.print(pp);

Hello All,
Here is my script to send a PDF to the default printer.
var pp = this.getPrintParams(); 
var fv = pp.constants.flagValues;
pp.flags = (fv.setPageSize=false);//Sets the Auto-Rotate and Center Flag
pp.interactive = 0;// 0=interactive, 1=auto, 2=silent
pp.pageHandling = 3;//3=shrink to fit
this.print(pp);
the problem is that my PDF has my desired Document Properites Print Dialog Preset "DuplexMode" set to Duplex Flip Short Edge, and that property is ignored if the interactive is set to silent or automatic. It is honored if the print dialog is prompted and the user enters "OK".
The  pp.flags = (fv.setPageSize=false); seems to be undocumented, but I stumbled upon it and it produces the desired result (sets Auto Rotate and Center). I hope it may be helpful to others.
Any ideas why my preset is being ignored in silent mode, and any way to make it work?
Thank you in advance and Happy Holidays,
Message was edited by: kentgbaker
Thom Parker was good enough to demonstrate the documented way to set auto-rotate and center.
var pp = this.getPrintParams(); 
pp.flags &= ~pp.constants.flagValues.suppressCenter
pp.flags &= ~pp.constants.flagValues.suppressRotate
pp.interactive = 0;// 0=interactive, 1=auto, 2=silent
pp.pageHandling = 3;//3=shrink to fit
this.print(pp);

Similar Messages

  • Booklet to PDF print preset settings not saved

    I'm using ID CS4 on Vista64 Business and trying to output numerous booklet layouts to PDF for a client to print in-house at their premises. My lo-res tests work perfectly on their printer, I now need to output everything @ 300dpi etc.
    I've set up a print preset to use the Adobe PDF printer driver and set all defaults I can find (Control panel etc) to High Quality output.
    Interrogating the preset directly reports settings as "High Quality" but when using the Booklet Print dialogue Setup button to check the printer prefs, it always shows (and outputs) "Standard" settings.
    Is there a way to get the ID Booklet option to remember the default PDF printer prefs?  It's a real pain to change these manually for each print run.
    Thanks, any advice gratefully received.  [  I'm probably missing something embarrassingly fundamental.  ~:o(  ]

    Hi Peter,
    I can only find a printer folder under Control Panel > Printers. This is where I've already changed the PDF Printer defaults without success. Oddly, I appear to have fixed it by renaming the print driver instance there to "Adobe PDFx" (probably any other name would also work).
    Whilst troubleshooting, I found I could also see another network "Adobe PDF printer" on another machine. I had a look over the settings there and saw the option "render print job on client machine". This got me thinking I might NOT have been using the LOCAL PDF printer setup and was just fooling myself.
    I changed the local PDF Printer name to be certain I could identify it correctly and Hey Presto!, it suddenly started accepting the preset changes. I changed it back to "Adobe PDF" and it reverted back to the "standard" settings and just ignores everything.
    It may be a weird Vista 64 security thing, this OS does some very annoying things when trying to access stuff, even though I have master admin privileges.
    I'll simply leave the printer name as "PDFx" for now as this is getting the job done.
    Thanks for your suggestions.

  • Adobe PDF (Print) presets: "Cannot create the file. The folder may be write protected."

    In Windows 8, this feature of InDesign CS6 only works for the local Administrator account:
    File -> Export -> Save as type: Adobe PDF (Print) -> Save -> Save Preset... -> OK
    If you try it with any other account this error message is given: "Cannot create the file. The folder may be write protected."
    For anyone else encountering this problem, a workaround is to run as administrator.

    Which permissions exactly did you set, how did you set them and what did you set them to?
    The path to the Drop Box would be /Users/someuser/Public/Drop Box but you obviously wouldn't want the ownership and permissions to be the same on all four directories.
    Have you tried using Disk Utility (/Applications/Utilities/Disk Utility) to repair permissions? That would probably be the best way to ensure they're correct.
    - cfr

  • Which PDF print preset settings to use intended for reproduction

    When saving artworks to pdf intended for reproduction which is the correct / safest option to choose for example Press Quality ? and which Destination should be used e.g. Coated FOGRA39 (ISO 12647 - 2:2004) ?

    Try using the PDFX-4 which will keep transparency until the RIP.

  • Lost print presets in Indesign CS5

    All of a sudden I was going to print a pdf and the high quality, smallest file size, etc. options were gone.  I have custom or defualt.  Where did the settings go?  How can I get them back?
    I am using Windows 7 64bit.  I have uninstalled and reinstalled both Indesign and Acrobat pro.  I have run a regcleaner.  I am out of options that I know of.  I found the option to load print preset files, but I don't know where the files are.
      Can anyone help with this?  Thanks.

    The presets you mention are EXPORT presets for PDF, not print presets. You can make PDF print presets and save them using those settings, buyt the recommended method of producing PDF from ID is to export.

  • PDF Default Presets Missing - CS5.5

    I recently upgraded from InDesign CS4 to CS5.5. I uninstalled CS4 (with help/advice from Adobe's Tech. Support). Now my default PDF Print settings are missing. I only see the "Define" option.
    Is there a way to re-load these presets?
    Any help would be appreciated.
    iMac - i7
    3.4 GHz
    16 GB DDRS
    OS 10.6.8
    CS5.5. Master Collection

    Thanks for the response.
    I uninstalled CS4 after installing CS5.5 (I later learned that it would have probably been best to just install CS5.5 [without ever installing CS4] and use my CS4 registration # to install CS5.5.. I called Adobe Tech. Support to get advice and direction and they are the ones that told me I should have not problem and thus I uninstalled CS4).
    I didn't have any custom presets...so, I'm just looking to install/regain the standard PDF print presets that should be loaded each time I launch InDesign.

  • Storing Print Presets in a Manually Created PDF

    I am a Progress programmer creating/printing PDF documents from reports written in Progress by wrapping a PDF shell around the document. Having reviewed Adobe documentation, I know there is a feature called print presets that can be setup so that each time a document prints, certain key fields like tray, number of copies etc will be pre-populated into the print dialog. I wonder if someone can tell me how to add this information to a document during the process of creating it. Is it control code (number of copies) control code printer tray etc and what are the control codes.
    Any help would be greatly appreciated.

    Is similar functionality available through the API? I know how to use PrintParams to select the printer and to adjust Acrobat-specific print settings, but what is the proper approach to control basic settings like number of copies to print, tray to print from, duplex mode, etc.?

  • Access Windows Registry for Silent PDF Printing

    Hi All,
    I am trying to print a form (created in Livecycle Designer ES2) silently to PDF upon the click of (javascript) button on the form. I have Win XP and Acrobat 9 Pro. I feel close to achieving the goal however after some time and effort I am not sure the approach I am leaning toward is possible. So far I have the following:
    1. By following the Acrobat SDK / JS for Acrobat API reference I have been able to use the PrintParams object to set print properties including the page(s) to print and printer selection, however the code only works if, for the fileName property, I specify file type as postscript (.ps), when .pdf is used it does not work. JS used on click_event of my form button:
    var myDoc = event.target;
    var pp = myDoc.getPrintParams();
    pp.interactive = pp.constants.handling.none;
    pp.fileName = "/C/Test.ps";    
    pp.printerName = "Adobe PDF";
    pp.firstPage = 2;
    myDoc.print(pp);
    This works however I really want the filename to be something like "/C/Test.pdf" which does not work
    2. I have since learned that the windows registry...Acrobat Distiller\PrinterJobControl can be manually modified so Adobe knows where to send the output file:
    Registry folder: HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
    I created new string under above folder with properties below:
         String value name: C:\Program Files\Adobe\Acorbat 9.0\Acrobat\Acrobat.exe
         String value data: C:\Test.pdf
    The approach in 2. works in combination with the code in 1. (without the pp.filename property being specified) but the registry string would need to be manually created each time before printing which is not practical.
    Is anyone able to advise whether or not it is possible to create a new registry string using Javascript (looks like there are quite a few VBA examples of this for use with MSAccess) from acrobat? or maybe another way to print to a specified file to PDF using JS from Acrobat?
    Any help or advice is much appreciated,
    Kind regards,
    Adam

    So many security issues for the general public.
    You path name is not considered a "Safe Path", as it is a root directory and since many systems have system control files in the root directory, Adobe has blocked the access to this directory for security reasons.
    "Silent Printing" is possible to printer over the Internet and is considered a security risk, but you can write a special application level JavaScript function that could provide this on a single system.
    "Save as .."  is also considered a security risk and blocked except when a special application user written function is used.
    See the Acrobat JavaScript API Reference for more information about safe paths and silent printing and saving along with other restricted actions.

  • Silent PDF Printing 64 bit Windows - 32 bit Application

    I have a windows 7 64 bit machine at work and am having issues getting the Adobe PDF printer to recognize the registry key for silent printing. I'm using Acrobat X. It works fine from a 64 bit application. I tested the 64 bit version of wordpad and it will pick the key (HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl) for it's application name and print automatically. If I use the 32 bit version it won't pick up what's in the registry for that application name. The main goal here is to be able to print to pdf from Access 03 (yeah I know). The code works on a 32 bit system. Thanks in advance for any help.

    Do you want to try what is listed in the OP? boot camp corrupted

  • How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    Hi,
    Try saving your settings as a Preset by clicking the Preset drop down and then select Save Current Settings as a Preset.
    Next try changing the settings by selecting the saved preset.
    That allow saving the settings for a specific printer, I assume it may also allow selecting these settings for another printer.

  • Passing Number of copies / Duplex into print presets

    I need to pass the servers simplex/duplex and number of copies settings into the print presets so the user doesn't have to remember each forms setting.
    Can I pass these through the xfdf?

    No, but the simplex/duplex setting can be embedded into the form if you're using XFA forms.

  • [CS5.5] Lock PDF export and print presets

    Hi,
    With this post I would like to ask a question regarding locking certain features in Indesign.
    Does anyone know if it is possible to ...
    - lock PDF export and print presets so a user is not abble to change/override any preset properties, and is forced to use a preset without the possibility to override any of the properties when using it?
    - force a user to use one of the predefinied presets to print or export a document without the ability to create a new preset?
    - verify PDF-files to check what Indesign print/export preset was used?
    Being part of a larger prepress team, we would like to make sure that, every PDF-file created by each team member, is created with the same specs.
    Does anyone know of any plugin, tool or release that enables such a functionality?
    Kind regards
    John

    If the employees cannot follow company policy, they need to know that there are other people looking for work who can. Yes, mistakes happen, but that would be a case of choosing the wrong preset from a list (which, if you leave more than one installed, can't be avioded). Changing settings against policy is not a mistake.

  • Incorrect A4 size when creating print preset for adobe PDF?

    Hi
    I've run into a strange "issue", which I'm trying to understand.
    If I create a new document in InDesign CS4 (or CS5) in papersize A4, the size is obviously 210mmx297mm. All is good.
    If I want to print this document as a postscript document, to a file, I create a new Preset.
    1) File->Print Presets->Define
    2) New
    3) Printer: Adobe PDF
    Now if I select the Setup option the paper size says A4, but the size is: 209,98mm x 297,039.
    Anybody care to explain why it's not a "correct" A4 size?
    Thanks in advance!
    Ruvan

    Guys, I really appreciate the time and effort.
    I haven't done the math, but I think its still a little strange that the width is a little too small and the height a little too big.
    Anyway, what I also think is a bit strange is that if I select a real printer physical printer, not Adobe PDF, then the sizes are all correct.
    Thanks
    Ruvan

  • Printing presets are not loaded correctly

    Dear community,
    i have the following problems using different printers (Canon MG5200, Epson Workforce WF3620, etc.):
    I saved about 10 own printing presets and when I check on them under "Show presets" they are totally correct. But when I want to use them in a following print job and select them in the drop-down list "Presets" they are not correctly loaded. E.g. "Paper Size" and "Pages" are alternated to thesetting saved in the preset but e.g. the "Duplex Printing" checkbox or the "Print Quality" drop-down list are just left on the setting they were on before.
    Anyone knows that problem and can help me?
    Thanks for your help.
    Greetings,
    Fares from Munich

    Sorry for the delay in responding.
    I was having trouble with presets, too, on my Epson printer/scanner, which is an old machine and the newer driver software does not give the same print setting options that came originally. So I decided to start from scratch. First I used the Epson uninstaller to remove the printer software. Next, reset the print system, then  connected directly to the printer via USB. Ignored the initial offer to download driver software. In the printer panel in System Preferences, clicked + to add the printer. Then the printer was set up by the system. Still connected directly, I made the presets. Make sure to check the box for "All printers" for your presets. These presets should work when you connect your printer on the network instead of USB.

  • Importing print presets doesn't bring all settings

    This isn't the first time. I saved my print presets to desktop out of CS4.  I load into CS5. All that imports is the NAME. The tray is default, any other settings like duplex, make booklet, staple, etc. all default. OK. Maybe CS6 fixes this. I export my print presets to desktop, load them into CS6 and all that comes in is my menu of preset names. Is there anyway to import presets so they actually retain all the settings I spent a lot of time creating. A bit tedious to have to redo every one from scratch. I exported my entire library of exports. Should I be exporting/loading one at a time? That's as much a waste as creating them from scratch.

    10.6
    In ID when you click Printer... (not Page Setup...) you should get a printer specific dialog with a Presets popup. There isn't a way to save both the InDesign settings and your printer specific settings in one preset:
    If you click on the Presets popup you should see a Save at the bottom of the popup list
    This preset for printing to my GCC's manual feed is also available in Mail and other apps

Maybe you are looking for

  • Re-Installing Leopard from Snow Leopard HELP!!!

    Hey guys, I'm sure this is a duplicate post, but i have looked for ages. Basically, i need to re-insall Leopard from Snow Leopard on my new 17 MBP. I have the 10.5 DVD, but when i try to run it, the computer restarts and then just sticks in a loop of

  • Force Windows New Line Character

    Hi, I've a problem with new line character. I am in Windows platform but when I write a file with a BufferedWitter with println I obtain the character "\n" x0D like separator (Unix Separator). My System property line.separator is "\r\n". Can someone

  • Ppoe work with error.

    HELP!! airport express N firmware 7.4.2 modem adsl speedtouch st 510 v6 macbook white MB881LL with snow leopard and last updates.. when connect direct to mac work perfect but with airport express random disconnect Jan 25 11:07:01 Gravedad:5 Connectio

  • Merging WSDL and sending it to a test webservice

    Hi All, I have four wsdl to merge into a single wsdl and import into XI and use it a source data type. The wsdl contains different namespaces in it. Could anyone guide me the procedure step-by-step to do it. Any help is really appreciated. Can I send

  • Architectural designing with Adobe software?

    Hello, Can anyone tell me if there is software from Adobe that lets you design architectural drawings? I'm searching for my own company [url removed by host] With kind regards, Leon Herbers