Cannot create or view PDF

I have just performed a brand new install on Ubuntu 22.04 via docker compose.
After creating an invoice, if I click the “View PDF” , it gets an error
XMLHttpRequest error.
The preview of the PDF in the window shows the PDF file.

The env file has
APP_DEBUG=false
REQUIRE_HTTPS=false
PHANTOMJS_PDF_GENERATION=false
PDF_GENERATOR=snappdf
TRUSTED_PROXIES=‘*’

Hi,

It may help to change to the hosted_ninja PDF generator.

Being very new to this app, what PDF generator can be used and how would it be set up?

Using hosted_ninja doesn’t require any setup

Do you mean the Free Plan at https://invoicing.co/
or
Download the app from https://www.invoiceninja.org/

In your .env file above you have this line:

PDF_GENERATOR=snappdf

I’m suggesting you change it to:

PDF_GENERATOR=hosted_ninja

Okay.
will try that tomorrow morning.

Thanks l

Thanks, that now works.

Now to compare this with Crater to see which one suits my circumstances best.