Card
> Home > Tools > Printing > Card
- Author: amadhaji
- Repository: https://github.com/amadhaji/card
- GitHub stars: 2
- Forks: 6
- License: Apache-2.0
- Category: Developer Tools
- Maintenance: Unmaintained
Install Card
bench get-app https://github.com/amadhaji/card
Tags
- frappe
- frappe-app
Add the Frappe Gems badge to your README
Maintain Card? Paste this into your README:
[](https://frappegems.com/gems/apps/amadhaji/card)
About Card
# Card
Print multiple documents in one page.
- [Installation.](#installation)
- [1. Dependencies](#1-dependencies)
- [2. Installation.](#2-installation)
- [Use](#use)
- [1. Create Card.](#1-create-card)
- [2. Print Cards.](#2-print-cards)
- [3. Permissions.](#3-permissions)
- [4. Example:](#4-example)
- [License](#license)
**Card** is an application built on **frappe** framework.
## Installation.
#### 1. Dependencies
1. frappe (13.X.X) (tested on _13.17.0_).
#### 2. Installation.
```sh
bench get-app https://github.com/amadhaji/card.git
```
```sh
bench --site install-app card
```
## Use
To access the card list, go to:
> Home > Tools > Printing > Card
#### 1. Create Card.
When Create new Card.
1. Enter a **Name** for the Card **_(set only once)_**.
2. Select the **doctype** which documents will be of its type **_(set only once)_**.
3. Check **Fixed Width** if each card has a fixed width, **uncheck** it if prefer to enter number of cards per page width.
4. Enter **Card Width** in millimetre if Fixed Width checked, or Select number of **Cards Per Page Width** if it's unchecked.
5. Check **Fixed Height** if each card has a fixed height, **uncheck** it if prefer to be Content Height.
6. Enter **Card Height** in millimetre if Fixed Height checked.
7. Enter **Layout** of each card, It's Jinja template and can use **_`{{ doc }}`_** which represent the card document itself, and **_`{{ doc_card }}`_** which represent each selected document.
* **_e.x_**: `{{ doc.card_name }}` , `{{ doc.layout }}` , `{{ doc_card. }}`.
8. Select **Border** type for card, It's aimed to be out of card and used as marker for cutting.
9. Select **Border Width**.
10. Enter **Padding** in millimetre between card border and Content.
#### 2. Print Cards.
After Saving the document **Print Cards** button will be shown, clicking it will show MultiSelectDialog, found in it
1. default filters, they are **In List View / In Standard Filter** doctype fields.
2. Addition Filters.
3. table for selecting documents **_(20 at most)_**.
4. **Select All** Check Box to select all documents meet your filters.
5. **print** button.
Click **Print** in the dialog to go to Print View, and be sure to select **Card** As the **Print Format**.
#### 3. Permissions.
* **System Manager** Has All access.
* **Print User** able to read and print **_(Print Cards)_**.
#### 4. Example:
Printing DocType Description.
> Document JSON.
```json
{"card_name":"Description","doctype_card":"DocType","fixed_width":0,"card_width":0,"cards_per_page_width":"2","fixed_height":1,"card_height":30,"layout":"
 **************************  ## License Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
\n
\n\n","border":"dashed","padding":2,"border_width":"thin","doctype":"Card"}
```
> **_hint:_**
> Copy the **JSON** text and paste it anywhere in browser while browsing frappe.
> to create **new doc** from the **JSON**.
>
{{ doc_card.name }}
\n \n
\n{{ doc_card.description if doc_card.description else \"\"}}
\n{{ doc_card.document if doc_card.documentation else \"\"}}
\n **************************  ## License Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
Related Developer Tools apps for Frappe & ERPNext
- Frappe — Low code web framework for real world applications, in Python and Javascript
- Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
- Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
- Bench — CLI to manage Multi-tenant deployments for Frappe apps
- Frappe Ui — A set of components and utilities for rapid UI development
- Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
- Gameplan — Open Source Discussions Platform for Remote Teams
- Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.