Export rename config
Multi destination and rename support in export rename config.
Pagehub version 4.5.0 along with Pagehub export API version 1.2.0 supports multi destination and rename files in export settings. It also supports to merge double truck/multitruck pdf into single pdf page during export.
This feature allows user to save the files at multiple destinations (S3, FTP, SFTP). It also allows to rename the files when exported at destination level and at file level.
eg: one indd/pdf file can be saved with two different names in two different locations, or One destination can have the same file with two different names for indd and pdf.
Merge Pdf - User can configure double truck or multi truck page PDF as a single PDF page instead of exporting two individual PDF pages using this key in the configuration "mergePdf": true,
Configuration for export settings with multiple scenarios that support following:
To save the settings at Multiple Destinations (S3, FTP, SFTP)
Export with file Rename at Destination level and File level(indd and pdf)
Merge Multi truck/double truck PDF as single pdf.
Case3
1 Product
Two locations
Different Rename logic at Location level for different files indd and pdf
Case4
1 Product
Multiple locations (S3, FTP, SFTP)
Different Rename logic at Location level
Merged Pdf
Case 1 Sample configuration
{
"default": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"ePaperPath": "MultiDestination1/epaperfiles",
"inddPath": "MultiDestination1/inddfiles",
"pdfPath": "MultiDestination1/pdffiles"
}
}
}
],
"fileFormats": [
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 2,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
},
"PMS_AGP1": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"ePaperPath": "MultiDestination1/epaperfiles",
"inddPath": "MultiDestination1/inddfiles",
"pdfPath": "MultiDestination1/pdffiles"
}
}
}
],
"fileFormats": [
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 2,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
}
}
Case 2 Sample configuration
{
"default": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"ePaperPath": "MultiDestination1/epaperfiles",
"inddPath": "MultiDestination1/inddfiles",
"pdfPath": "MultiDestination1/pdffiles"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 3,
"Delimiter": "_+"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "+-_"
}
}
]
}
}
}
],
"fileFormats": [
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 2,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
},
"PMS_AGP": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"ePaperPath": "MultiDestination1/epaperfiles",
"inddPath": "MultiDestination1/inddfiles",
"pdfPath": "MultiDestination1/pdffiles"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 3,
"Delimiter": "_+"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "+-_"
}
}
]
}
}
}
],
"fileFormats": [
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 2,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
}
}
Case 3 Sample Configuration
{
"default": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
},
{
"SFTP": {
"hostname": "sftp.saas-dev.infomaker.io",
"username": "pagehub-export-sftp",
"port": 22,
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAopAaz9ho30h2+x0KArPNpteV7kYHSTEMHyg66JRjlc6ePcjAg3kGiPSU2qKQ\n8Vhn9ebI+5Hz/FFFvJwo5nqkRr8CVtKmk2FQoZzYi/t+h0j64/OqOFt/kNkN1qyqFRF2ymMPX+QW\nFeddJQcCHKVsqLde9I5tSGN3sF5ZOjesjT22yrqCqWFxdICbVyKgRMBlKRsvpd8h4rk10+YrKaaC\nP5xJZ3SJD6zQipdBpc81AXlbd60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c4tAwIYtxlhWKS37vE9MFwhNh6+JY+Yuz8TjBGPmIODj7cWmHBigCVTQLy2JCwPS4aXM8K\nBb13Cxb5IgOOgh6Lbypc17mEj4Ex/3vyJ8y2wWGxFlZzAoGBAO1Z0q7m0471MkyUJYUu/Kfz0ibr\nQYctwiv9mRS5f11/0h57jmYs2SvnJqZmPUwWPBhzA54nXlG0Clb5k9CcdylxGiePUxi35fS9B3ra\nysY6RrVigEpArxiO/cShfeGJA3tL2Rn/761GxU5uig0oOyjqtjrLAzQ6fwr+E/pNqreT\n-----END RSA PRIVATE KEY-----",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
}
],
"fileFormats": [
"indd",
"pdf",
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
},
"PMS_AGP": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
},
{
"SFTP": {
"hostname": "sftp.saas-dev.infomaker.io",
"username": "pagehub-export-sftp",
"port": 22,
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAopAaz9ho30h2+x0KArPNpteV7kYHSTEMHyg66JRjlc6ePcjAg3kGiPSU2qKQ\n8Vhn9ebI+5Hz/FFFvJwo5nqkRr8CVtKmk2FQoZzYi/t+h0j64/OqOFt/kNkN1qyqFRF2ymMPX+QW\nFeddJQcCHKVsqLde9I5tSGN3sF5ZOjesjT22yrqCqWFxdICbVyKgRMBlKRsvpd8h4rk10+YrKaaC\nP5xJZ3SJD6zQipdBpc81AXlbd60Nb0NgsDaIwh80ur0aXeG1j39zf3UBs+tVobKuh4t4HxzKxXA5\nUAxIljZ5Q+FyzppimiKhs3a2vIM83Kd1OaKTJgURn1998JhsGPm7ZwIDAQABAoIBAFd9x3BlwMur\nbJ3qGyEpNF2/WepLtlAmHagHNu1GL/LIqVIHYdVgpavANv0U0X2TXyBxfWooO3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UwWPBhzA54nXlG0Clb5k9CcdylxGiePUxi35fS9B3ra\nysY6RrVigEpArxiO/cShfeGJA3tL2Rn/761GxU5uig0oOyjqtjrLAzQ6fwr+E/pNqreT\n-----END RSA PRIVATE KEY-----",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
}
],
"fileFormats": [
"indd",
"pdf",
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
}
}
Case 4 Sample Configuration
S3: Export rename pdf
SFTP: Export rename pdf and Export rename indd
FTP: Export rename pdf and Export rename indd
"mergePdf": true in all three locations
{
"default": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
},
{
"SFTP": {
"hostname": "sftp.saas-dev.infomaker.io",
"username": "pagehub-export-sftp",
"port": 22,
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAopAaz9ho30h2+x0KArPNpteV7kYHSTEMHyg66JRjlc6ePcjAg3kGiPSU2qKQ\n8Vhn9ebI+5Hz/FFFvJwo5nqkRr8CVtKmk2FQoZzYi/t+h0j64/OqOFt/kNkN1qyqFRF2ymMPX+QW\nFeddJQcCHKVsqLde9I5tSGN3sF5ZOjesjT22yrqCqWFxdICbVyKgRMBlKRsvpd8h4rk10+YrKaaC\nP5xJZ3SJD6zQipdBpc81AXlbd60Nb0NgsDaIwh80ur0aXeG1j39zf3UBs+tVobKuh4t4HxzKxXA5\nUAxIljZ5Q+FyzppimiKhs3a2vIM83Kd1OaKTJgURn1998JhsGPm7ZwIDAQABAoIBAFd9x3BlwMur\nbJ3qGyEpNF2/WepLtlAmHagHNu1GL/LIqVIHYdVgpavANv0U0X2TXyBxfWooO3BpLWc9hKXHC/Mn\nilLAPPbFQWg5yjJMwOR+2skks1Bxrk5/A3uuojuEkrKKbhPl5h0T0IXFJ9XTEpAbYPeuUBLNtfUu\nUkeK/0tkM+1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n-----END RSA PRIVATE KEY-----",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
},
{
"FTP": {
"hostname": "ftp-mlb.newscyclesolutions.com",
"username": "cct-pagehub-export",
"password": "0A8rn1uc@Y6hNKI",
"path": {
"pdfPath": "MergePDF/pdfFiles",
"inddPath": "MergePDF/inddFiles",
"ePaperPath": "MergePDF/ePaper"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
}
],
"fileFormats": [
"indd",
"pdf",
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
},
"PMS_AGP": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test",
"awsRegion": "eu-west-1",
"path": {
"ePaperPath": "MergePDF/epaperfiles",
"inddPath": "MergePDF/inddfiles",
"pdfPath": "MergePDF/pdffiles"
}
},
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 2,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 3,
"Delimiter": "_+"
}
},
{
"Section": {
"Section": false,
"Section:N": 5,
"Delimiter": "+-_"
}
}
]
}
}
],
"fileFormats": [
"indd",
"pdf",
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 2,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": true,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Section": {
"Section": true,
"Section:N": 5,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": true,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "+"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "DD-MM-YY"
}
},
{
"Part": {
"Part": true,
"Part:N": 3,
"Delimiter": "--"
}
},
{
"Custom1": {
"Custom1": "custom11",
"Delimiter": "-"
}
},
{
"Custom2": {
"Delimiter": "-_",
"Custom2": "custom22"
}
}
]
}
}
}
ePaper rename and export config
Pagehub version 4.6.0 along with Pagehub export API version 1.3.0 supports ePaper export and rename files in export settings.
A new configuration named exportRenameConfigEpaper
has been introduced in the export configuration.
Additionally, two new parameters have been added:
UUID
– mandatory for ePaper file renaming.Product
– can be used for renaming across all file types (ePaper, PDF, INDD).
With this enhancement, the ePaper export now supports a rename logic similar to PDF and INDD, allowing consistent and flexible file naming across all supported formats.
Sample configuration:
"exportRenameConfigEpaper": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"UUID": {
"UUID": true,
"Delimiter": "+++"
}
},
{
"Product": {
"Product": true,
"Product:N": 2,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
Sample configuration for epaper:
default and S3 destination
{
"default": {
"destinations": [
{
"S3": {
"bucket": "pagehub-export-test3",
"awsRegion": "eu-west-1",
"path": {
"ePaperPath": "Sep8/ePaper",
"pdfPath": "Sep8/PDF",
"inddPath": "Sep8/INDD"
},
"mergePdf": true,
"exportRenameConfigPdf": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"DateFormat": {
"Delimiter": "+--_",
"DateFormat": "MM-DD-YY"
}
}
]
},
"exportRenameConfigIndd": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 3,
"Delimiter": "_"
}
},
{
"Product": {
"Product": true,
"Product:N": 2,
"Delimiter": "-"
}
}
]
},
"exportRenameConfigEpaper": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"UUID": {
"UUID": true,
"Delimiter": "+++"
}
},
{
"Product": {
"Product": true,
"Product:N": 2,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
},
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"UUID": {
"UUID": true,
"Delimiter": "+++"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": false,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
}
]
}
}
}
],
"fileFormats": [
"pdf",
"indd",
"epaper"
],
"exportRenameConfig": {
"enable": true,
"config": [
{
"PageNum": {
"PageNum": 1,
"Delimiter": "-"
}
},
{
"PremadePageLiteral": {
"PremadePageLiteral": true,
"PremadePageLiteral:N": 2,
"Delimiter": "-"
}
},
{
"Product": {
"Product": true,
"Product:N": 1,
"Delimiter": "-"
}
},
{
"Section": {
"Section": false,
"Section:N": 4,
"Delimiter": "-+"
}
},
{
"PagePrefix": {
"PagePrefix": false,
"PagePrefix:P": "default/Prefix",
"Delimiter": "-"
}
},
{
"Edition": {
"Edition": false,
"Edition:N": 5,
"Delimiter": "++"
}
},
{
"DateFormat": {
"Delimiter": "_-+_",
"DateFormat": "YYYY-MM-DD"
}
},
{
"Part": {
"Part": false,
"Part:N": 3,
"Delimiter": "_+--"
}
},
{
"Custom1": {
"Custom1": "custom1",
"Delimiter": "-"
}
}
]
}
}
}
Last updated