Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageToPDF ¶
ConvertImageToPDF takes an input image path (must end in .jpg, .jpeg, or .png), reads PAGE_RESOLUTION (pixels) and PAGE_DPI from the environment (defaulting to Remarkable 2’s specs), and invokes ImageMagick’s convert to produce a PDF whose page size is exactly the target pixel resolution, with the image scaled down if larger, or left at its original size if smaller. It writes the output PDF alongside the input (basename + ".pdf") and returns its full path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.