Blinkist to PDF

Export Blinkist to PDF

< Rückmeldungen auf Blinkist to PDF

Frage/Kommentar

§
Veröffentlicht: 03.03.2023
Bearbeitet: 03.03.2023

I want to change PDF Pagesize to 91 x 126 to fit in my eBook reader.
I try to change
// PDF settings
var pdf = new jsPDF(),
width = 210, // width of 4A in mm
height = 297; // height of 4A in mm
to
// PDF settings
var pdf = new jsPDF(),
width = 91, // width of ebookreader in mm
height = 126; // height of ebookreader in mm

but it won't work

The text is set narrow, but the PDF page size remains A4.

Can someone tell me how to change PDF-textsize to 91 x 126 mm?
thanx

§
Veröffentlicht: 08.03.2023

is there anyone who can help?

a-mtVerfasser
§
Veröffentlicht: 22.03.2023

Hello @Martel,
sorry for the delay, didn't see your comment.

As you probably noticed, those settings are only to detect where to add a line break, not to change the PDF's dimensions. I didn't anticipate anyone tweaking those values, but if you want to, I commented out settings (line 430) which might fit your use case? — you just have to remove the opening /* and closing */

Another alternative would be to convert the PDF to epub, which is a more adaptable format — its font size and dimensions would depend on your system settings, whereas a PDF is fixed.

Antwort schreiben

Anmelden um eine Antwort zu senden.