is there any way ? PHPMaker (v2026) export button will be in custom file and export the page in PDF.
Since it is a custom file, it does not know what you want to export, you need to write your own code. There is no export options in custom file, but you may add a button yourself in your custom file's content and write a handler to reuse the ExportPdf class and set what you want to export (in HTML) to the export object, e.g. your button may get the page's HTML by JavaScript and post back to the page, then in Page_Load server event,
if (...) { // Check if it is post back by your button
$doc = Container("export.pdf");
$html = ...; // Get the HTML from your post data
$doc->loadHtml($html);
$this->Response = $doc->export();
}
Thanks for your suggestion.