Skip to content

Out as a Word document or a workbook: pdf-to-word and pdf-to-excel - #112

Merged
tannevaled merged 1 commit into
mainfrom
out-as-a-word-document-or-a-workbook
Oct 12, 2026
Merged

tannevaled merged 1 commit into
mainfrom
out-as-a-word-document-or-a-workbook

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor
covered       88
not covered   26
parity       77.2% (88/114), every claim verified

Claimed through pdfops word and pdfops excel in
go-pdfkit/ops v0.19.0, over
go-ooxml/ooxml v0.3.0 — the fleet's
first OOXML writer — on
opc.Build v0.2.0.

⛔ Again the inference, not a conversion

What comes out is the document, not the pages. The fonts, the margins and
the page breaks are the typesetter's work, and a .docx reproducing them would
be a picture of a PDF rather than something anybody can edit. excel writes
the tables only, one sheet each, because a spreadsheet is a grid of cells and a
document is not.

⛔ And the judge is not our own reader

Where LibreOffice is installed, the writer's own tests ask it. A package
go-ooxml is delighted with can be one Word refuses, and that is a failure
nothing in this repository could see
— this repository asks poppler about
pages, and has no opinion at all about OOXML.

Three things turned out to be invisible to a round trip through our own reader,
because it is more forgiving than the standard: an Override's absolute
PartName, the .rels Default, and xml:space="preserve". The third was
found by a surviving mutation.

🤖 Generated with Claude Code

parity 77.2% (88/114), pasted from the tool's own output.

The same reading as pdf-to-markdown, written by a different writer:
go-ooxml/ooxml v0.3.0, the fleet's first OOXML WRITER, on opc.Build v0.2.0.

So what is claimed is again the inference and not a conversion. What comes out
is the DOCUMENT, not the pages: the fonts, the margins and the page breaks are
the typesetter's work, and a .docx reproducing them would be a picture of a PDF
rather than something anybody can edit. excel writes the tables only, one
sheet each, because a spreadsheet is a grid of cells and a document is not.

AND THE JUDGE IS NOT OUR OWN READER. Where LibreOffice is installed, the
writer's own tests ask it -- a package go-ooxml is delighted with can be one
Word refuses, and that is a failure nothing in this repository could see.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit ead584b into main Oct 12, 2026
9 checks passed
@tannevaled
tannevaled deleted the out-as-a-word-document-or-a-workbook branch October 12, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant