Embed Mechanics: Image Formats to PDF Canvas Pages
Converting images to a PDF requires wrapping image headers in PDF content streams. The compiler loads raw image byte channels (PNG/JPEG) and wraps them inside PDF Image XObjects. The tool calculates page dimensions (e.g., A4 or Letter sizes), fits images to margins, and writes a clean binary stream to compile the final document locally in your browser memory.