Extracting Products (with Images) from Varied PDF Catalogs - Struggling with Accurate Mapping in JSON

Hi everyone,

I’m working on a project that involves extracting products from multiple supplier product catalogs provided in PDF format. My end goal is to extract each product’s information—including images, description, title, SKU, etc.—from these PDFs and store them in my database as structured JSON objects.

Here’s the main challenge:

  • The extraction of text and images from the PDFs works using libraries like docling and pymupdf.
  • However, the mapping is inconsistent—the image, description, and SKU fields in my JSON output don’t always correspond to the correct product, especially since the PDFs have very different structures (some are tables, others have custom/random layouts).
  • I’ve also tried third-party tools and APIs/SDKs (like Apryse), but I’m still facing problems reliably associating each image with its respective product information.

Has anyone successfully tackled this kind of extraction and mapping task? If so, I’d love to hear about your approach or see code/tool recommendations. I’m also happy to share a sample PDF if that helps!

Any advice, pointers to relevant libraries, or workflow suggestions would be much appreciated! Thank you!

https://preview.redd.it/7oh79vp4mcgf1.png?width=805&format=png&auto=webp&s=8ce450c0a9c4dbc8b2dd4e7d8efc350dd2f60747

Posted Aug 1, 2025, 6:02 AM UTC

313
Loading comments…