# pdfgrid

> utility for placing on pdf

Latest version **0.0.1** (published 2022-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install pdfgrid
pnpm add pdfgrid
yarn add pdfgrid
bun add pdfgrid
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-11-04 |
| First published | 2022-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Erhard |
| Maintainers | erhardkarger |
| Keywords | pdf, grid, positioning |

## Links

- npm: https://www.npmjs.com/package/pdfgrid
- Repository: https://github.com/erhard/pdfGrid
- Homepage: https://github.com/erhard/pdfGrid#readme
- Issues: https://github.com/erhard/pdfGrid/issues
- npm.io page: https://npm.io/package/pdfgrid

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-11-04

## README

#  pdfGrid 

###  Description

pdfGrid is a universal grid lib for absolut positioning.
It is useful mainly for positioning on pdfs.


### Usage

A surface (paper) is devided into cells and a cell is devided in subcells
First You generate a grid with the cell and subcell dimensions.

Then you access the position with four coordinates.
After that you can place for example an image on a page  with jspdf.

For example the paper is defided into 4 quadrants.  Each quadrat can be access with a number.
In a quadrant there are 6 lines and 4 rows. 
so You can position with (1,1,2,3)  It goes in this case from (0,0,0,0) to (1,1,5,3) . It starts counting from zero. 

Its mainly useful in loops, so you do not have to calculate the position yourself, you simply use the counter.

It can be used in the browser or in node.

git it to see the example of positioning.

There are two steps : generate the grid and access the grid and get the position.

---
_Source: https://npm.io/package/pdfgrid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
