---
title: "Discussion on \"Docling Gives Every PDF Heading Level 1. One Flag Fixes It.\" | Hashnode"
description: "Discussion on \"Docling Gives Every PDF Heading Level 1. One Flag Fixes It.\". Docling gives every PDF heading level 1 by default. Enable HeadingHierarchyOptions with generate_parsed_pages to nest them. Before/after chunks included."
url: "https://hashnode.com/posts/docling-flattens-your-pdf-headings-here-is-why-and-how-to-fix-it/6a9f522476a5c019425989c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Docling Gives Every PDF Heading Level 1. One Flag Fixes It.](https://lijibuilds.hashnode.dev/docling-flattens-your-pdf-headings-here-is-why-and-how-to-fix-it?utm_source=hashnode&utm_medium=feed)

Docling gives every PDF heading level 1 by default. Enable HeadingHierarchyOptions with generate\_parsed\_pages to nest them. Before/after chunks included.

Sep 8 · 12 min read · lijibuilds.hashnode.dev  
Read the article

-   [#docling](https://hashnode.com/tag/docling)
-   [#rag](https://hashnode.com/tag/rag)
-   [#pdf](https://hashnode.com/tag/pdf)
-   [#chunking](https://hashnode.com/tag/chunking)
-   [#document-parsing](https://hashnode.com/tag/document-parsing)

## Written by

[Liji Alex](https://hashnode.com/@lijia)

@lijia · Hyderabad, India

  
[View profile](https://hashnode.com/@lijia)

Engineering AI Systems

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
