in reply to Re: PDF::API2 Questions
in thread PDF::API2 Questions

Have you looked at the ->saveas method in the PDF::API2 documentation? Documented right below it is the ->stringify method which is documented as

Returns the document as a string.

Have you tried using that method? How could that documentation be made more clear?

Replies are listed 'Best First'.
Re^3: PDF::API2 Questions
by Bod (Parson) on Nov 04, 2022 at 23:03 UTC

    A decade on and the ->saveas method has been deprecated...

    However, to get the PDF directly sent to a browser, the ->to_string method works just fine.
    At least it does when one remembers to set the correct MIME type as application/pdf!