Skip to content
New issue

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

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

Already on GitHub? # to your account

Problem with Output or Saving pdf with method F #752

Open
eliyaamos opened this issue Oct 9, 2024 · 1 comment
Open

Problem with Output or Saving pdf with method F #752

eliyaamos opened this issue Oct 9, 2024 · 1 comment

Comments

@eliyaamos
Copy link

eliyaamos commented Oct 9, 2024

Screenshot from 2024-10-09 10-15-42
Screenshot from 2024-10-09 10-16-05
I am getting problem with with saving pdf file to my path but when I display the file in browser with 'I' method it works fine while with F it returns "TCPDF ERROR: Unable to create output file:" and error is

Message: fopen(): Remote host file access not supported, file://uploads/atachments/forms/Loan_Form16.pdf
Filename: include/tcpdf_static.php

@eliyaamos eliyaamos changed the title Problem with Output or Seaving pdf with method F Problem with Output or Saving pdf with method F Oct 9, 2024
@littlepackage
Copy link

Hi @eliyaamos,

The message you're getting says just about everything, and so maybe you've already hunted down the root of this user error.

fopen(): Remote host file access not supported, file://uploads/atachments/forms/Loan_Form16.pdf

Presumably, your $filename in fopenLocal() is 'uploads/atachments/forms/Loan_Form16.pdf', so TCPDF adds file:// to that. Does that file exist? There appears to be a misspelling in there, also, FWIW. And furthermore, is it on the same system you're running TCPDF on? The $filename should be a local URL or an absolute pathname.

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

No branches or pull requests

2 participants