Print to PDF on iphone

Hi, I’ve managed to get my project from desktop to my iphone and have made sure to include a print layout or two in the project file. On the iphone, I don’t get the option to print to pdf, just print to image.
I select that, then select the layout and it shows as an image, but without a basemap and layers, even though I can see the basemap and layers etc. in Qfield itself.
I’m using iphone 13 Pro Max, iOS vers16.3 and using Qfield 2.6.2.
Print to PDF.pdf


Imported from GitHub discussion by @martingeh on 2023-01-29T09:58:28Z

martingeh , gut feeling: your layout map item CRS doesn’t match that of the project. You can check this here in your layout:

Also, make sure your reference map is set to your main map item that you want driven by QField:


Imported from GitHub comment by @nirvn on 2023-01-29T10:07:34Z

Right - will have a look at that in a few hours. Can’t say I checked that before, so you’re likely to be right there - thanks. Will reply again after checking.


Imported from GitHub comment by @martingeh on 2023-01-29T10:21:15Z

Thankyou very much nirvn! Such a simple thing that I didn’t check. That works as expected.
Would you know why it prints to an image instead of PDF? I have a workaround to get it into a PDF, but of course it would be more streamlined if it printed straight to PDF.

Thanks again Mathieu.


Imported from GitHub comment by @martingeh on 2023-01-29T11:37:29Z

martingeh , writing PDF requires printing support within upstream Qt library, and that’s not available on iOS. So on that platform, we instead produce images.

There’s an open Qt issue on this: Qt Bug Tracker – by the looks of it we’re not going to see it supported anytime soon.


Imported from GitHub comment by @nirvn on 2023-01-29T11:53:34Z

Okay, not a big issue really (for me). Thanks for the reply Mathieu.


Imported from GitHub comment by @martingeh on 2023-01-29T11:56:16Z