pandoc set margins pdf

To set margins for a PDF using Pandoc in C, you can utilize the --variable flag with the geometry variable. Here's an example command:

pandoc input.md -o output.pdf --variable geometry:"left=2cm,right=2cm,top=3cm,bottom=3cm"

In the command above, you need to replace input.md with the path to your input Markdown file and output.pdf with the desired path and filename for your output PDF file. The --variable geometry:"left=2cm,right=2cm,top=3cm,bottom=3cm" part specifies the desired margin sizes. You can adjust the values (in centimeters) to suit your needs.

Please note that you'll need to have Pandoc installed on your system to use this command. Additionally, make sure to adjust the margin values according to your requirements.