Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate output pdf in a new tab #735

Open
rickkuan opened this issue Jul 31, 2024 · 1 comment
Open

Generate output pdf in a new tab #735

rickkuan opened this issue Jul 31, 2024 · 1 comment

Comments

@rickkuan
Copy link

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.

@littlepackage
Copy link
Contributor

littlepackage commented Sep 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants