Gami Package Unit Catalogue Pdf Apr 2026
# Add product image if exists if os.path.exists(unit["image_path"]): try: # Auto-fit image to max width 80, max height 60 self.image(unit["image_path"], x=130, y=30, w=60) except: pass
if == " main ": # Sample data (replace with your DB/API) sample_units = [ { "model": "GAMI-PAC-18", "capacity_btu": 18000, "cooling_kw": 5.3, "heating_type": "Electric", "efficiency_seer": 15.0, "voltage": "208-230/1/60", "weight_lbs": 150, "dimensions_in": "30x22x34", "image_path": "images/pac18.jpg", "features": ["Compact size", "Low maintenance", "Corrosion coating"] }, { "model": "GAMI-PAC-36", "capacity_btu": 36000, "cooling_kw": 10.6, "heating_type": "Heat Pump", "efficiency_seer": 18.0, "voltage": "460/3/60", "weight_lbs": 220, "dimensions_in": "38x28x42", "image_path": "images/pac36.jpg", "features": ["Inverter compressor", "Wi-Fi ready", "Quiet operation"] } ] gami package unit catalogue pdf
def footer(self): self.set_y(-15) self.set_font("Arial", "I", 8) self.cell(0, 10, f"Page {self.page_no()}", 0, 0, "C") # Add product image if exists if os
def generate_catalogue(self, units, output_file="gami_catalogue.pdf"): self.add_cover() for unit in units: self.add_product_page(unit) self.output(output_file) print(f"Catalogue saved as {output_file}") def load_units_from_json(json_file): with open(json_file, "r") as f: data = json.load(f) return data["units"] max height 60 self.image(unit["image_path"]