TCPDF icon indicating copy to clipboard operation
TCPDF copied to clipboard

Generate output pdf in a new tab

Open rickkuan opened this issue 1 year ago • 1 comments

When use the command

$pdf->Output($filename, 'I');

The pdf always opens in the same tab. Need an option to open it in a new tab or window.

rickkuan avatar Jul 31 '24 14:07 rickkuan

Please take a look at this thing I googled which states, "There is no way to force a user's browser to open a PDF file in a new tab." Opening a new tab to read a PDF file Seems like including your new

$href = $pdf->Output($filename, 'F');

in an HTML link with a "_blank" target might be your best, but not foolproof, option.

littlepackage avatar Sep 03 '24 15:09 littlepackage