wkhtmltopdf different generation on different machines



  • Hi all !

    I'm using jsreport through nodejs and I've encountered a bug where the wkhtmltopdf recipe generate different PDF on Windows 10 & Windows 7.
    Here's my configuration:

    template: {
        content: template,
        engine: 'handlebars',
        recipe: 'wkhtmltopdf',
        wkhtmltopdf: {
            orientation: 'landscape',
            pageHeight: '297',
            pageWidth: '210',
            cover,
            header,
            headerHeight: '0',
            footer,
            marginBottom: '10',
            marginLeft: '10',
            marginRight: '10',
            marginTop: '10',
            disableSmartShrinking: true,
            toc: true
        }
    }
    

    Here are the differences:
    Windows 7:
    0_1541677449382_CaptureW7.PNG
    Windows 10:
    0_1541677415758_captureW10.PNG

    Does someone have an idea ?

    Thanks in advance !



  • i won't be super helpful here, but I would recommend searching wkhtmltopdf github issues.
    There are usually plenty of problems with some workarounds mentioned.
    https://github.com/wkhtmltopdf/wkhtmltopdf/issues

    This problem can have something to do with different dpi settings.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.