Meanwhile I understand why DW2PDF always opens PDF files in the same browser window/tab after creation. In the function
sendPDFfile from within the
action.php the following header is written:
('Content-Disposition: inline; filename="' . $filename . '.pdf";');
Which results in the PDF file being opened in the browser and not downloaded.
The URL to the PDF file is then passed using the
fopen function. However, with
fopen it is not possible to open the URL in a new browser window or a new TAB.
$fp = @fopen($cachefile, "rb");
Hopefully one of you can help me to adjust the Code. Maybe it is even worth a PR at the end.