Print Page | Close Window

Scripting PDF reDirect

Printed From: www.exp-systems.com
Category: PDF reDirect
Forum Name: Using PDF reDirect
Forum Discription: Questions and Comments on using PDF reDirect Freeware and Pro
URL: http://www.exp-systems.com/Forum_exp/forum_posts.asp?TID=1115
Printed Date: 22 Nov 24 at 1:06PM


Topic: Scripting PDF reDirect
Posted By: mhall50
Subject: Scripting PDF reDirect
Date Posted: 14 Mar 13 at 8:29PM
Is it possible to script PDF reDirect?
 
I'd like to be able to pass the PDF reDirect viewer the PDF file path and PDF File 'save as' name to automate the process.  Ideally the viewer wouldn't have to be displayed at all.  The click on "save" event would also be included in the script to enact the save of the PDF file by the name passed and the path/folder to save it in.
 
For example:
 
variables to include in the script:
 
1.  a network path like //myserver/myshare_parent_folder/Daily_PDF_files
2.  the name of the new PDF file:  mynewPDF.pdf
 
Forcing the end-user to 'browse' to the folder location to save the PDF file in is
awkward.  I'd rather pass the name of the save folder path and the PDF file 'save as' file name via a scripting interface.
 
Having to teach end-users how to select a mapped network drive with the "save-to" folder location is difficult.
 
Is there a config file sililar to that used with PDF Split and Merge where
the default working directory can be set using a simple vbs script.
 
This is the config file used by the PDF Split and Merge Utility
div>
 
?xml version="1.0" encoding="UTF-8"?>
<pdfsam config-version="2">
 <settings>
  <laf current-laf="6" current-theme="0"/>
  <thumbpoolsize value="3"/>
  <loglevel value="10000"/>
  <i18n value="en_GB"/>
  <default_working_path value="C:\PDFsam\PDFs"/>
  <thumbnails_creator class="org.pdfsam.guiclient.business.thumbnails.creators.JPodThumbnailCreator"/>
  <default_environment value=""/>
  <plugs_absolute_path value=""/>
  <checkupdates value="true"/>
  <playsounds value="true"/>
  <overwrite_confirmation value="false"/>
  <high_quality_thumbs value="true"/>
  <thumbnails_size value="270"/>
 </settings>
</pdfsam>



Replies:
Posted By: mhall50
Date Posted: 16 Mar 13 at 12:28PM
If someone at EXP can provide me a sample script that does what I need I can guarantee a sale, otherwise it's time for me to move onto another PDF Printer based solution that can do what I need to do!


Posted By: Michel_K17
Date Posted: 17 Mar 13 at 11:11PM
Hi,

   PDF reDirect Pro comes with an ActiveX component which you can use to "remote control" PDF Batch printers, using pretty much any programming language of your choice.

   You can read more about it [ which includes sample code as well.

   Cheers!

Michel


-------------
Michel Korwin-Szymanowski
EXP Systems LLC



Print Page | Close Window