Printing Barcodes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have gone through quite a few of the issues listed in this repo and I know this is a frequent question that keeps coming up. However, there doesn't seem to be an accepted practise while printing the generated barcodes onto a barcode label.
I am using a TSC TTP-244 Pro printer (link) with a barcode label size of 2 x 4 inches (height is 2 inches and width is 4 inches).
I am struggling to figure out how to format the barcode size and my HTML correctly to get the labels to print correctly. What is currently happening is that the barcodes cross the label boundaries. I've attached an image exhibiting the problem.
What I am looking for is to understand what the accepted practise of trying to get this to work is.
Is it to:
- Create a PDF of the barcodes using a library like jsPDF with each individual barcode added as an image of 2 x 4 in?
- Create HTML using SVG and render the barcodes and format the HTML using CSS somehow to get the barcodes to print correctly?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file, test, or entry point is identified. First clarify whether the project should document printing guidance for the TSC TTP-244 Pro and 2 x 4 inch labels, then compare the proposed jsPDF and SVG/CSS approaches. Done would require an agreed, reproducible recommendation for keeping generated barcodes within label boundaries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100