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

SushreeMB5 days ago — edited 5 days 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.

This post has been answered by Pothiarun Kannan on Mar 2 2026
Jump to Answer
Comments
Post Details
Added 5 days ago
4 comments
155 views