How does the export style conform to the Confluence Cloud export PDF function?

I am in the implementation of custom export page PDF function, I encountered a problem, hope someone can help me solve it as soon as possible, thank you!

Question: How does the export style conform to the native export PDF function?

Confluence Cloud export PDF images:
exportPDF1

Custom exported PDF images:
exportPDF2