<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
To modify the exported PDF file, set the
<a
href="https://www.flexmonster.com/doc/export-report/#destinationtype-pdf"
target="_blank"
>destinationType</a> parameter of
<a href="https://www.flexmonster.com/api/exportto" target="_blank"
>exportTo()</a> to <code>"plain"</code>, and then edit the resulting file's
conetnts in the
<a
href="https://www.flexmonster.com/api/exportto/#callbackHandler"
target="_blank"
>callbackHandler</a>.
</p>
<p>
In this example, we add a new page with a date of export to the exported
PDF, and then save the file locally (lines 41–51 in the JavaScript box).
</p>
</div>
<button onclick="exportAndModify()">
Export to PDF and modify generated file
</button>
<div id="pivot-container"></div>