-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printing multiple labels #23
Comments
Can you please point to that part of documentation and also clarify what you mean? What format (Python object) do you have your table in? There are examples in https://github.com/Edinburgh-Genome-Foundry/blabel/tree/master/examples for printing several items per page, reading from spreadsheet etc |
Hello, The documentation shows how to print two labels on one PDF as follows: `from blabel import LabelWriter label_writer = LabelWriter("item_template.html", label_writer.write_labels(records, target='qrcode_and_label.pdf')` My requirements are:
|
I see the problem now. The package is designed around a fixed PDF page or label size as that's how label printers (or printers in general) operate. But you have variable number of items, which means different PDF sizes. As I mentioned, it's possible to print several items per page, or see this example: #6 And here is an example for working from tables (spreadsheet / dataframe): https://github.com/Edinburgh-Genome-Foundry/blabel/tree/c95052f562af44ef47e2ec5b220ffbb3b721659b/examples/labels_from_spreadsheet Alternatively you can work directly with WeasyPrint or PDF Reports. |
The printing from table/label is closest to what I need, so maybe I can use that. Thank you. |
I see in the documentation that it is possible to print two labels sequentially by using two separate dicts.
If I have x number of records in a table and want to loop through them, is it possible to print them on one PDF?
The text was updated successfully, but these errors were encountered: