Blinkist to PDF

Export Blinkist to PDF

< Commentaires sur Blinkist to PDF

Question / commentaire

§
Posté le: 2023-03-03
Édité le: 2023-03-03

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

§
Posté le: 2023-03-08

is there anyone who can help?

a-mtAuteur
§
Posté le: 2023-03-22

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.

Poster une réponse

Connectez-vous pour poster une réponse.