| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 5.0.0 source code.tar.gz | 2024-09-26 | 78.6 MB | |
| 5.0.0 source code.zip | 2024-09-26 | 78.8 MB | |
| README.md | 2024-09-26 | 1.8 kB | |
| Totals: 3 Items | 157.4 MB | 1 | |
Breaking change
-
The data structure of the schemas in the template has been changed
```jsx
// Old V4 schemas: [ { name: { type: 'text', content: 'Pet Name', position: { x: 25.06, y: 26.35 }, width: 77.77, height: 18.7, fontSize: 36, fontColor: '#14b351', } } ]
// New V5 schemas: [ [ { name: 'name', type: 'text', content: 'Pet Name', position: { x: 24.8, y: 26.61 }, width: 77.77, height: 18.7, fontSize: 36, fontColor: '#14b351' } ] ] ```
- V4 templates will automatically be converted to the V5 structure internally, so there is no need for users to migrate the templates manually.
- Some schemas have been removed
- readOnlyText
- readOnlyImage
- readOnlySvg
- tableBeta
- The import method for utility functions in the schemas package has changed
jsx import { convertForPdfLayoutProps, rotatePoint } from '@pdfme/schemas/utils';
What's Changed
- Font type not used in the example by @mannerism in https://github.com/pdfme/pdfme/pull/596
- [BC Break]: Template schema restructure from keyed object to array by @peteward in https://github.com/pdfme/pdfme/pull/588
- Preparing to release V5 by @hand-dot in https://github.com/pdfme/pdfme/pull/600
- ignore basePdf rotation by @hand-dot in https://github.com/pdfme/pdfme/pull/601
New Contributors
- @mannerism made their first contribution in https://github.com/pdfme/pdfme/pull/596
Full Changelog: https://github.com/pdfme/pdfme/compare/4.5.2...5.0.0