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.
func ConvertImageToPDFWithSettings ¶ added in v1.4.0
ConvertImageToPDFWithSettings takes an input image path and custom resolution/DPI settings, converts it to PDF using the specified settings, falling back to environment defaults if empty.
Types ¶
This section is empty.