Forrest logo
back to the pdftocairo tool

pdftocairo:tldr:c7d59

pdftocairo: Convert to PDF expanding the output to fill the paper.
$ pdftocairo ${filename-pdf} ${output-pdf} -pdf -expand
try on your machine

This command is used to convert a PDF file to a PDF file with expanded page sizes. Let's break down the different parts of the command:

  • pdftocairo: This is the name of the command-line tool or program that is used to perform the PDF conversion.

  • ${filename-pdf}: This is a placeholder for the name of the input PDF file that you want to convert. You need to replace ${filename-pdf} with the actual name of the file, including the .pdf extension.

  • ${output-pdf}: This is a placeholder for the name of the output PDF file that will be generated by the conversion process. Similar to ${filename-pdf}, you need to replace ${output-pdf} with the desired name of the output file, including the .pdf extension.

  • -pdf: This is an option or flag provided to the pdftocairo command to specify the output format as PDF. By including this option, you are indicating that you want the converted file to be in PDF format.

  • -expand: This is another option or flag provided to the pdftocairo command. This specific option is used to instruct the command-line tool to expand the page sizes of the output PDF file. It means that if the original PDF file had pages with smaller dimensions, the converted PDF file will have larger dimensions to "expand" the content to fit new pages.

Overall, the command is instructing the pdftocairo tool to convert the specified input PDF file to a PDF file with expanded page sizes, and the output will be saved with the provided output filename.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pdftocairo tool