linux - wkhtmltopdf pagination issue during converting html into pdf -
i converting html pdf using wkhtmltopdf in command line , working fine.
but issue facing related page size, since page size a4 creating pagination in document,
so there way can create pdf height according html content height.
since html content page dynamic , height different every time according user id.
command using in linux ubuntu environment:
wkhtmltopdf <source> <destination>
ok, have resolved issue , after searching lots of option , suggestion have used wkhtmltoimage , convert (imagemagick) command .
first have converted html image
shell_exec("/usr/bin/wkhtmltoimage <source html path> <destination path image>");
second have converted image pdf
shell_exec("/usr/bin/convert <source image path> <destination pdf path >");
which give me long single page pdf without pagination
Comments
Post a Comment