CSS is only for style for website. Pdfmake require font file. Pdfmake supports TrueType (.ttf), OpenType (.otf), WOFF, WOFF2, TrueType Collection (.ttc), and Datafork TrueType (.dfont) font files.
auto page was designed to be used for continuous paper. It doesn't make sense to generate pages with different sizes of each page according to the size of the content. Do you have any real use case for this?
I tried google and found https://pjausovec.medium.com/how-to-fix-error-ts7016-could-not-find-a-declaration-file-for-module-xyz-has-an-any-type-ecab588800a8 If you use TypeScript is required .d.ts file with declaration for custom-fonts.js.
Would it be possible or even interesting to have the option to edit an already existing pdf template? For example to populate with dynamic data. I don't know if there is already a way to do it, but If you have ideas or something to add feel free to add them below, thanku
pdfmakefg is not part of pdfmake. I don't know what is in custom-fonts.js. But import
is standard key, file probably is not found.
0.3.0-beta.5 released.
0.3.0-beta.5
As I understand it, Node-RED only allows for a document definition to be processed, not a separate fonts-section.
Is it possible to use custom fonts (system-installed or TTF) with the Node-RED pdfmake-node out of the box?
Thanks
Hello, When I display the PDF on my computer, everything is fine. My PDF has several pages, the tables and paragraphs are fine, the colors are fine, etc. But when I print it (even in a file), look at what I have, everything is on a unique page and all the letters seem crushed, the tables have disappeared, etc:
What could possibly go wrong? I precise I download the file on my computer and open it with my usual PDF viewer.
Server-side pdf generation with nodejs version > 16 fails with the following error:
RangeError [ERR_OUT_OF_RANGE]: The value of "size" is out of range. It must be <= 1GiB. Received 9_007_199_254_740_991
at new NodeError (node:internal/errors:393:5)
at computeNewHighWaterMark (node:internal/streams/readable:368:11)
at Readable.read (node:internal/streams/readable:416:27)
at PDFDocument.<anonymous> (/home/app/.yarn/cache/pdfmake-npm-0.3.0-beta.2-7d513f8c84-58ad2341ec.zip/node_modules/pdfmake/js/OutputDocument.js:37:36)
at PDFDocument.emit (node:events:513:28)
at emitReadable_ (node:internal/streams/readable:590:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: 'ERR_OUT_OF_RANGE'
}
This error occurs since nodejs version 18 because the implementation for the computation of the high watermark in node streams changed. In nodejs v16 the hight watermark value was overriden with the max allowed value (1GB), In nodejs v18 an error is thrown if the max value is exceeded.
To fix this error the default value in OutputDocument.js
bufferSize should be changed from currently 9007199254740991
to 0x40000000
(1GB)
Thanks for testing. Fixed by commit https://github.com/bpampuch/pdfmake/commit/d9b5b9e2878cdd71c6f9262bd6f526df87557a3e.
Fixed document buffer size. Node.js 18+ allow max 1 GiB #2543
regression test #2543
I have a image url = http://203.159.92.57:1660/getqrcode/qrcode_dev/2023-2-7/BllotBox_152812023.png
Issue is when I getBase64 pdf is not show image
pdfmake supports fonts in TTF files or in virtual file system (javascript file). Questions about Node Red ask on node red support.
Tested on playground and works correct:
var dd = {
content: [
{ image: 'testimage' }
],
images: {
testimage: 'http://203.159.92.57:1660/getqrcode/qrcode_dev/2023-2-7/BllotBox_152812023.png',
}
}
Attach runnable example for reproduce issue.
Hey guys!
Is possible broke colunm for other line?
Not supported now. Feature request here: https://github.com/bpampuch/pdfmake/issues/441
When I try to use one of the most popular Sinhala font called Iskole Potha. The current code is throwing the following error.
The solution is already provided by https://github.com/bpampuch/pdfmake/issues/1916 but this hasn't published to main branch. After applying this solution the library will work perfectly for Sinhala Fonts.
Invalid. Cannot edit build folder directly. Require fix in fontkit library
Hello dear PDFmake Team, i am using PDFmake in my Angular Application and i wanted to ask if it is possible to use custom HTML inside the Header and Footer.
Thanks in advance, Leon ☺️
pdfmake doesn't support HTML.
Links are not reported correctly in the PDF, although the syntax is correct. For instance, inserting
{ text: 'google', link: 'http://www.google.com' }
results in a text "google" which is not clickable, either in the browser or in Adobe Reader. Links to other pages or destinations also do not work.
How can I solve it?
Note that, if I try to add "www.google.com", it is transformed in a link automatically.
Fixed an issue enable/disable tools menus is not working in native menus. #5503
Czech translation for version 6.18
Italian translation for version 6.18
SQLAlchemy version should be 1.4.44 for Python 3.6 as the latest version throws some migration errors.
Fixed BigAnimal authentication aborted issue. #5629
Update release note and Dependencies
Update version for release.
Ignore SQLAlchemy vulnerability as it is ignored by the upstream too.
Fix BigAnimal database versions by type. #5637
Use the login_required decorator in the appropriate place. #5593
Fixed an issue where properties tab was refreshing on tab change even if the selected node is same. #5536
Incorporate review comments.
Fixed an issue while updating server node info removes the clear saved password menu. #5598
We should be using PostgreSQL 15 libs.
Fix path.
Allow YouTube video demo links to be added to appropriate pgAdmin documentation. #5563
Ensure the appbundle has correct permissions so that pgAdmin can be accessed by users other than owner. #5613
Fixed an issue updating the schema node de-select the node in the tree if only one schema is present in the collection node. #5542
Fixed an issue where Tablespace location shows error "Location cannot be empty".
Update release note