Repository navigation
fix(danfse): enforce physical NT008 A4 margins (#118) - #139
Merged
Merged
Conversation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
vitormattos
force-pushed
the
fix/danfse-nt008-physical-margins-118
branch
from
October 13, 2026 11:56
09801e6 to
ccc2360
Compare
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema reproduzido
No artefato sintético
danfse-visual-evidencedo PR #138 (SHAf344818c), a borda externa de 1 pt chega às quatro extremidades físicas do PDF: a margem real é 0 mm, apesar de@page { margin: 5pt; }no HTML. Isso contraria a faixa de 0,15–0,20 cm do item 2.2.2 da NT008 v1.02. A verificação foi feita diretamente sobre a geometria do PDF e sua rasterização, não apenas pela declaração CSS.Correção
pdftoppmem 144 dpi com verificação das quatro extremidades; os mesmos cenários continuam passando porpdfinfo,pdffontsepdftotext.Evidência e aceite
11773207613, run38306909004, comprovam margem real zero no estado anterior.pdfinfo,pdffonts,pdftotexte raster/vetores; confirmar 1 página A4, 1,5–2 mm de margem, fonte embutida, todas as informações obrigatórias e cenários longos.Refs: #118, NT008 v1.02 item 2.2.2, PRs #136 e #138.