Numerador de facturas
v0.1.1Number batches of PDF invoices offline: stamps F-0001, F-0002… on a local copy of each.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
number_invoices Numerar facturas
Stamps a correlative number (F-0001, F-0002…) on every page of each PDF invoice in a batch and writes numbered copies to a new folder. Numera facturas PDF en lote. Runs locally and offline: the PDFs stay on this computer and the originals are not modified.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Absolute paths of PDF files, or folders whose PDFs are all taken (not recursive) |
background | boolean | Draw a box behind the number |
box_color | string | Box color, #rrggbb |
box_pad_mm | number | Margin between number and box edge |
color | string | Number color, #rrggbb |
dry_run | boolean | Report which number each file would get, writing nothing |
end | integer | Last number. Given alone, the first is worked out from the file count |
font | string | |
from_x | string | Horizontal reference edge |
from_y | string | Vertical reference edge |
merge | boolean | Also write one PDF with every invoice joined |
output_dir | string | Absolute folder for the results. Defaults to 'numeradas' beside the first file |
password | string | Password of protected PDFs. It passes through the chat: ask only if the tool reports locked files. Numbered copies come out unprotected |
size_pt | number | Font size in points |
sort_by | string | name: natural order (2 before 10). date: oldest modified first. given: as listed |
start | integer | First number. Defaults to 1 |
template | string | Number format with one marker: {n:4} pads to 4 digits (0007), {n} does not pad |
x_mm | number | Distance from that edge, in mm |
y_mm | number | Distance from that edge, in mm |
zip | boolean | Also write a ZIP of the numbered PDFs |