Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Convert PDF to Word using Python and PyMuPDF

There is no such thing as a paragraph, heading, or table in a PDF; there are glyphs, each one drawn at some x and y position on a page, and some rectangles and lines. So every converter from PDF to Word is really a small program for layout analysis: grouping glyphs into lines, deciding which lines are together, and writing the result as styled .docx objects. osFoundry desktop…

Translated from Hindi Read in Hindi

A programmer has recreated the PDF to Word conversion process of the osFoundry desktop app's PDF Editor in about 50 lines of Python code using PyMuPDF and python-docx. The code analyses the layout of a PDF page, grouping glyphs into lines and determining which lines belong together. The test page, a one-page document with a company name, title, introduction lines, and a table, was used to compare the results of the Python code with the app's conversion.

The PDF page consists of 327 glyphs, including 277 non-space characters, and is divided into 16 lines.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

When do you lock the evaluation set?

At Landvex we're about to scale collection and annotation across several document families, mixed image and file inputs. The obvious failure mode is multiplying training material first, then…

  • Lock test set before expanding annotation efforts
  • Lock evaluation aspects like label schema and annotator instructions
  • Maintain strict boundaries to prevent test leakage

Singleton — Design Patterns (GoF + Enterprise) in C#

Lesson 1 of 18 in the free Design Patterns (GoF + Enterprise) in C# course on DevLadder. Ensure a class has one instance with a global access point.

  • Singleton ensures single instance with global access in C#
  • Implement sealed class, private constructor, Lazy<T> for thread safety
  • ASP.NET Core uses services.AddSingleton T for Singleton management

Nous Research unveils Arete-27B, a post-trained Qwen3.8-27B model that reinforces Western values, saying the underlying Chinese model's bias layer is shallow (Nous Research)

We post-trained over Alibaba's Qwen3.8-27B to reinforce Western values on a Chinese-trained model. We call this new model Arete-27B.

  • Nous Research unveils Arete-27B, a post-trained Qwen3.8-27B model
  • Model reinforces Western values, addresses Chinese model bias
  • Evaluation assesses factual recall and framing across 803 prompts

More from Sunday 8 November →