import os from weasyprint import HTML # Create HTML content for the eBay Listing Document html_content = """ eBay Listing Description: SONY MDS-JE640

eBay Listing Copy: SONY MDS-JE640

Recommended Title Options

Option 1 (74 chars):
SONY MDS-JE640 MD Minidisc Deck Gold Tested Working New Belt Main Unit Only
Option 2 (79 chars):
Sony MDS-JE640 Minidisc Recorder Player Gold Tested Work New Drive Belt Japan

Description

Up for sale is a SONY MDS-JE640 Minidisc Deck. The unit is in used condition with some signs of wear. Please review the attached photos for the exact cosmetic condition.

Condition & Functionality

  • Playback & Recording: Tested and verified working.
  • Maintenance: The drive belt has been replaced with a new one.
  • Operation: Tested via the main front panel controls only.
  • Remote Control: Not included.

Specifications

  • Model: MDS-JE640
  • Power Supply: AC 100V, 9W, 50/60Hz (Japan domestic market spec)
  • Serial Number: 2200601
  • Country of Manufacture: Made in Malaysia

Terminals

  • Analog: Input (L/R), Output (L/R)
  • Digital: Optical Input 1, Optical Input 2, Optical Output

Included Items

  • SONY MDS-JE640 Main Unit
  • 1 x Minidisc (Recorded directly using this unit for verification purposes)
  • *Note: Remote control, original box, manual, and other cables/accessories are NOT included.

Voltage Notice

This is a 100V Japanese model. Depending on your country's voltage (e.g., US 120V, Europe 230V), you may need a proper step-down voltage transformer to use this device safely and correctly.

""" # Output PDF file path output_pdf_path = "ebay_listing_mds_je640.pdf" # Generate PDF using WeasyPrint HTML(string=html_content).write_pdf(output_pdf_path) print(f"PDF generated successfully: {output_pdf_path}")