Numerador de facturas

v0.1.1
io.github.nuncaeslupus/numerador-facturas Checked 1 day ago Published 1 month ago

Number 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.

ParameterTypeDescription
paths *arrayAbsolute paths of PDF files, or folders whose PDFs are all taken (not recursive)
backgroundbooleanDraw a box behind the number
box_colorstringBox color, #rrggbb
box_pad_mmnumberMargin between number and box edge
colorstringNumber color, #rrggbb
dry_runbooleanReport which number each file would get, writing nothing
endintegerLast number. Given alone, the first is worked out from the file count
fontstring
from_xstringHorizontal reference edge
from_ystringVertical reference edge
mergebooleanAlso write one PDF with every invoice joined
output_dirstringAbsolute folder for the results. Defaults to 'numeradas' beside the first file
passwordstringPassword of protected PDFs. It passes through the chat: ask only if the tool reports locked files. Numbered copies come out unprotected
size_ptnumberFont size in points
sort_bystringname: natural order (2 before 10). date: oldest modified first. given: as listed
startintegerFirst number. Defaults to 1
templatestringNumber format with one marker: {n:4} pads to 4 digits (0007), {n} does not pad
x_mmnumberDistance from that edge, in mm
y_mmnumberDistance from that edge, in mm
zipbooleanAlso write a ZIP of the numbered PDFs