Skip to content

frappe/print_designer

Repository files navigation

Print Designer

 Print Designer Logo

Frappe app to design print formats using interactive UI.

Features and How to Guides

Create Print Format

Using Awesomebar

Create.Print.Designer.Format.mov

Using Print Page

Create.Print.Designer.Format.mov

Static & Dynamic Image

Static Image

Static.Image.mov

Dynamic Image

Dynamic.Image.mov

Static & Dynamic Text

Dynamic Text

Dynamic.Text.mov

Static Text

Static.Text.mov

Rectangle & Layouts

Rectangle

Rectangle.mov

Child Table

Table.Element.mov

Installation

Warning

Please note that print designer is only compatible with develop and V15 version of frappe framework.

Local

To setup the repository locally follow the steps mentioned below:

  1. Install bench and setup a frappe-bench directory by following the Installation Steps
  2. Start the server by running
bench start
  1. In a separate terminal window, create a new site by running
bench new-site print-designer.test
  1. Map your site to localhost with the command
bench --site print-designer.test add-to-hosts
  1. Get the Print Designer app
bench get-app https://github.com/frappe/print_designer
  1. Install the app on the site.
bench --site print-designer.test install-app print_designer
  1. Open http://print-designer.test:8000/ in your browser and go through the setup wizard.

  2. After the setup is complete now open http://print-designer.test:8000/app/print-designer/


Contributions and Community

There are many ways you can contribute even if you don't code:

  1. You can start by giving a star to this repository!
  2. If you find any issues, even if it is a typo, you can raise an issue to inform us.

FAQ

  1. Incorrect PDF Page Size

    wkhtmltopdf --version
    
    • output should be similar to wkhtmltopdf 0.12.6 (with patched qt)
  2. Mac Installation Error

    • If error has npm ERR! node-pre-gyp WARN Pre-built binaries not found for canvas@x.x.x it means that there aren't any pre-built binaries for your system so it will try to compile them and in order to do that you need
    • Xcode Command Line Tools xcode-select --install
    • HomeBrew and brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
    • If you have xcode 10.0 or higher installed, in order to build from source you need NPM 6.4.1 or higher npm install -g npm@latest.
  3. Linux ARM CPU Installation Error

    • If error has node-pre-gyp WARN Pre-built binaries not installable for canvas@x.x.x and node@x.x.x it means that there aren't any pre-built binaries for your system so it will try to compile them
    • In order to do that you need sudo apt-get update && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

License

GNU Affero General Public License v3.0