board2pdf


Nameboard2pdf JSON
Version 1.8.0 PyPI version JSON
download
home_pageNone
SummaryKiCAD Gerber PDF Generator
upload_time2024-11-13 20:28:19
maintainerNone
docs_urlNone
authorAlbin Dennevi
requires_python>=3.6
licenseGNU GPLv3
keywords kicad pdf pcb electronics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Board2Pdf

Board2Pdf is a KiCad Action Plugin to create good looking pdf files from the board. The outputted pdf is vector based
and searchable.

Two examples of what the plugin can output can be found here:<br>
[armory-Assembly.pdf](https://gitlab.com/dennevi/Board2Pdf/-/raw/main/resources/armory-Assembly.pdf "USB armory from WithSecure Foundry") (
1 982 kB) Project is
found [here](https://github.com/f-secure-foundry/usbarmory "USB armory from WithSecure Foundry")<br>
[hackrf-one-Assembly.pdf](https://gitlab.com/dennevi/Board2Pdf/-/raw/main/resources/hackrf-one-Assembly.pdf "HackRF by Great Scott Gadgets") (
1 579 kB) Project is found [here](https://github.com/greatscottgadgets/hackrf "HackRF by Great Scott Gadgets")<br>

When loaded the plugin looks like this. Here the user can configure how the pdf shall look.
![Screenshot](https://gitlab.com/dennevi/Board2Pdf/-/raw/main/resources/screenshot.png "Screenshot")

This plugin ONLY works with the KiCad 6.0 and later. It does NOT work with KiCad 5.1.x or earlier versions.

[https://gitlab.com/dennevi/Board2Pdf/](https://gitlab.com/dennevi/Board2Pdf/)

## Installation

The easiest way to install is to open KiCad -> Plugin And Content Manager. Select Board2Pdf in the Plugins tab, press
Install and then Apply Changes.

If you only want to use the CLI (use Board2Pdf from the command line) you can also install Board2Pdf using pip: `pip install board2pdf`. Then you can use the Board2Pdf CLI by calling board2pdf just like any other application installed from pip.

For instructions on manual installation from the repo, see [Wiki - Installation](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Installation)

Also, see Dependencies below.

## Dependencies

For basic functionality Board2Pdf uses [pypdf](https://github.com/py-pdf/pypdf) which is included when installing Board2Pdf. You don’t need to install any dependencies if this functionality is enough for you.

If you install [PyMuPDF](https://github.com/pymupdf/PyMuPDF) you can create the pdf files faster. It also enables you to convert the output file to SVG, and it has better support for bookmarks (table of content).

Board2Pdf uses [pdfCropMargins](https://github.com/abarker/pdfCropMargins) for some of the crop and scaling options. pdfCropMargins includes PyMuPDF so if you choose to install pdfCropMargins you don't have to install PyMuPDF.

More information in [Wiki - Install dependencies](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Install-dependencies).

## Problem with Ubuntu and some other Linux distros

When PyMuPDF (fitz) is installed with pip, KiCad crashes with a segmentation fault when Board2Pdf is loaded. Board2Pdf loads when the PCB Editor loads, so the crash happens directly when the PCB Editor is started. If this happens to you, you have two options:
1. Uninstall PyMuPDF using `python -m pip uninstall --upgrade PyMuPDF` or `pip uninstall --upgrade PyMuPDF` and use pypdf instead.
2. Uninstall PyMuPDF as in (1), but install it again using the apt package manager: `sudo apt install python3-fitz`

## Usage - GUI

The plugin includes a default configuration which should make it more or less self explanatory if you test it out. The
basic idea is that each template will result in a page in the pdf file that\'s created by this plugin. You can enable
any number of templates to get different views and color modes of the pcb. Each template can be individually configured
to give the desired output. It\'s completely up to you which layers to show, and which colors the layers shall have.

More information can be found in the [Wiki - Usage GUI](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Usage---GUI).

## Usage - CLI

Board2Pdf can be executed from the command line using `python board2pdf-cli.py {PROJECT}.kicad_pcb`. If installed using pip install the binary can be executed using `board2pdf {PROJECT}.kicad_pcb`.

More information can be found in the [Wiki - Usage CLI](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Usage---CLI).

## Support

First search the [KiCad forum](https://forum.kicad.info/) to see if someone else has asked the same thing. If not, post
your question in the forum and tag me by writing @albin. That way I will see your post and answer as soon as I can.

## Contributing

If you find a bug, please add an issue in the GitLab project.

If you make some improvements, please issue a pull request. All help is appreciated!

Read DEVELOPMENT.md for information on how to build Board2Pdf.

## Authors and acknowledgment

This script is written by Albin Dennevi, with contributions from [others](https://gitlab.com/dennevi/Board2Pdf/-/graphs/main?ref_type=heads). If you need to come in contact with me please use the KiCad forum as described under Support. But for bugs and feature requests, please add an issue in GitLab.

Credit goes to qu1ck, the author of the [InteractiveHtmlBom](https://github.com/openscopeproject/InteractiveHtmlBom)
plugin. I used the GUI of this project as a starting point when making the GUI for this project.

## License

This plugin is licensed under the open-source GNU GPL license, version 3.0 or later. A copy of the license is included in this software, and it can also be viewed [here](https://www.gnu.org/licenses/gpl-3.0.en.html). This is the same license as pdfCropMargins is licensed under, personally I would've choosen a more open license.

## Project status

This project is considered to be finished. When serious bugs are reported I will try my best to fix them, but don\'t
expect too much progress in adding features from my side.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "board2pdf",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "kicad, pdf, pcb, electronics",
    "author": "Albin Dennevi",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d2/15/af11c5fbd95c311db24c430fd660671da2d81a5139319318042ae9ee388b/board2pdf-1.8.0.tar.gz",
    "platform": null,
    "description": "# Board2Pdf\r\n\r\nBoard2Pdf is a KiCad Action Plugin to create good looking pdf files from the board. The outputted pdf is vector based\r\nand searchable.\r\n\r\nTwo examples of what the plugin can output can be found here:<br>\r\n[armory-Assembly.pdf](https://gitlab.com/dennevi/Board2Pdf/-/raw/main/resources/armory-Assembly.pdf \"USB armory from WithSecure Foundry\") (\r\n1 982 kB) Project is\r\nfound [here](https://github.com/f-secure-foundry/usbarmory \"USB armory from WithSecure Foundry\")<br>\r\n[hackrf-one-Assembly.pdf](https://gitlab.com/dennevi/Board2Pdf/-/raw/main/resources/hackrf-one-Assembly.pdf \"HackRF by Great Scott Gadgets\") (\r\n1 579 kB) Project is found [here](https://github.com/greatscottgadgets/hackrf \"HackRF by Great Scott Gadgets\")<br>\r\n\r\nWhen loaded the plugin looks like this. Here the user can configure how the pdf shall look.\r\n![Screenshot](https://gitlab.com/dennevi/Board2Pdf/-/raw/main/resources/screenshot.png \"Screenshot\")\r\n\r\nThis plugin ONLY works with the KiCad 6.0 and later. It does NOT work with KiCad 5.1.x or earlier versions.\r\n\r\n[https://gitlab.com/dennevi/Board2Pdf/](https://gitlab.com/dennevi/Board2Pdf/)\r\n\r\n## Installation\r\n\r\nThe easiest way to install is to open KiCad -> Plugin And Content Manager. Select Board2Pdf in the Plugins tab, press\r\nInstall and then Apply Changes.\r\n\r\nIf you only want to use the CLI (use Board2Pdf from the command line) you can also install Board2Pdf using pip: `pip install board2pdf`. Then you can use the Board2Pdf CLI by calling board2pdf just like any other application installed from pip.\r\n\r\nFor instructions on manual installation from the repo, see [Wiki - Installation](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Installation)\r\n\r\nAlso, see Dependencies below.\r\n\r\n## Dependencies\r\n\r\nFor basic functionality Board2Pdf uses [pypdf](https://github.com/py-pdf/pypdf) which is included when installing Board2Pdf. You don\u2019t need to install any dependencies if this functionality is enough for you.\r\n\r\nIf you install [PyMuPDF](https://github.com/pymupdf/PyMuPDF) you can create the pdf files faster. It also enables you to convert the output file to SVG, and it has better support for bookmarks (table of content).\r\n\r\nBoard2Pdf uses [pdfCropMargins](https://github.com/abarker/pdfCropMargins) for some of the crop and scaling options. pdfCropMargins includes PyMuPDF so if you choose to install pdfCropMargins you don't have to install PyMuPDF.\r\n\r\nMore information in [Wiki - Install dependencies](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Install-dependencies).\r\n\r\n## Problem with Ubuntu and some other Linux distros\r\n\r\nWhen PyMuPDF (fitz) is installed with pip, KiCad crashes with a segmentation fault when Board2Pdf is loaded. Board2Pdf loads when the PCB Editor loads, so the crash happens directly when the PCB Editor is started. If this happens to you, you have two options:\r\n1. Uninstall PyMuPDF using `python -m pip uninstall --upgrade PyMuPDF` or `pip uninstall --upgrade PyMuPDF` and use pypdf instead.\r\n2. Uninstall PyMuPDF as in (1), but install it again using the apt package manager: `sudo apt install python3-fitz`\r\n\r\n## Usage - GUI\r\n\r\nThe plugin includes a default configuration which should make it more or less self explanatory if you test it out. The\r\nbasic idea is that each template will result in a page in the pdf file that\\'s created by this plugin. You can enable\r\nany number of templates to get different views and color modes of the pcb. Each template can be individually configured\r\nto give the desired output. It\\'s completely up to you which layers to show, and which colors the layers shall have.\r\n\r\nMore information can be found in the [Wiki - Usage GUI](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Usage---GUI).\r\n\r\n## Usage - CLI\r\n\r\nBoard2Pdf can be executed from the command line using `python board2pdf-cli.py {PROJECT}.kicad_pcb`. If installed using pip install the binary can be executed using `board2pdf {PROJECT}.kicad_pcb`.\r\n\r\nMore information can be found in the [Wiki - Usage CLI](https://gitlab.com/dennevi/Board2Pdf/-/wikis/Usage---CLI).\r\n\r\n## Support\r\n\r\nFirst search the [KiCad forum](https://forum.kicad.info/) to see if someone else has asked the same thing. If not, post\r\nyour question in the forum and tag me by writing @albin. That way I will see your post and answer as soon as I can.\r\n\r\n## Contributing\r\n\r\nIf you find a bug, please add an issue in the GitLab project.\r\n\r\nIf you make some improvements, please issue a pull request. All help is appreciated!\r\n\r\nRead DEVELOPMENT.md for information on how to build Board2Pdf.\r\n\r\n## Authors and acknowledgment\r\n\r\nThis script is written by Albin Dennevi, with contributions from [others](https://gitlab.com/dennevi/Board2Pdf/-/graphs/main?ref_type=heads). If you need to come in contact with me please use the KiCad forum as described under Support. But for bugs and feature requests, please add an issue in GitLab.\r\n\r\nCredit goes to qu1ck, the author of the [InteractiveHtmlBom](https://github.com/openscopeproject/InteractiveHtmlBom)\r\nplugin. I used the GUI of this project as a starting point when making the GUI for this project.\r\n\r\n## License\r\n\r\nThis plugin is licensed under the open-source GNU GPL license, version 3.0 or later. A copy of the license is included in this software, and it can also be viewed [here](https://www.gnu.org/licenses/gpl-3.0.en.html). This is the same license as pdfCropMargins is licensed under, personally I would've choosen a more open license.\r\n\r\n## Project status\r\n\r\nThis project is considered to be finished. When serious bugs are reported I will try my best to fix them, but don\\'t\r\nexpect too much progress in adding features from my side.\r\n",
    "bugtrack_url": null,
    "license": "GNU GPLv3",
    "summary": "KiCAD Gerber PDF Generator",
    "version": "1.8.0",
    "project_urls": {
        "repository": "https://gitlab.com/dennevi/Board2Pdf",
        "url": "https://gitlab.com/dennevi/Board2Pdf"
    },
    "split_keywords": [
        "kicad",
        " pdf",
        " pcb",
        " electronics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d215af11c5fbd95c311db24c430fd660671da2d81a5139319318042ae9ee388b",
                "md5": "059ddb3db23b1b49816df19212ca6775",
                "sha256": "2e1527be2150efc537fde65bb09b56a33a23b7b6b1307bf07f5df72204da01f1"
            },
            "downloads": -1,
            "filename": "board2pdf-1.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "059ddb3db23b1b49816df19212ca6775",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3916378,
            "upload_time": "2024-11-13T20:28:19",
            "upload_time_iso_8601": "2024-11-13T20:28:19.766212Z",
            "url": "https://files.pythonhosted.org/packages/d2/15/af11c5fbd95c311db24c430fd660671da2d81a5139319318042ae9ee388b/board2pdf-1.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 20:28:19",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "dennevi",
    "gitlab_project": "Board2Pdf",
    "lcname": "board2pdf"
}
        
Elapsed time: 0.90247s