feat: Dropstar's answers of 23/10 that need nothing more from them
All checks were successful
Build and deploy / Validate source (push) Successful in 1m6s
Build and deploy / Integration suite on a real stack (push) Successful in 4m5s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 2m6s
All checks were successful
Build and deploy / Validate source (push) Successful in 1m6s
Build and deploy / Integration suite on a real stack (push) Successful in 4m5s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 2m6s
- JPG is refused in every product, at upload and by the server: it has no transparency, so the background prints and loose art packs as a box - a PDF over 150 MB says before payment that the Site cannot check it, as a file opened by hand does - every piece that is not square is tried both ways; the 1 cm rule left 19,5 x 18,5 cm standing, 2 to a row instead of 3 - a mirrored order (UV only) is flagged on its card and panel, and its print file's footer ends in ESPELHADO, in bold - print files are named DTF-23-item-1, and the order panel copies DTF-23-, so the code pasted into the folder's search finds them - the proof: up to 30 cm, from the thinnest lines, a piece of each different artwork, at most three per order, free - a file opened by hand costs R$ 2,00 more a metre by default, and the Site says so Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -413,6 +413,8 @@ def footer_commands(text, logo_size=None):
|
||||
"""The footer's line, 0,5 cm from the left: the logo then the rest, or,
|
||||
without a logo, the line's first part (the brand) in bold."""
|
||||
brand, _, rest = text.partition(' · ')
|
||||
# A warning closing the line (ESPELHADO) goes in bold.
|
||||
rest, mark, _ = rest.rpartition(' · ESPELHADO') if rest.endswith(' · ESPELHADO') else (rest, '', '')
|
||||
def literal(value):
|
||||
raw = value.encode('cp1252', 'replace')
|
||||
return b'(' + raw.replace(b'\\', b'\\\\').replace(b'(', b'\\(').replace(b')', b'\\)') + b')'
|
||||
@@ -423,10 +425,12 @@ def footer_commands(text, logo_size=None):
|
||||
width = height * logo_size[0] / logo_size[1]
|
||||
bottom = (float(FOOTER_CM) * PT_PER_CM - height) / 2
|
||||
return (b'q %s 0 0 %s %s %s cm /Logo Do Q\n' % (serialize(width), serialize(height), serialize(x), serialize(bottom))
|
||||
+ b'q 0 g BT /F2 %d Tf %s %s Td %s Tj ET Q\n'
|
||||
% (FOOTER_PT, serialize(x + width + 0.4 * PT_PER_CM), serialize(y), literal(rest)))
|
||||
return (b'q 0 g BT /F1 %d Tf %s %s Td %s Tj /F2 %d Tf %s Tj ET Q\n'
|
||||
% (FOOTER_PT, serialize(x), serialize(y), literal(brand), FOOTER_PT, literal(' · ' + rest if rest else '')))
|
||||
+ b'q 0 g BT /F2 %d Tf %s %s Td %s Tj /F1 %d Tf %s Tj ET Q\n'
|
||||
% (FOOTER_PT, serialize(x + width + 0.4 * PT_PER_CM), serialize(y), literal(rest),
|
||||
FOOTER_PT, literal(mark)))
|
||||
return (b'q 0 g BT /F1 %d Tf %s %s Td %s Tj /F2 %d Tf %s Tj /F1 %d Tf %s Tj ET Q\n'
|
||||
% (FOOTER_PT, serialize(x), serialize(y), literal(brand), FOOTER_PT, literal(' · ' + rest if rest else ''),
|
||||
FOOTER_PT, literal(mark)))
|
||||
|
||||
|
||||
def render(item, files, out, title, footer=None):
|
||||
|
||||
Reference in New Issue
Block a user