• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Advice on creating a flattened and optimised pdf from a multipage HTML document

New Here ,
Nov 07, 2023 Nov 07, 2023

Copy link to clipboard

Copied

Hoping someone can help with some advice and guidance please, or point us in the right direction as to whom to ask please.
Requirement
The use case is for a book that is created in an HTML canvas (can be up to 200 pages) and then printed to a pdf file.

The book is a multipage HTML document created in an HTML 5 canvas we need to print to a pdf - the book can be up to 200 pages. We use hard page breaks, using break-after tag, to control page flow.
We need to be able to control the pdf generation parameters used (such as image resolution, dynamic page size (for different sized books), default font, pdf as flattened, pdf as compressed (we have been provided with an Adobe pdf options file, attached in link below, that we need to accommodate).

At times, we need to be able to print only a specific range of the HTML canvas (such as font cover of a cover canvas that includes all cover elements)
The current, urgent, use case is a backend event driven process (server side). We are on AWS, and so would trigger this via eventbridgeon confirmation of the payment and order. We are open to self hosting or using a cloud service. 

Later, we also need to client side to render a book preview in the user browser without using our own resources and bandwidth. 
We are on AWS, the app is React front end and node backend, but we are tech agnostic on pdf library to use so long as it is exposed as a service.

Views

102

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources