Skip to content
Discussion options

You must be logged in to vote

You're right—pdf_backend is not a parameter of PdfPipelineOptions in docling 2.50.0. Instead, backend selection is handled outside of the pipeline options. If you're using the CLI, you can set the backend with the --pdf-backend=pypdfium2 flag.

For Python code, you should specify the backend when creating your PdfFormatOption, like this:

from docling.document_converter import DocumentConverter, PdfFormatOption
from docling.datamodel.pipeline_options import PdfPipelineOptions
from docling.datamodel.base_models import InputFormat
from docling.backends.pdf_backend import PyPdfiumDocumentBackend  # adjust import if needed

pdf_options = PdfPipelineOptions(
    do_code_enrichment=True,
    do_ocr

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Answer selected by enx-github
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant