专业的图像转 PDF 节点,支持出血位和裁切标记,适用于印刷设计领域。 Professional image to PDF conversion node with bleed and crop marks support, ideal for print design.
- 🖼️ 支持批量图像转换 / Batch image conversion support
- 📏 自定义出血尺寸(0-10mm)/ Customizable bleed size (0-10mm)
- 📐 可调节页边距(0-20mm)/ Adjustable margins (0-20mm)
- 🎯 自动生成裁切标记 / Automatic crop marks generation
- 🖨️ 支持 72-600 DPI 输出 / Support for 72-600 DPI output
- 👁️ 实时 PDF 预览 / Real-time PDF preview
- 📁 自动文件管理 / Automatic file management
- 安装依赖包 / Install dependencies:
pip install PyPDF2 reportlab pymupdf pillow- 将本节点复制到 ComfyUI 的 custom_nodes 目录 / Copy this node to ComfyUI's custom_nodes directory:
git clone https://github.com/your-repo/ComfyUI-Image-To-PDF| 参数 / Parameter | 说明 / Description | 默认值 / Default | 范围 / Range |
|---|---|---|---|
| images | 输入图像序列 / Input image sequence | - | - |
| bleed_mm | 出血尺寸 / Bleed size | 3.0 mm | 0-10 mm |
| margin_mm | 页边距 / Margin size | 10.0 mm | 0-20 mm |
| dpi | 输出分辨率 / Output resolution | 300 | 72-600 |
| add_bleed_marks | 添加裁切标记 / Add crop marks | True | True/False |
- 📄 PDF 文件位置 / PDF file location:
ComfyUI/output/pdf_bleed/output_[timestamp]_[counter]_bleed.pdf
- 🖼️ 预览图 / Preview image:
- 实时显示 PDF 第一页 / Real-time display of first page
- 144 DPI 预览质量 / 144 DPI preview quality
- 💡 使用 PyPDF2 处理 PDF 页面操作 / Using PyPDF2 for PDF page operations
- 🎨 通过 ReportLab 绘制出血背景和裁切标记 / Drawing bleed background and crop marks with ReportLab
- 🔍 使用 PyMuPDF 生成高质量预览图 / Generating high-quality previews with PyMuPDF
- 🔄 自动处理图像格式转换(RGBA → RGB)/ Automatic image format conversion
- 📊 精确的尺寸计算和误差控制 / Precise dimension calculation and error control
- 📚 印刷品设计输出 / Print design output
- 📰 杂志/画册制作 / Magazine/catalogue production
- 🎨 艺术作品输出 / Artwork output
- 📋 文档标准化处理 / Document standardization
- 建议出血尺寸设置为 3mm(印刷行业标准)/ Recommended bleed size is 3mm (printing industry standard)
- 输出 DPI 建议 300-600(取决于印刷需求)/ Recommended output DPI is 300-600 (depending on printing requirements)
- 支持批量处理但注意内存占用 / Batch processing supported but mind memory usage
- 初始发布 / Initial release
- 基础功能实现 / Basic functionality implementation
- 精确度优化 / Precision optimization