# 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.

{% hint style="info" %}
Export rename config must have "Section" settings, to differentiate the name of the files in different swim lanes.

epaper rename is not supported in this export API.
{% endhint %}

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.&#x20;

| **Case1** | <ul><li>1 Product</li><li>One location</li><li>Same Rename logic for indd and pdf</li></ul>                                                | [Configuration](#case-1-sample-configuration) |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------- |
| **Case2** | <ul><li>1 Product</li><li>One location</li><li>Different Rename logic at file level for indd and pdf</li></ul>                             | [Configuration](#case-2-sample-configuration) |
| **Case3** | <ul><li>1 Product</li><li>Two locations</li><li>Different Rename logic at Location level for different files indd and pdf</li></ul>        | [Configuration](#case-3-sample-configuration) |
| **Case4** | <ul><li>1 Product</li><li>Multiple locations (S3, FTP, SFTP)</li><li>Different Rename logic at Location level</li><li>Merged Pdf</li></ul> | [Configuration](#case-4-sample-configuration) |

#### **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\nP5xJZ3SJD6zQipdBpc81AXlbd60Nb0NgsDaIwh80ur0aXeG1j39zf3UBs+tVobKuh4t4HxzKxXA5\nUAxIljZ5Q+FyzppimiKhs3a2vIM83Kd1OaKTJgURn1998JhsGPm7ZwIDAQABAoIBAFd9x3BlwMur\nbJ3qGyEpNF2/WepLtlAmHagHNu1GL/LIqVIHYdVgpavANv0U0X2TXyBxfWooO3BpLWc9hKXHC/Mn\nilLAPPbFQWg5yjJMwOR+2skks1Bxrk5/A3uuojuEkrKKbhPl5h0T0IXFJ9XTEpAbYPeuUBLNtfUu\nUkeK/0tkM+1twdUGKvkrkOqm46F3X2Ud9HAt7GvRiF2Vf1sHQrTt8Y0xfgatmYaZVtdFHY3EvLc9\nTqnBsNn4xg+mPi2P7mZANlUarrgScKdF/3OROVxtJHFbet1uBoH81ROWxZm5pPnk77vO8zLx48nR\nWmhTBI5DO7MiBTyIQOFPNQUR4MECgYEA95QFz0EyixSXlsiJFWbwrBlDbTMyiBoBvNWkRFcKNjac\nT6cYQlYsGFIKcSHHYU+4AWv/pfMxpZlW6GcPtIwcNoaH6qsVyhmpVemz8p7hE3FPHkV1UBUHR3rH\nTQN4VEGYLTc6rSnwyV3aJiRHmtHNPe3ZSw75C+puGZY0ZJxIai0CgYEAqBe++7u8ZkrYDFm0q5yG\n2PbHX97UG7dtwp+hUkso03dBxaVlqLvbaaGQuSuDhjehzjNvlRIo4Qk3iJrXMgBsi+ON14Lq4d98\nwhLc7ww4V3XgX29mPmm9oUyuUN1iR7oei/8ApdBbTyz9EybMaVxVY+/umhZAKQUHtP3Hj7ri3GMC\ngYBnGrkUqAVBkJDU1azpQdaHBXpkFsc7kQEaQCrJ3ym8jB+quF7M+ZAhjMEWfkfHSejKhsyPsukB\nGwvre0g6G4OAXaRq4VcQtIEl607qgqofa7fUVn7Vm/xNE1++vew1wp96bR69kNLbOX+pFMDRRABi\ngxRUQucKxFWXyEsHf2JU/QKBgBdVHHyC5bbpQq4MMaj0lD8/mhMzsgua3ZB7agArUKJx1l5iBAd0\n9BLoi1c4tAwIYtxlhWKS37vE9MFwhNh6+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/LIqVIHYdVgpavANv0U0X2TXyBxfWooO3BpLWc9hKXHC/Mn\nilLAPPbFQWg5yjJMwOR+2skks1Bxrk5/A3uuojuEkrKKbhPl5h0T0IXFJ9XTEpAbYPeuUBLNtfUu\nUkeK/0tkM+1twdUGKvkrkOqm46F3X2Ud9HAt7GvRiF2Vf1sHQrTt8Y0xfgatmYaZVtdFHY3EvLc9\nTqnBsNn4xg+mPi2P7mZANlUarrgScKdF/3OROVxtJHFbet1uBoH81ROWxZm5pPnk77vO8zLx48nR\nWmhTBI5DO7MiBTyIQOFPNQUR4MECgYEA95QFz0EyixSXlsiJFWbwrBlDbTMyiBoBvNWkRFcKNjac\nT6cYQlYsGFIKcSHHYU+4AWv/pfMxpZlW6GcPtIwcNoaH6qsVyhmpVemz8p7hE3FPHkV1UBUHR3rH\nTQN4VEGYLTc6rSnwyV3aJiRHmtHNPe3ZSw75C+puGZY0ZJxIai0CgYEAqBe++7u8ZkrYDFm0q5yG\n2PbHX97UG7dtwp+hUkso03dBxaVlqLvbaaGQuSuDhjehzjNvlRIo4Qk3iJrXMgBsi+ON14Lq4d98\nwhLc7ww4V3XgX29mPmm9oUyuUN1iR7oei/8ApdBbTyz9EybMaVxVY+/umhZAKQUHtP3Hj7ri3GMC\ngYBnGrkUqAVBkJDU1azpQdaHBXpkFsc7kQEaQCrJ3ym8jB+quF7M+ZAhjMEWfkfHSejKhsyPsukB\nGwvre0g6G4OAXaRq4VcQtIEl607qgqofa7fUVn7Vm/xNE1++vew1wp96bR69kNLbOX+pFMDRRABi\ngxRUQucKxFWXyEsHf2JU/QKBgBdVHHyC5bbpQq4MMaj0lD8/mhMzsgua3ZB7agArUKJx1l5iBAd0\n9BLoi1c4tAwIYtxlhWKS37vE9MFwhNh6+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": "-"
                                        }
                                }
                        ]
                }
        }     
}
```

#### **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+1twdUGKvkrkOqm46F3X2Ud9HAt7GvRiF2Vf1sHQrTt8Y0xfgatmYaZVtdFHY3EvLc9\nTqnBsNn4xg+mPi2P7mZANlUarrgScKdF/3OROVxtJHFbet1uBoH81ROWxZm5pPnk77vO8zLx48nR\nWmhTBI5DO7MiBTyIQOFPNQUR4MECgYEA95QFz0EyixSXlsiJFWbwrBlDbTMyiBoBvNWkRFcKNjac\nT6cYQlYsGFIKcSHHYU+4AWv/pfMxpZlW6GcPtIwcNoaH6qsVyhmpVemz8p7hE3FPHkV1UBUHR3rH\nTQN4VEGYLTc6rSnwyV3aJiRHmtHNPe3ZSw75C+puGZY0ZJxIai0CgYEAqBe++7u8ZkrYDFm0q5yG\n2PbHX97UG7dtwp+hUkso03dBxaVlqLvbaaGQuSuDhjehzjNvlRIo4Qk3iJrXMgBsi+ON14Lq4d98\nwhLc7ww4V3XgX29mPmm9oUyuUN1iR7oei/8ApdBbTyz9EybMaVxVY+/umhZAKQUHtP3Hj7ri3GMC\ngYBnGrkUqAVBkJDU1azpQdaHBXpkFsc7kQEaQCrJ3ym8jB+quF7M+ZAhjMEWfkfHSejKhsyPsukB\nGwvre0g6G4OAXaRq4VcQtIEl607qgqofa7fUVn7Vm/xNE1++vew1wp96bR69kNLbOX+pFMDRRABi\ngxRUQucKxFWXyEsHf2JU/QKBgBdVHHyC5bbpQq4MMaj0lD8/mhMzsgua3ZB7agArUKJx1l5iBAd0\n9BLoi1c4tAwIYtxlhWKS37vE9MFwhNh6+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": "-"
                                                                }
                                                        }
                                                ]
                                        }
                                }
                        },
                        {
                                "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.&#x20;

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": "-"
                                        }
                                }
                        ]
                }
        }
}
```

### Pagehub export API 1.3.1

In the latest API version,&#x20;

* Default filename on epaper export issue fixed

A new configuration key `ePaperRenaming` has been introduced at the **destination level** in the export configuration. When this key is set to `true` (Boolean), the ePaper renaming logic will be applied. If the key is not set or its value is `false`, the export will continue to follow the existing/default naming flow.

{% hint style="info" %}
When configuration key `ePaperRenaming` is set to `true` , then  `exportRenameConfigEpaper` or `exportRenameConfig` must have the UUID parameter in the configuration.

When key `ePaperRenaming` is not available in configuration, epaper export and other settings will works as usual.

\*ePaper rename logic will be applied as per the setting defined at destination level only, Example, If S3 has `ePaperRenaming` and `exportRenameConfigEpaper` defined in the configuration then rename logic will work for S3 only and for rest of the destinations default export rename will work.
{% endhint %}

Sample configuration as per use case

| **Case1 :** No uuid validation                                                                                        | <ul><li>Default filename on epaper export</li><li>For S3 : without "ePaperRenaming" key </li><li>For FTP "ePaperRenaming": false</li><li>UUID not defined anywhere</li></ul>                                                                                                                      | [Case1: Configuration](#case1-configuration) |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| **Case2 :** UUID required for Default rename config                                                                   | <p></p><ul><li>Default export rename config</li><li>For S3 "ePaperRenaming": true</li><li>For S3 : without "exportRenameConfigEpaper" key </li><li>UUID must be defined in default export rename config "exportRenameConfig"</li></ul>                                                            | [Case2: Configuration](#case2-configuration) |
| **Case3 :** UUID required for exportRenameConfigEpaper in S3 and default exportRenameConfig in FTP                    | <p></p><ul><li>ePaper export rename config</li><li>For S3: "ePaperRenaming": true</li><li>For S3 : "exportRenameConfigEpaper" key set to true, UUID is required.</li><li>For FTP:  "ePaperRenaming": true, default "exportRenameConfig" must have UUID.</li></ul>                                 | [Case3: Configuration](#case3-configuration) |
| **Case4 :** S3 and SFTP follows specific epaper export rename logic and FTP follows the Default export rename config. | <p></p><ul><li>For S3 and SFTP: Both setting are true "ePaperRenaming": true and "exportRenameConfigEpaper" </li><li>For FTP : only "ePaperRenaming": true </li><li>UUID must be defined in both default rename config "exportRenameConfig" and epaper rename  exportRenameConfigEpaper</li></ul> | [Case4: Configuration](#case4-configuration) |

#### Case1: Configuration

```
{
        "default": {
                "destinations": [
                        {
                                "S3": {
                                        "bucket": "pagehub-export-test",
                                        "awsRegion": "eu-west-1",
                                        "path": {
                                                "ePaperPath": "Test11/epaperFiles"
                                        }
                                }
                        },
                        {
                                "FTP": {
                                        "hostname": "ftp-mlb.newscyclesolutions.com",
                                        "username": "cct-pagehub-export",
                                        "password": "0A8rn1uc@Y6hNKI",
                                        "path": {
                                                "pdfPath": "test1/pdfFiles",
                                                "inddPath": "test1/inddFiles",
                                                "ePaperPath": "test1/ePaper"
                                        },
                                        "mergePdf": true,
                                        "ePaperRenaming": false,
                                        "exportRenameConfigEpaper": {
                                                "enable": true,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                }
                                                        }
                                                ]
                                        },
                                        "exportRenameConfig": {
                                                "enable": false,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 1,
                                                                        "Delimiter": "-"
                                                                }
                                                        },
                                                        {
                                                                "PremadePageLiteral": {
                                                                        "PremadePageLiteral": false,
                                                                        "PremadePageLiteral:N": 2,
                                                                        "Delimiter": "-"
                                                                }
                                                        }
                                                ]
                                        }
                                }
                        }
                ],
                "fileFormats": [
                        "pdf",
                        "epaper",
                        "indd"
                ],
                "exportRenameConfig": {
                        "enable": true,
                        "config": [
                                {
                                        "PremadePageLiteral": {
                                                "PremadePageLiteral": true
                                        }
                                },
                                {
                                        "DateFormat": {
                                                "DateFormat": "DDMM",
                                                "Delimiter": "-"
                                        }
                                },
                                {
                                        "PageNum": {
                                                "PageNum": 2
                                        }
                                },
                                {
                                        "Section": {
                                                "Section": false,
                                                "Section:N": 5,
                                                "Delimiter": "-+"
                                        }
                                }
                        ]
                }
        }
}
```

#### Case2: Configuration

```
{
        "default": {
                "destinations": [
                        {
                                "S3": {
                                        "bucket": "pagehub-export-test",
                                        "awsRegion": "eu-west-1",
                                        "path": {
                                                "ePaperPath": "Test11/epaperFiles"
                                        },
                                        "ePaperRenaming": true
                                }
                        },
                        {
                                "FTP": {
                                        "hostname": "ftp-mlb.newscyclesolutions.com",
                                        "username": "cct-pagehub-export",
                                        "password": "0A8rn1uc@Y6hNKI",
                                        "path": {
                                                "pdfPath": "test1/pdfFiles",
                                                "inddPath": "test1/inddFiles",
                                                "ePaperPath": "test1/ePaper"
                                        },
                                        "mergePdf": true,
                                        "ePaperRenaming": false,
                                        "exportRenameConfigEpaper": {
                                                "enable": true,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                }
                                                        }
                                                ]
                                        },
                                        "exportRenameConfig": {
                                                "enable": false,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 1,
                                                                        "Delimiter": "-"
                                                                }
                                                        },
                                                        {
                                                                "PremadePageLiteral": {
                                                                        "PremadePageLiteral": false,
                                                                        "PremadePageLiteral:N": 2,
                                                                        "Delimiter": "-"
                                                                }
                                                        }
                                                ]
                                        }
                                }
                        }
                ],
                "fileFormats": [
                        "pdf",
                        "epaper",
                        "indd"
                ],
                "exportRenameConfig": {
                        "enable": true,
                        "config": [
                                {
                                        "PremadePageLiteral": {
                                                "PremadePageLiteral": true
                                        }
                                },
                                {
                                        "UUID": {
                                                "UUID": true,
                                                "Delimiter": "_"
                                        }
                                },
                                {
                                        "DateFormat": {
                                                "DateFormat": "DDMM",
                                                "Delimiter": "-"
                                        }
                                },
                                {
"PageNum": {
                                                "PageNum": 2
                                        }
                                },
                                {
                                        "Section": {
                                                "Section": false,
                                                "Section:N": 5,
                                                "Delimiter": "-+"
                                        }
                                }
                        ]
                }
        }
}
```

#### Case3: Configuration

```
{
        "default": {
                "destinations": [
                        {
                                "S3": {
                                        "bucket": "pagehub-export-test",
                                        "awsRegion": "eu-west-1",
                                        "path": {
                                                "ePaperPath": "Test11/epaperFiles"
                                        },
                                        "ePaperRenaming": true,
                                        "exportRenameConfigEpaper": {
                                                "enable": true,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                       }               
                                                        },
                                                       {
                                                                "UUID": {
                                                                     "UUID": true,
                                                                     "Delimiter": "_"
                                        }
                                }  
                                                ]
                                        }
                                }
                        },
                        {
                                "FTP": {
                                        "hostname": "ftp-mlb.newscyclesolutions.com",
                                        "username": "cct-pagehub-export",
                                        "password": "0A8rn1uc@Y6hNKI",
                                        "path": {
                                                "pdfPath": "test1/pdfFiles",
                                                "inddPath": "test1/inddFiles",
                                                "ePaperPath": "test1/ePaper"
                                        },
                                        "mergePdf": true,
                                        "ePaperRenaming": true,
                                        "exportRenameConfigEpaper": {
                                                "enable": false,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                }
                                                        }
                                                ]
                                        },
                                        "exportRenameConfig": {
                                                "enable": true,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 1,
                                                                        "Delimiter": "-"
                                                                }
                                                        },
                                                         {
                                                                 "UUID": {
                                                                       "UUID": true,
                                                                       "Delimiter": "_"
                                        }
                                },
                                                        {
                                                                "PremadePageLiteral": {
                                                                        "PremadePageLiteral": false,
                                                                        "PremadePageLiteral:N": 2,
                                                                        "Delimiter": "-"
                                                                }
                                                        }
                                                ]
                                        }
                                }
                        }
                ],
                "fileFormats": [
                        "pdf",
                        "epaper",
                        "indd"
                ],
                "exportRenameConfig": {
                        "enable": true,
                        "config": [
                                {
                                        "PremadePageLiteral": {
                                                "PremadePageLiteral": true
                                        }
                                },
                                {
                                        "UUID": {
                                                "UUID": true,
                                                "Delimiter": "_"
                                        }
                                },
                                {
                                        "DateFormat": {
                                                "DateFormat": "DDMM",
                                                "Delimiter": "-"
                                        }
                                },
                                {
"PageNum": {
                                                "PageNum": 2
                                        }
                                },
                                {
                                        "Section": {
                                                "Section": false,
                                                "Section:N": 5,
                                                "Delimiter": "-+"
                                        }
                                }
                        ]
                }
        }
}
```

#### Case4: Configuration

```
{
        "default": {
                "destinations": [
                        {
                                "S3": {
                                        "bucket": "pagehub-export-test",
                                        "awsRegion": "eu-west-1",
                                        "path": {
                                                "ePaperPath": "TestNov4/epaperFiles"
                                        },
                                        "ePaperRenaming": true,
                                        "exportRenameConfigEpaper": {
                                                "enable": true,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                       }               
                                                        },
                                                       {
                                                                "UUID": {
                                                                     "UUID": true,
                                                                     "Delimiter": "_"
                                        }
                                }  
                                                ]
                                        }
                                }
                        },
                        {
                                "FTP": {
                                        "hostname": "ftp-mlb.newscyclesolutions.com",
                                        "username": "cct-pagehub-export",
                                        "password": "0A8rn1uc@Y6hNKI",
                                        "path": {
                                                "pdfPath": "TestNov4/pdfFiles",
                                                "inddPath": "TestNov4/inddFiles",
                                                "ePaperPath": "TestNov4/ePaper"
                                        },
                                        "mergePdf": true,
                                        "ePaperRenaming": true,
                                        "exportRenameConfigEpaper": {
                                                "enable": false,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                }
                                                        }
                                                ]
                                        },
                                        "exportRenameConfig": {
                                                "enable": false,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 1,
                                                                        "Delimiter": "-"
                                                                }
                                                        },
                                                        {
                                                                "PremadePageLiteral": {
                                                                        "PremadePageLiteral": false,
                                                                        "PremadePageLiteral:N": 2,
                                                                        "Delimiter": "-"
                                                                }
                                                        }
                                                ]
                                        }
                                
                        }},
                        {
                                "SFTP": {
                                         "hostname": "sftp.saas-dev.infomaker.io",
                                        "port": 22,
                                        "username": "pagehub-export-sftp",
                                        "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+1twdUGKvkrkOqm46F3X2Ud9HAt7GvRiF2Vf1sHQrTt8Y0xfgatmYaZVtdFHY3EvLc9\nTqnBsNn4xg+mPi2P7mZANlUarrgScKdF/3OROVxtJHFbet1uBoH81ROWxZm5pPnk77vO8zLx48nR\nWmhTBI5DO7MiBTyIQOFPNQUR4MECgYEA95QFz0EyixSXlsiJFWbwrBlDbTMyiBoBvNWkRFcKNjac\nT6cYQlYsGFIKcSHHYU+4AWv/pfMxpZlW6GcPtIwcNoaH6qsVyhmpVemz8p7hE3FPHkV1UBUHR3rH\nTQN4VEGYLTc6rSnwyV3aJiRHmtHNPe3ZSw75C+puGZY0ZJxIai0CgYEAqBe++7u8ZkrYDFm0q5yG\n2PbHX97UG7dtwp+hUkso03dBxaVlqLvbaaGQuSuDhjehzjNvlRIo4Qk3iJrXMgBsi+ON14Lq4d98\nwhLc7ww4V3XgX29mPmm9oUyuUN1iR7oei/8ApdBbTyz9EybMaVxVY+/umhZAKQUHtP3Hj7ri3GMC\ngYBnGrkUqAVBkJDU1azpQdaHBXpkFsc7kQEaQCrJ3ym8jB+quF7M+ZAhjMEWfkfHSejKhsyPsukB\nGwvre0g6G4OAXaRq4VcQtIEl607qgqofa7fUVn7Vm/xNE1++vew1wp96bR69kNLbOX+pFMDRRABi\ngxRUQucKxFWXyEsHf2JU/QKBgBdVHHyC5bbpQq4MMaj0lD8/mhMzsgua3ZB7agArUKJx1l5iBAd0\n9BLoi1c4tAwIYtxlhWKS37vE9MFwhNh6+JY+Yuz8TjBGPmIODj7cWmHBigCVTQLy2JCwPS4aXM8K\nBb13Cxb5IgOOgh6Lbypc17mEj4Ex/3vyJ8y2wWGxFlZzAoGBAO1Z0q7m0471MkyUJYUu/Kfz0ibr\nQYctwiv9mRS5f11/0h57jmYs2SvnJqZmPUwWPBhzA54nXlG0Clb5k9CcdylxGiePUxi35fS9B3ra\nysY6RrVigEpArxiO/cShfeGJA3tL2Rn/761GxU5uig0oOyjqtjrLAzQ6fwr+E/pNqreT\n-----END RSA PRIVATE KEY-----",
                                        "path": {
                                                "pdfPath": "testNov4/pdfFiles",
                                                "inddPath": "testNov4/inddFiles",
                                                "ePaperPath": "testNov4/ePaper"
                                        },
                                        "mergePdf": true,
                                        "ePaperRenaming": true,
                                        "exportRenameConfigEpaper": {
                                                "enable": true,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 3,
                                                                        "Delimiter": "_"
                                                                }
                                                                }, 
                                                                {
                                        "UUID": {
                                                "UUID": true,
                                                "Delimiter": "_"
                                        }
                                                                
                                                        }
                                
                                                ]
                                        },
                                        "exportRenameConfig": {
                                                "enable": false,
                                                "config": [
                                                        {
                                                                "PageNum": {
                                                                        "PageNum": 1,
                                                                        "Delimiter": "-"
                                                                }
                                                        },
                                                        {
                                                                "PremadePageLiteral": {
                                                                        "PremadePageLiteral": false,
                                                                        "PremadePageLiteral:N": 2,
                                                                        "Delimiter": "-"
                                                                }
                                                        }
                                                ]
                                        }
                                }
                        }

                ],
                "fileFormats": [
                        "pdf",
                        "epaper",
                        "indd"
                ],
                "exportRenameConfig": {
                        "enable": true,
 "config": [
                                {
                                        "PremadePageLiteral": {
                                                "PremadePageLiteral": true
                                        }
                                },
                                {
                                        "UUID": {
                                                "UUID": true,
                                                "Delimiter": "_"
                                        }
                                },
                                {
                                        "DateFormat": {
                                                "DateFormat": "DDMM",
                                                "Delimiter": "-"
                                        }
                                },
                                {
"PageNum": {
                                                "PageNum": 2
                                        }
                                },
                                {
                                        "Section": {
                                                "Section": false,
                                                "Section:N": 5,
                                                "Delimiter": "-+"
                                        }
                                }
                        ]
                }
        }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.navigaglobal.com/page-hub/4.8.0/admin/settings/configuration/page-hub-plugin/export-rename-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
