Knowledge Base Article: KB255 - Created On: Apr 6, 2010 03:10 PM - Last Modified: May 2, 2012 06:23 AM
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?
Applications pass a file name on to Windows on printing and those names are subsequently passed to the printer.
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..
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