Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Use Python to assemble a two-page, landscape A4 tech-pack PDF from product images and structured data: place a product photo beside a line drawing with numbered callouts on page one, then add a bill of materials, measurement points with tolerances, and revision history on page two. The workflow below is suited to a small team creating a shareable starting document—not a universal or automatically production-ready specification.

What the script creates—and what it does not

The example script described by the DEV Community tutorial uses ReportLab to draw a PDF and Pillow to prepare images. Its inputs are an optional photo.jpg, a lineart.png, and a style.json file containing the product details and tables. The output is a two-page landscape A4 document.

  • Page one: product photo, technical line drawing, and numbered callout pins.
  • Page two: bill of materials (BOM), points of measure with tolerances, and a revision log.
  • Header: fields such as style number, product name, season, revision, date, and page count.

The tutorial reports a 175-line script and a run using Python 3.13.3, ReportLab 4.5.1, Pillow 12.2.0, and PyMuPDF 1.27.2.3. These are the tutorial author’s reported environment details, not a guarantee that those are the latest releases or that the script has been independently tested here. PyMuPDF is used for previewing the generated PDF, not for drawing it.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set up the files and Python environment

Install the libraries

In a project folder, create and activate a virtual environment if you want to keep these dependencies separate from other Python projects. Then install the packages with the tutorial’s command:

#1 Best Overall
Sale
12 Sets Vet Tech Week Gifts Bulk Notebooks with Sticky Notes and Pens
  • Bulk Vet Tech Appreciation Gifts: celebrate Vet Tech professionals with a thoughtful gift set comprising 12 Vet Tech theme spiral notebooks and 12 ballpoint pens; Ideal for acknowledging nursing students, coworkers, and medical staff during Veterinary Receptionist Week or any occasion
  • Inspirational Designs: featuring distinctive Vet Tech-themed designs with stethoscope graphics, these notebooks and pens offer motivational messages to uplift spirits while adding a splash of inspiration to daily routines
  • Portable and Compact: vet Tech notebooks bulk are properly sized at about 4.09 x 5.31 inches, making them a functional yet compact choice to tuck into your bag, backpack or desk drawer; The accompanying ballpoint pen, measuring approx. 5.51 x 0.43 inches/ 14 x 1.1 cm, complements the notebook size, contributing to a flawless writing and note taking experience
  • Durable Craftsmanship: enjoy quality craftsmanship with kraft paper covers ensuring notebook longevity and sturdy plastic pens providing a smooth writing experience; Built for comfort and extended use, they are reliable companions
  • Versatile Use: ideal for various settings, from hospital meetings to seminars or personal journaling; This Veterinary Appreciation Gifts set enhances note-taking experiences and is perfect for creative writing, documentation, or simply capturing inspiration
pip install reportlab pillow pymupdf

ReportLab provides a PDF canvas for drawing text, shapes, and images; Pillow handles image preparation. PyMuPDF is needed only if you follow the tutorial’s PDF preview step. See the ReportLab documentation and its User Guide for the documented drawing methods.

Organize the inputs

Keep the source files together so the script can load them by filename. The tutorial’s example uses:

Rank #2
48 Pcs Vet Tech Week Appreciation Gifts Dog Paw Spiral Notebooks Pens Bulk
  • Complete Vet Tech Gift Set Bulk (48 Pcs): includes 24 veterinary themed spiral notebooks (6 designs) and 24 individually wrapped ballpoint pens, making it the ideal vet tech week gifts bulk for appreciation events and team giveaways
  • Unique Notebook with Sticky Notes Design: each spiral notebook with sticky notes features adhesive memo pads inside the first page, allowing you to take notes and mark key points easily—ideal for vet tech week gifts, office supplies, study notes, and daily planning
  • Cute Paw Print Veterinary Theme: designed with adorable paw print covers, these vet tech week gifts are ideal for vet techs, veterinarians, assistants, receptionists, and animal lovers, adding a fun and meaningful touch
  • Practical Versatile Office Supplies: these vet tech week appreciation gifts are ideal for writing, journaling, scheduling, and organizing tasks; Ideal for use in veterinary clinics, schools, offices, and hospitals
  • Ideal Appreciation Holiday Gift Idea: a thoughtful choice for veterinary technician week, graduation, birthdays, Thanksgiving, Christmas, and thank you gifts; These bulk appreciation gifts are ideal for coworkers, students, and staff
tech-pack-project/
├── photo.jpg       # optional product photo
├── lineart.png     # technical line drawing
├── style.json      # fields, callouts, BOM, measurements, revisions
└── tech_pack.py    # PDF-generation script

Use a clear, legible technical drawing and a photo that shows the product in a useful view. Keep callout numbers in the drawing aligned with the matching written entries in the JSON: an incorrect or missing match makes the document ambiguous.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Structure the product data in JSON

The JSON file separates content from layout. Put the values your team needs in the header, callouts, BOM, measurement points, and revision history. The exact keys depend on the script you use; the following is a conceptual outline, not a copy-paste schema guaranteed to work with every implementation:

Rank #3
Resurhang 18 Pcs Xray Tech Week Gifts Set Christmas Technologist Gifts
  • Radiology Tech Gifts Set: you will receive 9 X-ray themed notebooks and 9 bone-shaped pens, it is an ideal appreciation gift set for radiology tech nurse and doctor, providing a stylish and functional combination of office supplies tailored specifically for radiology workers
  • Notebook Size: the size of this X-ray themed notebook journal is approx. 5.5 x 8.3 inches/ 14 x 21 cm, each notebook has 30 blank pages for you to record, which is very convenient to carry with you when travelling or on vacation, and it does not take up space
  • Reliable Material: this radiology tech gift notebook is made of quality paper, which is not only convenient for writing, but also has X-ray patterns and funny words printed on the cover; Match with smooth-writing ballpoint pens, ensuring that radiology tech nurses or doctors can easily document their thoughts and experiences
  • Thoughtful Appreciation Gift Choice: this radiology tech appreciation gift set of notebooks and ballpoint pens is exclusively for radiology tech, it is more practical and is an essential tool for work and study; Show your gratitude to radiology techs, nurses, and doctors with this gift set, designed to celebrate their hard work and dedication in the medical field
  • Ideal for Various Occasions: this novelty X-ray tech gift set is perfect for radiology staff and is a special gift to express appreciation; You can also give it on birthdays, Nurses Week, Radiology Tech Week, Thanksgiving, Christmas, New Year's Day, or any celebration.
{
  "style_number": "EXAMPLE-001",
  "name": "Hypothetical product",
  "season": "Example season",
  "revision": "A",
  "date": "2026-10-10",
  "callouts": [],
  "bom": [],
  "measurements": [],
  "revisions": []
}

Replace example labels with the field names expected by your script and the terms used by your manufacturer. The drill used in the tutorial is explicitly hypothetical; its materials and dimensions are placeholders, not validated product specifications. Do not copy them into a real production pack without confirming the actual design and requirements.

Build the two-page layout

Page one: connect the picture to the specification

Draw the header first, then place the product photo and technical flat side by side. Add numbered pins to relevant features in the line drawing and list the corresponding callout descriptions in a readable area. The number on the drawing and the written explanation should be a one-to-one match. Check that labels do not cover important edges or overlap one another when the drawing is scaled to fit the page.

Rank #4
Eaasty 15 Set Vet Tech Appreciation Gift Bulk Dog Spiral Notebooks Paw Pens
  • Veterinary Technician Gift Set: our veterinary technician gift set includes 15 adorable dog thank you spiral notebooks and 15 dog paw veterinary ballpoint pens in four different designs; The wide selection and ample quantity are sure to meet your needs for various veterinary themed events
  • Adorable Dog Paw Design: this veterinary technician gift set features brown spiral notebooks and pens with a puppy and paw design; The brown dog spiral notebooks have the inspirational quote [Nothing but thanks] on the cover; The veterinary ballpoint pens are printed with adorable dog paw and four different inspirational quotes on the pen body, using black ink; They not only satisfy most people's aesthetic needs but also express your gratitude to veterinarians
  • Suitable Size: these adorable and exquisite veterinary spiral notebooks measure 4 x 6 inches / 10 x 14 cm, each with 100 pages / 50 lined sheets providing convenient for recording anytime, making them very practical; The dog paw pens are approximately 5.51 cm / 14 cm long, making them easy to carry in pockets and backpacks for writing
  • Reliable Writing Tools: the veterinary ballpoint pen and dog spiral notebook are thoughtfully designed for durability; The thick paper and ample pages, along with the ample ink capacity of the ballpoint pen, provide clear, professional writing; Lightweight and comfortable to hold, they're suitable for a variety of writing tasks in a medical or pharmacy setting
  • Wide Applications: our veterinary week gifts are suitable for veterinarians, animal lovers, veterinary assistants, social workers, and aspiring veterinarians; They're widely applied for end of year, Vet Tech Week, Veterinary Week, veterinary school, birthdays, Thanksgiving, Christmas, appreciation gifts, and many other occasions

ReportLab’s User Guide identifies drawImage as its preferred method for placing images on a PDF canvas and documents caching behavior when an image is reused. The script can use that method to place the photo and drawing, while text and callout shapes are drawn on the same canvas.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Page two: make materials, measurements, and changes legible

Lay out the BOM with the information needed to identify each material or component. Present each measurement point alongside its target value and tolerance, and identify the unit. Keep the revision log in a table or other compact structure that records what changed and which revision it belongs to. A generated page is only useful if the content remains readable at ordinary viewing and print sizes.

Best Value
Sale
Vesici Notebooks with Sticky Notes and Pens, 12 Sets, Surgical Tech
  • Bulk Surgical Tech Appreciation Gifts: celebrate Surgical Tech professionals with a thoughtful gift set comprising 12 Surgical Tech theme spiral notebooks and 12 ballpoint pens; Perfect for acknowledging nursing students, coworkers, and medical staff during Surgical Tech or any occasion
  • Inspirational Designs: featuring distinctive Surgical Tech-themed designs with stethoscope graphics, these notebooks and pens offer motivational messages to uplift spirits while adding a splash of inspiration to daily routines
  • Portable and Compact: Surgical Tech notebooks bulk are properly sized at about 4.09 x 5.31 inches, making them a functional yet compact choice to tuck into your bag, backpack or desk drawer; The accompanying ballpoint pen, measuring approx. 5.51 x 0.43 inches/ 14 x 1.1 cm, complements the notebook size, contributing to a flawless writing and note taking experience
  • Durable Craftsmanship: enjoy quality craftsmanship with kraft paper covers ensuring notebook longevity and sturdy plastic pens providing a smooth writing experience; Built for comfort and extended use, they are reliable companions
  • Versatile Use: ideal for various settings, from hospital meetings to seminars or personal journaling; This Surgical Tech gift set enhances note-taking experiences and is perfect for creative writing, documentation, or simply capturing inspiration

Prepare images before placement

The tutorial’s image-preparation approach crops excess white margins from the line drawing, converts it to a compact 1-bit image, and preserves the product photo as JPEG bytes. This can make assets easier to place and may affect output size, but the reported file-size reduction applies only to that tutorial’s example; it is not a guaranteed reduction for other images or documents. Keep original source artwork so you can revise the pack without losing detail.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Decide whether the pack is complete enough for its purpose

This workflow covers a useful subset of common tech-pack information, not every section every product or supplier needs. Techpacker’s guide notes that pack contents depend on the product and design. Its overview includes style information, technical flats, BOM, measurements and grading, construction notes, cost sheet, and revision history. The tutorial’s generated example includes style information, one drawing with callouts, a BOM, measurements for one size with tolerances, and revision history; it does not provide a grading chart or cost sheet.

Other references point to additional possible sections. A fashion tech-pack schema repository describes areas such as colorways, construction, sample stages, care instructions, labeling, and packaging. Shopify’s tech-pack guide also discusses technical drawings, materials, measurements, construction, and revision tracking. Treat these as prompts for adapting the document, not as a single mandatory checklist.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Ask the manufacturer what file format, views, units, tolerances, and specification fields it expects.
  • Add grading information when the product is made in multiple sizes; a one-size measurement table is not a graded specification.
  • Include construction, colorway, labeling, care, packaging, costing, or sample-stage details when they are relevant to the product and the recipient’s workflow.
  • Confirm that all values, drawing references, and revision entries reflect the actual design before sharing the PDF as a specification.

Preview and validate the generated PDF

Open the output PDF and inspect both pages at full size and at typical screen or print scale. Check that the page orientation and page count are right; images are not clipped or distorted; callout pins and explanations match; table text is readable; measurement units and tolerances are present; and the revision shown in the header agrees with the log. If you use PyMuPDF as in the tutorial, use it to render pages for a quick visual preview, then still inspect the PDF itself.

ReportLab’s official documentation covers image placement and PDF drawing, but the presence of a valid PDF file does not verify the correctness of its specifications. Content accuracy and supplier acceptance depend on the data you provide and the recipient’s requirements.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.