Skip to content

Python Blabel generate broken PDF file #10

@dsztandarski

Description

@dsztandarski

I am writing a program to handle label printing on a thermal transfer printer. I have a problem with corrupted PDF files after generating them with blabel. For example, if I generate a label with the serial number VWAB123456, everything is fine, but in the case of the serial number VWAC123456 a corrupt PDF file is generated.

Damaged PDF after printing with Sumatra PDF looks fine, but bold font disappears and the font type changes. It looks like CSS is not being used at all at the moment. Adobe Reader error below:
Broken PDF
Damagen PDF Image

Label without bold (broken PDF file)
Label without bold

Label with bold (fine PDF)
Label with bold

Python code:
Python code

HTML code:
HTML code

CSS sheet:
CSS sheet

Can anyone help me with this problem?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions