Translate
Francais Español Deutsch
 
 
   
Developers Product Chooser PDF Choosing Wizard Feature Comparison Chart Image Product Chooser Image Comparison Chart

Do it all with PDF-XChange PRO

A product suite that includes all of the above PDF products and allows you to do pretty much whatever you want with PDFs

PRO PDF

PDF-XChange Viewer

PDF-XChange Lite

PDF-XChange Standard

PDF-Tools

Imaging Products


Raster-XChange


Tiff-XChange

SDKs for PDFs: SDKs for Imaging: Clarion® SDKs:

PDF Related

Imaging Products

Clarion® Developers now have the choice of using our generic SDKs, or downloading our Clarion® specific SDKs which include extra Clarion® classes, templates and examples for fast and easy integration into their Clarion® based applications.
Knowledgebase

Knowledgebase

How do I customize the file name used when creating PDF files sent from a specific application?

Knowledge Base Article: KB255 - Created On: Apr 6, 2010 03:10 PM - Last Modified: May 2, 2012 06:23 AM

Symptoms

I am using your PDF X-Change 4.0 (Build 0150) with Revit MEP (by Autodesk).  When generating PDF’s from Revit, the file name is created as shown below. The name consists of the Model Name – Sheet – Sheet Number – Sheet Name.

What we would prefer is to have only the Sheet Number, nothing else.  Is there a setting that would allow this convention?

 

Cause

 Applications pass a file name on to Windows on printing and those names are subsequently passed to the printer.

 

Resolution

PDF-XChange Print Driver can use JavaScript to modify the file name that is passed to it from Windows.   With limited programming knowledge this file can be modified to customize the file name that PDF-XChange saves the PDF document as.

Please see page 45 of the PDF-XChange Help file (PDFX4Man.pdf) this gives a brief description of using JavaScript to modify the settings for the 'titrules.js' used in file naming conventions - different app names provide different strings to the driver via windows to allow us to create the file name - but it is possible to do as required.

JavaScript is relatively simple and there are many tutorials on it such as these for example:

http://www.w3schools.com/js/default.asp
http://www.webdevelopersnotes.com/tutorials/javascript/
http://www.webteacher.com/javascript/
http://www.wdvl.com/Authoring/JavaScript/Tutorial/

Here is a sample titrules.js file that has been modified to work with Autodesk's Revit application.. 

 

 

Vote

Was this article helpful?

More Like This

   KB#146: How do I create custom short cut keys for tool bar commands?

   KB#139: How do I customize PDF-XChange Viewer Tools UI appearance?

   KB#145: How do I use 2 page facing when in full screen mode?

   KB#284: How do I create my own custom paper size to re-use in the PDf-Xchange 4 Print Driver?

   KB#322: How do I preserve my original file's name with dots in it when converting it to PDF