Signal / Spain official gazette | PDF text extraction / Checking extracted PDF text against the original page
An official PDF can look right and still give you wrong text
For a decision that depends on a section heading, the official visible page is the check. Clean output from one page is not proof that the rest of the file is correct.
| What you see | What to do |
|---|---|
| Heading and needed words match | Keep the checked extract for that task |
| Heading or needed words differ | Set the extract aside and use the official page |
- Use this if
You are using text copied or pulled from an official PDF to make a decision, or you maintain a Docling Parse workflow.
- No action if
If the PDF is a scan or your page still disagrees with the extract, do not assume this fix applies. Use the visible original and check the exact line.
Asia/Singapore
No test on scanned pages, no results across a wider set of documents, and no claim this update is installed on your system.
First published
TechnologyOTR Emerging Data
Document checks | Docling Parse | Spanish official gazette
A page can look fine and still give you broken headings
Docling Parse released a spacing fix after maintainers found a problem on one official Spanish PDF. In their test, the fix separated heading numbers from the text. Check the visible page before trusting an extract.
What the sources show
The Docling Parse 7.27.1 source archive appeared on 22 November at 2:35:14pm Singapore time. In the maintainers’ test, page 1 of a Spanish gazette PDF contained 36 instances of the wrong character in version 7.27.0 and none with the fix.
The new connection
A PDF can show a space correctly on screen while its extracted text has a different character in that spot. If you search or copy the extracted text, a broken heading can hide the section you need.
- Open the original PDF
- Compare headings and numbers
- Use only the text that matches
A realistic next move
Before relying on text pulled from an official PDF, open the original page. Compare the section number, heading and nearby words. If they do not match, use the original and test a clean extract separately.
The count applies to one wrong character on one page. No wider accuracy gain, scan-reading result or change to your system was verified.
The connection
The screen and the text file can disagree
Docling Parse 7.27.1 adds a fix for how some PDF fonts turn printed marks into text. The maintainers say their test went from 36 instances of the wrong character to zero on the named page.
- 4 May 2022Spanish gazette PDF published
- 22 Nov 2026Docling Parse 7.27.1 released
- Observed
The maintainers reported 36 instances of U+0840 in version 7.27.0 and zero with the fix. They described those instances as joining heading numbers to their text on page 1.
- The connection
Reading the displayed page and reading the text pulled from that page are different tasks. A person may see a clean heading while a search tool gets its number and title joined together.
- How the effect travels
A PDF can store a printed space using a font code. On the test page, the older parser read that code as the wrong character instead of a wide space, joining the heading number to the text.
- With 7.27.036
- With the fix0
The publisher’s PDF is the same source in both tests. The maintainers compared words pulled from page 1, not two different versions of the gazette.
The decision path
Three checks before using extracted text
- 1. Open the original
Use the issuer’s PDF at the exact page.
- 2. Check the heading
Match the number, title and words your decision depends on.
- 3. Keep the correct version
If your extraction is wrong, use the visible original while you test a replacement.
The source page is from Spain’s official gazette. The check applies to any workflow that relies on an official PDF’s extracted words, not to every PDF.
Optional research / Checks 1–10
What the sources support
- Cost
The check targets possible rework. No savings estimate was made.
- Rollout
No rollout or purchase is required to compare the extract with the original.
- Operations
Check the page before replacing extracted records.
- Who this helps
Use this when a decision depends on the correct heading, reference or section number.
- Business impact
The one-page test did not measure revenue, profit or financial loss.
- Time to check
Measure the time needed to check a sample before planning a whole-archive refresh.
- Original record
Keep the official gazette link and page number with the extracted record.
- Who checks
Ask the person using the passage to confirm the words needed for their decision. The test says nothing about staffing needs.
- Official text
The fix is in the reader software. It does not change the words published by the Spanish gazette.
- What to match
Compare whether each printed section number is separate from its title in the output.
Optional research / Checks 11–20
What would change the reading
- Search check
Test whether your normal search finds the needed number and title together.
- When copies disagree
A page that looks right on screen does not prove the stored extract is right.
- Test limit
The count covers one wrong character on one page. It does not count every kind of error.
- Where to test
Run a retry in an approved test system before replacing any stored extracts.
- Manual check
If you cannot test the update, read the needed passage in the official PDF itself.
- Where it was found
The example comes from Spain. It does not tell us how often the problem occurs elsewhere.
- Keep the version
Record which version made the extract so a later check can repeat the comparison.
- Which text you see
Check if your search tool uses text pulled from fonts or words read from a scanned image.
- When to leave it alone
If the existing extract already matches the heading and words you need, this fix alone is not a reason to rerun it.
- When to check
Compare the page before relying on the extracted passage, not after publishing or making the decision.
Evidence & next review
Read the originals
Release lists the font-map fix; see the release index for archive timing.
Source record
Publisher: Docling maintainers
Original language: English
published date precision: unknown
Reports 36 appearances of the wrong character with 7.27.0 and zero with the fix on page 1.
Source record
Publisher: Docling maintainers
Original language: English
published date precision: unknown
Original PDF dated 4 May 2022; page 1 is the test input, not the fresh development.
Source record
Publisher: Boletín Oficial del Estado
Original language: Spanish
published date precision: unknown
Published 2026-11-22T06:35:14Z
Source archive appeared 22 November at 2:35:14pm SGT; the listed GitHub downloads for Linux and macOS appeared at 2:57:30pm SGT.
Source record
Publisher: Docling maintainers
Original language: English
published date precision: exact
Source publication date 2026-11-22T06:35:14Z
We checked the release, the maintainers’ test and the original source. We did not run a new extraction or test another parser.
Consequences and economics
First-order consequence
The update changes how the parser reads certain font codes.
Second-order consequence
On the tested page, the corrected space separates the heading number from the title in extracted text.
Third-order consequence
A search using that number or heading can be easier to verify if they are separate in the text.
Fourth-order consequence
If a heading is found reliably, a team may avoid repeating a search or reopening the wrong section.
Fifth-order consequence
A team could add a check at key decision points instead of assuming a whole archive is accurate. That is an option, not an observed change.
Observed costs and benefits
Checking one page where a decision depends on a heading can avoid redoing a whole batch. We did not measure staff time or cost. A larger refresh needs its own tests.
Challenge and uncertainty
Disconfirming evidence
If the newer output still differs from the visible page, do not use it for that task. Check a manual copy or another approved method.
Alternative explanation
If you cannot run a test, keep a page link and check the needed words and numbers by eye. This does not require changing your software.
What would confirm it
Compare the same original page with text from the installed version and the candidate version. A match means that the exact section number, heading and words needed for your task are present and in the right order.
What would disprove it
If the same page still has joined headings in your pipeline after a tested update, the fix has not solved your decision problem.
AI powered research