PDF Converter for Notes
DocsSupport RequestWebsite
  • PDF Converter for Notes
  • Installation / uninstallation
    • Installing and activating
      • Installing PDF Converter toolbar icon
      • Installing PDF Converter toolbar icon for multiple users
      • Installing PDF Converter on server for automated archiving
      • Installing PDF Converter on Linux server
      • Offline license activation
      • PDF Converter sample on web
      • System Requirements
    • Uninstalling
      • Removing the PDF Converter toolbar icon
      • Removing the PDF Converter toolbar icon for multiple users
      • Removing PDF Converter completely from your system
    • Upgrading
      • Upgrade PDF Converter to a new release
      • Upgrade PDF Converter design elements in a custom application
    • Release History
  • Getting started
    • PDF Converter terminology
      • PDF package
      • PDF attachments
      • Separate PDF files
      • Flat vs. structured document export
      • Single PDF file with a bookmark view
      • Alternate Notes forms
      • Archiving jobs
    • Screencasts
    • Settings
      • General Settings
      • PDF Settings
      • Toolbar Icon Settings
    • Converting client-side
      • How to export emails to a PDF package
      • How to append emails to a PDF package
      • How to export emails to multiple PDFs
      • How to export mail folders to PDF
      • How to export view categories to PDF
      • How to export all emails to PDF
      • How to export parent-child documents
      • How to manage PDF document settings
      • How to export Notes metadata
      • How to export documents to PDF/A format
      • How to convert attachments to PDF
      • How to export attachments to disk
      • How to set PDF headers and footers
      • How to reduce PDF file size
      • How to use alternate forms
      • How to create a naming rule for the PDFs
      • Summary of export options
    • Converting server-side
      • How to export multiple databases to hard disk
      • How to schedule Notes email export to PDF
      • How to export a custom/programmatic document selection
      • How to export Notes metadata
      • How to classify PDF records using folders
      • How to run post-processing tasks on the PDF files
      • How to apply PDF settings to an archiving job
  • How to...
    • How to use the conversion dialog
    • How to set up a custom naming convention for PDF files
    • How to add header and footer to a PDF document
    • Using alternate forms
    • How to convert a document collection using multiple alternate forms
    • How to convert password protected HTML content
    • How to disable HTTP stream
    • How to enable international characters
    • How to enable/disable the low-level renderer
    • How to export documents ordered as in Lotus Notes view
    • How to find your Notes Installation and Notes Data directories
    • How to enable single category export using high level renderer [embedded views]
    • How to manually activate an API enabled database
    • How to reduce the PDF file size
    • How to search a PDF package
    • How to search PDF attachments
    • How to see your PDF Converter version number
    • How to send error-prone documents/emails to the Support
    • How to set custom PDF settings from LotusScript
    • How to use alternate forms in an archiving job
    • How to set PDF security
    • How to have working doclinks in PDF files
  • Tips / miscellaneous
    • About PDF metadata
    • Are Notes document links supported?
    • Types of output
    • Attachment options
    • Can I export OLE objects to PDF?
    • Deployment check-list
    • Disabling access for non-administrators
    • Do I need to have the latest JRE (Java Runtime Environment) installed on my Workstation/Server?
    • Exporting large sets of documents/emails using the toolbar icon
    • Extracting ZIP archive files
    • How to enable Microsoft Office conversion on Domino server
    • How to enable PDF search in Windows (64-bit)
    • How to get the SharePoint repository ID
    • Java files (jar) list
    • Merging attachments with PDF forms
    • PDF filename Unicode compliance tips
    • PDF/A format description
    • Product limitations
    • Single-Click Exports
    • There's no "Show Java Debug Console" option in my Lotus Notes client
    • What is the SWING PDF Converter installation footprint?
    • Where can I find my attachments?
    • Which view/folder types are supported
  • For developers
    • Enabling your applications
    • API Design elements description
    • LotusScript API reference
      • Class SwPDFDocument
        • Public Function AppendTo(DestFilePath As String)
        • Public Function GetAsRTItem() As NotesRichTextItem
        • Public Function GetAsRTItemEx(attachmentName As String) As NotesRichTextItem
        • Public Function GetFilePath()
        • Public Function GetMetadata() as String
        • Public Function IsCollection() As Boolean
        • Public Function Recycle()
        • Public Function SaveToFile(FilePath As String)
      • Class SwPDFCreator
        • Public Function GetError() As SwPDFError
        • Public Function GetVersion() As String
        • Public Function Init(LicenseKey As String) As Boolean
        • Public Function InitWithActivationResponse(ActivationResponse As String) As Boolean
        • Public Function LoadSettingsFromUNID(PDFSettingsUNID As String, UseGeneralSettings As Boolean) As Bo
        • Public Function ProcessDocCollection(dc As NotesDocumentCollection, DbView As String) As SwPDFDocume
        • Public Function ProcessDocCollectionFromFile(FilePath As String, DbServer As String, DbPath As Strin
        • Public Function ProcessDocument(doc As NotesDocument) As SwPDFDocument
        • Public Function ProcessFolders(dbSrc As NotesDatabase, FoldersList As Variant, IncludeResponses As B
        • Public Function ProcessRTItem(rtItemSource As NotesRichTextItem) As SwPDFDocument
        • Public Function ProcessUrl(url As String) As SwPDFDocument
        • Public Function ProcessViewCategories(view As NotesView, CatList As Variant, IncludeResponses As Boo
        • Public Function SetPdfProperties(Title As String, Subject As String, Author As String, Keywords As S
        • Public Function SetWatermarkFont(fontFamily As String, size As Integer, style As Integer, colorR As
        • Public Function SetWatermarkImage(filePath As String, position As Integer, margin As Double) - Learn
        • Public Function SetWatermarkText(wmText As String, rotation As Double, position As Integer, margin A
      • Class SwPDFSettings
        • Public Function SetHTTPProxy(proxyHost As String, proxyPort As Integer)
        • Public Function SetCustomMetadata(CustomMetadata As Variant, CustomMetadataOnly As Boolean) As Boole
      • Class SwPDFRegistration
        • Public Function GetVersion() As String
        • Public Function GetLicense() As SwPDFLicense
        • Public Function Register(LicenseKey As String) As Variant
      • Class SwPDFLicense
      • Class SwPDFProgress
        • Public Function GetCurrentIndex() As Integer
        • Public Function GetStatus() As Integer
      • Class SwPDFError
    • LotusScript code samples
      • Button on form
      • Button on view
      • Add metadata
      • Add custom header/footer to PDF document
      • PDF conversion on the Web
      • Convert large number of documents
      • Change document orientation
      • Convert single document from UI
      • Doclinks sample for repository
      • View to PDF package
  • Troubleshooting
    • Troubleshooting Guide
    • Error messages
      • Error - Type mismatch in method OP_CHECK_TOS_INST AINSTANCE found, Unknown expected
      • Error - Cannot write or create file (file or disk is read-only)
      • Error - DLL issue on 64-bit servers
      • Error - Domino HTTP Error Loading Java Virtual Machine
      • Error - Exception in thread "Launcher: SwCreatePDF" java.lang.NoClassDefFoundError: -SOME CLASS-
      • Error - ExceptionConverter: java.security.NoSuchAlgorithmException
      • Error - INITIALIZE ERROR: EXTRACTJAVARESOURCES (nn) : 91 - Object variable not set - INIT (nn) - Lea
      • Error - java.security.AccessControlException: Access denied ([SOME CLASS EXCEPTION]) - Learning Cent
      • Error - ReferenceError: openLInkPriv is not defined
      • Error - swllrend.dll corrupted or not extracted
      • Error - SWPDFSAVETODISK (29) : 53 - File not found
      • Error - There is another PDF conversion process already started
      • Error - Type mismatch (13)
    • General issues
      • Archiving jobs agent timeout
      • Concurrent execution issues
      • Conversion speed is slow
      • Document links not working
      • Email images do not appear in PDF
      • Header and footer not visible in my emails
      • Header and footer not visible or partially visible
      • How to enable SWING PDF Converter with Symantec Endpoint Protection (SEP)
      • Numerous "Trust to..." prompts appearing
      • PDF toolbar icon does not appear after installation
      • PDF toolbar icon not shown in IBM Notes 9 toolbar
      • PDF toolbar icon is still on my toolbar after uninstalling
      • Select categories / folders applet is failing to start
      • ZIP files can not be detached from PDF
      • PDF fonts not embedded for Asian/Arabic documents
      • Thai symbols not shown in PDF document
    • History log
      • Archiving job logs
      • Conversion and error logs
      • Notes crashes during conversion
  • Seascape for Notes
  • Support
    • Support Request
    • Premium Export Services
Powered by GitBook
On this page

Was this helpful?

  1. How to...

How to set up a custom naming convention for PDF files

PreviousHow to use the conversion dialogNextHow to add header and footer to a PDF document

Last updated 3 years ago

Was this helpful?

During conversions it is possible to apply a custom naming convention to the created PDF files using Notes formulas. For example, the PDF files can be stored and named on your file system as <date>_<subject>.pdf or in any other way needed.

The naming convention needs to be defined for each specific Notes view from which you will be running your PDF exports.

Note: The maximum file path length on Windows is set to 260 characters. Therefore the names of your PDF files together with the full path where they are stored should not exceed 260 characters.

The following example shows how to create a file naming convention for a document view called Sample documents (which is available in the SWING PDF Converter database in the Documentation and Samples section). 1. In the SWING PDF Converter database hit View Settings -> New View Setting in order to create a new View Settings configuration document.

2. In the form which opens up:

  • Select Any database in the database field

  • Type "Sample documents" in the View field

  • Select the Separate PDF files option

  • Hit the Add button in order to create a new Notes formula (which will be used to generate the PDF file names).

3. In the dialog which appears, type "My naming convention" in the Formula name field and copy the following example formula in the Formula box:

Title + "_ " +@text(@Name([CN];@Author))

4. Click OK and Save and Close the configuration document. The document will now become available in the list of configuration documents in the View Settings view.

5. For a test purpose, you can now open the Sample Documents view in your SWING PDF Converter database, select a few documents in the view, and hit the PDF toolbar icon (if no documents are available in this view you can create them, using the New Document... button).

6. In the conversion dialog which appears, select Separate PDF files in the "To:" menu and My naming convention in the "Name PDFs by" menu, then hit Create PDF.

7. Once the conversion job is completed, you will find the PDF files named according to the naming convention in the destination folder you selected.

In order to accomplish the same for any other database, you first need to know the following:

  1. Location of the database (or choose "Any database")

  2. Name of the document view within this database

  3. Names of Notes document properties which you want to use for the naming convention (e.g. Title, Subject etc.)

With these three points known, you can create a naming convention for any given document views in the same way as described above for the Sample documents view in the SWING PDF Converter database.

Examples

Here are a few typical examples of Notes formulas which can be used in your Notes mailbox:

1. The following formula can be used for emails to name PDF files by delivery date and time and subject, separated with underscore:

@Text(DeliveredDate) + "_" + @Text(Subject)

"DeliveredDate" and "Subject" are typical fields for email documents. For example, a message with subject "Re: Follow-up message" received on December 8th 2011 will be converted to PDF with following file name: 08.12.2011 19 39 31_Re Follow-up message.pdf

2. In this example we removed time, so our file name contains only date and subject:

@Text(@Date(DeliveredDate)) + "_" + @Text(Subject)

The result: 08.12.2011_Re Follow-up message.pdf

3. In this example we decided to format date differently and we included "From" field, now we can see who sent this message without opening it:

@Text(@Year(DeliveredDate)) + "-" + @Text(@Month(DeliveredDate)) + "-" + @Text(@Day(DeliveredDate)) + "_" + @Text(Subject) + "_" + @Text(From)

The result: 2011-12-8_Re Follow-up message_info@swingsoftware.com.pdf

4. This example is slightly different, file name contains form name and date of the conversion:

@Text(Form + "-" + @Text(@Year(@Today)) + "-" + @Text(@Month(@Today)) + "-" +@Text(@Day(@Today)))

The result: Memo-2011-12-9.pdf

5. In this example, the PDF files will be named simply according to their unique document ID:

@documentuniqueid

The result: 9900B68769EDF884C12576DD005CC16E.pdf