Urgent.News

What's breaking now, across thousands of outlets.

Tech

A .docx does not store where its pages end

Someone handed me a Word proposal last week and asked whether converting it to HTML would look exactly like Word. I said no. They thought I was dodging. All I had at the time was "the formats are different," which explains nothing, so I sat down and built a sample to measure what actually changes. I hand-wrote the OOXML instead of using a template: A4 page setup, six hard page breaks, one 36-row…

A .docx file does not store information about where its pages end. When converting a .docx file to HTML, the resulting HTML file is completely different from the original, with varying page numbers and layout issues. The HTML conversion process does not use the Word baseline for measurement; it relies on the reader's machine to compute final layout, which can lead to discrepancies when the file is opened on different computers.

This is due to differences in font availability and printer metrics. Three key differences are observed: the page numbers, the table layout, and the WordArt title rendering. These issues highlight the fundamental differences between fixed-layout formats like PPTX and reflowable formats like DOCX, with the latter requiring the layout to be recomputed based on the reader's machine metrics each time.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I got tired of building the same backend twice, so I built a tool that generates it for me

Every time I shipped a product that needed both a mobile app and a web app, I ended up doing the same thing: build the backend, build the Flutter app on top of it, then build a whole separate Next.js…

  • Founder creates Underpeaks to automate backend generation
  • Tool defines data model once, generates Flutter, Next.js, REST API, admin dashboard
  • Five database adapters included, free and open source core

Kubernetes Architecture

🚀 Kubernetes Architecture Explained Before diving into Kubernetes architecture, let's first understand why Kubernetes is preferred for running containerized applications in production environments.

  • Kubernetes simplifies managing containerized apps in production
  • Control Plane includes API Server, Scheduler, etcd, and Controller Manager
  • Worker Nodes run application workloads on Pods

More from Thursday 24 September →