Knit to pdf with css/html or convert html file to pdf file.

@ technocrat & cderv,

Thought I put my message in one response.
Thank you both for your reply and guidance.

I tried using Pandoc but wasn't successful in it.
this is my short code. system("pandoc -s file.html -o file.pdf")

Could you please provide an example that works with Pandoc, I just want to try and see ?
I only see the created html file in IE and not chrome.

It seems from reading your responses that LaTex is the best way to go for the best results in PDF formatting, however I think it may be a lot of work than to just create html and css then converting it to PDF from html.

Could someone provide an example of LaTex formatting in PDF, so I can see.

I think I might preferred the converting html to pdf methods since html and css is widely know and is easier this way then to learn and to use LaTex unless you disagree.

1 Like