Skip to content

Document layout widget based on new PDF document generation

License

Notifications You must be signed in to change notification settings

ClevrSolutions/mendix-DocumentLayoutWidget

 
 

Repository files navigation

Clevr Specific

The first version of this project is based on release 1.1.0 of : https://github.com/Itvisors/mendix-DocumentLayoutWidget

This project is created so that it can be maintained internally for future reference so that it is not automatically updated or Clevr is not dependable on someone outside the company.

DocumentLayoutWidget

Use a header and footer in the new document generation feature

Features

  • Repeat content on every generated page of the PDF
  • Configure the height of the header and footer

Limitations

  • Only one header and one footer can be used in a document page. If you place multiple widgets on the page, the content will be overlaid.

Description

Created based on this blog post

General idea is to use a table because the header and footer of a table will be repeated on every page. However, the table footer on the last page will be shown directly underneath the content.

So a combination is used: A table to reserve space but not render any content.

Render content in the reserved space using position fixed. Without reserving space using the table, the contents would overflow the header and footer.

Any content with fixed position will be repeated on every page in the generated PDF. That is why the widget can be used only once on the document page.

Usage

  • Place the widget on the page
  • Put your content in the header, body and footer drop zones
  • If you only need a header or a footer, leave the unused drop zone empty and set the property to only use what you need
  • When the PDF is generated the header and footer are repeated on each page

About

Document layout widget based on new PDF document generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 27.7%
  • Java 25.9%
  • CSS 22.4%
  • JavaScript 12.9%
  • HTML 11.1%