Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APEX 24.2: Generating Multi-Page PDF from HTML in Oracle APEX

SushreeMB15 hours ago — edited 15 hours ago

I’m currently working on generating a PDF from dynamic HTML content in Oracle APEX.

I have tried PDF generation using PDF.js and APEX plugin to render the HTML as a downloadable PDF so far. The solutions works fine for a single-page document.

However, I am facing an issue when generating a multi-page PDF (around 5 pages):

  • After the first page, automatic blank pages are being created.
  • Additional empty regions/spaces are appearing between pages.
  • The layout looks correct in the browser preview, but once exported to PDF, extra pages are inserted.
  • It seems like a page-break or sizing issue, possibly related to A4 dimensions or CSS overflow.

What I’ve checked so far:

  • Verified CSS page-break rules (page-break-after, page-break-inside, etc.)
  • Adjusted margins and container heights
  • Checked for overflow or fixed height elements
  • Tried modifying print-specific CSS

Despite this, the issue persists.

Has anyone experienced similar behavior while generating multi-page PDFs from HTML in Oracle APEX?
Is this likely a CSS rendering issue, a plugin limitation, or something related to how PDF.js handles pagination?

Any guidance, best practices, or alternative approaches would be greatly appreciated.

Comments
Post Details
Added 15 hours ago
1 comment
38 views