liborm85
Repos
25
Followers
43

Events

issue comment
How to add Thai font from google font

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.

Created at 1 week ago
issue comment
Using different fonts

See Font chapter in documentation.

Created at 3 weeks ago
issue comment
bugged height in sizePage

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?

Created at 3 weeks ago
issue comment
Can't import new costum fonts in angular

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.

Created at 4 weeks ago
closed issue
Way to edit an already existing pdf 'template'

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

Created at 4 weeks ago
issue comment
Can't import new costum fonts in angular

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.

Created at 4 weeks ago
issue comment
PDF generation with nodejs > 16 fails with RangeError

0.3.0-beta.5 released.

Created at 1 month ago
create tag
liborm85 create tag 0.3.0-beta.5
Created at 1 month ago

0.3.0-beta.5

Created at 1 month ago
closed issue
Custom font in Nodered

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

Created at 1 month ago
closed issue
A PDF generated with PDFmake is fine on the computer but messy when printed

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:

enter image description here

What could possibly go wrong? I precise I download the file on my computer and open it with my usual PDF viewer.

Created at 1 month ago
closed issue
PDF generation with nodejs > 16 fails with RangeError

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)

Created at 1 month ago
issue comment
PDF generation with nodejs > 16 fails with RangeError

Thanks for testing. Fixed by commit https://github.com/bpampuch/pdfmake/commit/d9b5b9e2878cdd71c6f9262bd6f526df87557a3e.

Created at 1 month ago

Fixed document buffer size. Node.js 18+ allow max 1 GiB #2543

Created at 1 month ago

regression test #2543

Created at 1 month ago
closed issue
Can't show image url to pdf

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

Screenshot 2023-02-08 001409

Created at 1 month ago
issue comment
Custom font in Nodered

pdfmake supports fonts in TTF files or in virtual file system (javascript file). Questions about Node Red ask on node red support.

Created at 1 month ago
issue comment
Can't show image url to pdf

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',
    }
}
Created at 1 month ago
issue comment
A PDF generated with PDFmake is fine on the computer but messy when printed

Attach runnable example for reproduce issue.

Created at 1 month ago
closed issue
wrap table column to next row in pdfMake

Hey guys!

Is possible broke colunm for other line?

image

Created at 2 months ago
issue comment
wrap table column to next row in pdfMake

Not supported now. Feature request here: https://github.com/bpampuch/pdfmake/issues/441

Created at 2 months ago
pull request closed
Fixed bugs when using Sinhala Fonts

When I try to use one of the most popular Sinhala font called Iskole Potha. The current code is throwing the following error. image

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.

Created at 2 months ago
issue comment
Fixed bugs when using Sinhala Fonts

Invalid. Cannot edit build folder directly. Require fix in fontkit library

Created at 2 months ago
closed issue
HTML in Header and Footer

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 ☺️

Created at 2 months ago
issue comment
HTML in Header and Footer

pdfmake doesn't support HTML.

Created at 2 months ago
closed issue
Links are not reported correctly in the PDF

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.

Created at 2 months ago
pull request opened
Czech translation for version 6.19
Created at 2 months ago
create branch
liborm85 create branch czech-6.19
Created at 2 months ago

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

  1. Update release note.
  2. Fixed a typo. #5645

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

Created at 2 months ago