Converting PDF to PDFA seems to cut off pages

Using:

soffice --headless --convert-to pdf:writer_pdf_Export *.PDF --outdir ./pdfa

I’ve made sure in the GUI to go into Export As → Export as PDF and set "Archive (PDF/A ISO 19005) and set the version to PDF/A-3b.

The issue is odd page sized documents, they seem to be cut-off, almost like it is defaulting to 8.5x11 as a page size by default.

Forgot to mention, LibreOffice version is 7.5.4.2.

Also, some of the pages sizes:

8x13
2.31x4
9.5x11

Do you mean, that your PDF consists of different-sized pages?
Then see tdf#49787, Basically, only one page size is supported in the component opening PDFs by default (Draw).

Not related, but still:

Why do you specify writer_pdf_Export? You do not specify an import filter that would allow you to import into Writer; hence, Writer export filters are not available from Draw used by default. Simple --convert-to pdf would be not only shorter, but also more correct and not confusing (even if your chosen filter is ignored, giving the same result).

Yes, the pdf that I have has all different page sizes.

Blockquote Why do you specify writer_pdf_Export? You do not specify an import filter that would allow you to import into Writer; hence, Writer export filters are not available from Draw used by default. Simple --convert-to pdf would be not only shorter, but also more correct and not confusing (even if your chosen filter is ignored, giving the same result).

Another example I saw said that :writer_pdf_Export was needed…

It could only be needed, if it was followed by filter arguments. In all other cases, the specific writer_pdf_Export is unnecessary, because there’s no other PDF export filters in Writer.

For some other cases, where several filters exist that may produce files of the same type (like for HTML), mentioning the filter name could be needed to disambiguate/specify which one you need.

If you want, you may provide aa link to the “Another example”, to allow to correct it if possible.