# CAD PDF Drawing Model

**URL:** <https://discuss.huggingface.co/t/cad-pdf-drawing-model/136839>\
**Category:** Beginners\
**Created:** [January 22, 2025, 9:18am UTC](https://discuss.huggingface.co/t/cad-pdf-drawing-model/136839 "2025-01-22T09:18:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RameshAnbalagan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rameshanbalagan/32/39599_2.png) [@RameshAnbalagan](https://discuss.huggingface.co/u/RameshAnbalagan)\
**Post date:** [January 22, 2025, 9:18am UTC](https://discuss.huggingface.co/t/cad-pdf-drawing-model/136839/1 "2025-01-22T09:18:37Z")

</div>

Hi All, Which model can read CAD PDF Drawing documents.

---

<div class="post-metadata">

**Author:** ![Alanturner2](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/alanturner2/32/37542_2.png) [@Alanturner2](https://discuss.huggingface.co/u/Alanturner2)\
**Post date:** [January 22, 2025, 1:37pm UTC](https://discuss.huggingface.co/t/cad-pdf-drawing-model/136839/2 "2025-01-22T13:37:41Z")

</div>

Hi @RameshAnbalagan !

Reading CAD PDF drawing documents can be tricky because they often contain a mix of text, vector graphics, and images. Depending on your goal, here are some options:

### 1. **Extract Text (OCR)**

If you want to extract text from the PDF (like dimensions or annotations), you can use OCR models:

- **Tesseract OCR** : A free, open-source option for recognizing text in PDFs.
- **Azure Form Recognizer or Google Cloud Vision** : More advanced cloud-based options for structured text extraction.

### 2. **Understand Vector Graphics**

To process the vector graphics or drawings themselves, try:

- **DeepCAD** : A deep learning model designed for CAD drawings.
- **SVG or DXF Parsing Libraries** : Convert PDF to DXF or SVG format and analyze them using CAD-specific libraries like `ezdxf` or `svgpathtools`.

### 3. **Hybrid Models for PDF Analysis**

For a combination of text and image understanding:

- **LayoutLMv2 or LayoutLMv3 (Hugging Face)**: Specialized for document layouts, including text and images.  
Hope this help! 😊
