History log of /plugin/totext/ (Results 1 – 16 of 16)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
00f006a015-Jul-2026 Andreas Gohr <andi@splitbrain.org>

Version upped

c876c28815-Jul-2026 Andreas Gohr <gohr@cosmocode.de>

updated pdfparser

9cdb356d14-Jul-2026 Andreas Gohr <andi@splitbrain.org>

Version upped

fd4f7c4706-Jul-2026 Andreas Gohr <gohr@cosmocode.de>

Track the cosmocode prinsfrank/pdfparser dev fork

The dev fork adds native UTF-16BE Info-string decoding and Form-XObject
text extraction. Point composer at the fork's VCS repo, pin dev-dev, and
dro

Track the cosmocode prinsfrank/pdfparser dev fork

The dev fork adds native UTF-16BE Info-string decoding and Form-XObject
text extraction. Point composer at the fork's VCS repo, pin dev-dev, and
drop the now-redundant normalizePdfString() UTF-16BE shim (metadata values
just get trimmed). Refresh AGENTS.md accordingly.

show more ...


AGENTS.md
Extractor/PdfExtractor.php
composer.json
composer.lock
vendor/composer/installed.json
vendor/composer/installed.php
vendor/prinsfrank/pdfparser/composer.json
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/TextShowingOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/ContentStream.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/ContentStreamScope.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/GraphicsState.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/BaselineClusterStrategy.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/Block.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/Line.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/LineGroupingStrategy.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/MatrixOffsetSpacing.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/StrictLineGrouping.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/TextOverlapStrategy.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/PositionedTextElement.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/TextSegment/TextSegment.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/TextState.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/TransformationMatrix.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/Vector.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/CrossReferenceSourceParser.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/RawStream/ObjectPositionsFromRawStreamParser.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/CrossReferenceSource.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/RecoveredCrossReferenceSource.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/CrossReferenceSection.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/SubSection/CrossReferenceSubSection.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/CIDFontWidths.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Date/DateValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/TextString/TextStringValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/ResourceDictionaryChain.php
vendor/prinsfrank/pdfparser/src/Document/Document.php
vendor/prinsfrank/pdfparser/src/Document/Encoding/PDFDocEncoding.php
vendor/prinsfrank/pdfparser/src/Document/Font/FontWidths.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Character/LiteralStringEscapeCharacter.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Font.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Page.php
0fbee18922-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Return body text and metadata from a single extraction

Every extractor now returns an ExtractionResult (body text plus a
normalised metadata map) from one parse of the file, instead of just a
text s

Return body text and metadata from a single extraction

Every extractor now returns an ExtractionResult (body text plus a
normalised metadata map) from one parse of the file, instead of just a
text string. Metadata keys are a single canonical vocabulary shared
across all formats - Title, Author, Subject, Keywords, Description,
Created, Modified, Language, Producer, plus Copyright (image-only) - so
consumers never have to special-case the source format.

- ExtractionResult: final readonly value object carrying $text,
$metadata and a per-half ?Throwable $textError / $metadataError (with
isComplete()). Text and metadata are extracted independently: an
extractor throws only at its total-failure gate (container won't unzip,
PDF won't parse, file unreadable) and otherwise records a failed half's
error while still returning the salvaged half.

- OOXML/ODF metadata: new AbstractOoxmlExtractor and AbstractOdfExtractor
intermediaries declare each family's source map once (docProps/core.xml
+ app.xml; meta.xml); the concrete extractors only switch their extends
clause. AbstractZipXmlExtractor gains a generic mapMetadataFromXml()
walker.

- PDF: reads the Info dictionary (Title/Author/Subject/Keywords/Created/
Modified/Producer-else-Creator) alongside the body text from the same
parse. normalizePdfString() is a temporary shim for UTF-16BE literal
strings that prinsfrank <= v3.1.0 returns mojibake-expanded.

- Images: now metadata-only (text is ''); field-map keys renamed to the
canonical vocabulary (Caption->Description, Date->Created,
Camera->Producer).

- helper: extract() and extractMetadata() added; extractText() keeps its
string return and its throw-on-failure contract (rethrows textError),
so the docsearch plugin keeps working unchanged.

- cli: prints body text followed by metadata by default; --text/-t and
--meta/-m restrict to one. A salvaged-but-partial extraction warns on
STDERR and exits 0; nothing usable exits non-zero.

- ExtractionException::wrap() centralises wrapping a caught error as an
ExtractionException (passing one through if it already is).

Tests assert the real Tika samples' embedded metadata and the
partial-failure paths. The pre-existing PDF body-text Form-XObject
failure is unchanged.

show more ...

b4ecfc8222-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Replace smalot/pdfparser with prinsfrank/pdfparser

Switch the PDF extractor from the cosmocode/pdfparser memory fork
(an LGPL smalot/pdfparser fork) to prinsfrank/pdfparser (MIT, built
from scratch,

Replace smalot/pdfparser with prinsfrank/pdfparser

Switch the PDF extractor from the cosmocode/pdfparser memory fork
(an LGPL smalot/pdfparser fork) to prinsfrank/pdfparser (MIT, built
from scratch, zero PHP dependencies beyond prinsfrank/glyph-lists).

PdfExtractor now calls parseFile($path)->getText() in the default
in-memory mode, which benchmarked both faster and far lighter than the
old fork (on a 12 MB/92-page file: 63s/49.5MB vs 68s/100MB), so the
previous setRetainImageContent() tuning is no longer needed.

Known limitation: prinsfrank/pdfparser <= v3.1.0 does not extract text
inside Form XObjects (page content painted with the Do operator, common
in Quartz/Firefox/Chrome PDFs such as the Tika sample), so
PdfExtractorTest::testExtractsText fails against stock v3.1.0.

show more ...


AGENTS.md
Extractor/PdfExtractor.php
composer.json
composer.lock
vendor/composer/autoload_namespaces.php
vendor/composer/autoload_psr4.php
vendor/composer/autoload_real.php
vendor/composer/autoload_static.php
vendor/composer/installed.json
vendor/composer/installed.php
vendor/prinsfrank/glyph-lists/LICENSE
vendor/prinsfrank/glyph-lists/LICENSE-BSD-3-CLAUSE
vendor/prinsfrank/glyph-lists/README.md
vendor/prinsfrank/glyph-lists/composer.json
vendor/prinsfrank/glyph-lists/src/AGlyphList.php
vendor/prinsfrank/pdfparser/.al-custom.php
vendor/prinsfrank/pdfparser/LICENSE
vendor/prinsfrank/pdfparser/README.md
vendor/prinsfrank/pdfparser/SECURITY.md
vendor/prinsfrank/pdfparser/UPGRADING.md
vendor/prinsfrank/pdfparser/composer.json
vendor/prinsfrank/pdfparser/docs/14.3-associated-files.md
vendor/prinsfrank/pdfparser/docs/7.11-file-specifications.md
vendor/prinsfrank/pdfparser/docs/images/banner_dark.png
vendor/prinsfrank/pdfparser/docs/images/banner_light.png
vendor/prinsfrank/pdfparser/src/Document/CMap/Registry/Adobe/Identity0.php
vendor/prinsfrank/pdfparser/src/Document/CMap/Registry/CMapResource.php
vendor/prinsfrank/pdfparser/src/Document/CMap/Registry/RegistryOrchestrator.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/BFChar.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/BFRange.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/CodePoint.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/CodeSpaceRange.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/ToUnicodeCMap.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/ToUnicodeCMapOperator.php
vendor/prinsfrank/pdfparser/src/Document/CMap/ToUnicode/ToUnicodeCMapParser.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/ContentStreamCommand.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/Object/CompatibilityOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/Object/InlineImageOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/Object/MarkedContentOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/Object/TextObjectOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/ClippingPathOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/ColorOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/GraphicsStateOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/Interaction/InteractsWithTextState.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/Interaction/InteractsWithTransformationMatrix.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/Interaction/ProducesPositionedTextElements.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/PathConstructionOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/PathPaintingOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/TextPositioningOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/TextShowingOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/TextStateOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/Type3FontOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Command/Operator/State/XObjectOperator.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/ContentStream.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/ContentStreamParser.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/Object/TextObject.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/LineGroupingStrategy.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/StrictLineGrouping.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/LineGroupingStrategy/TextOverlapStrategy.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/PositionedTextElement.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/TextState.php
vendor/prinsfrank/pdfparser/src/Document/ContentStream/PositionedText/TransformationMatrix.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/CrossReferenceSourceParser.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/CrossReferenceType.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/CrossReferenceSource.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/CrossReferenceSection.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/SubSection/CrossReferenceSubSection.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/SubSection/Entry/CrossReferenceEntryCompressed.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/SubSection/Entry/CrossReferenceEntryFreeObject.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Source/Section/SubSection/Entry/CrossReferenceEntryInUseObject.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Stream/CrossReferenceStreamParser.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Stream/CrossReferenceStreamType.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Table/CrossReferenceTableInUseOrFree.php
vendor/prinsfrank/pdfparser/src/Document/CrossReference/Table/CrossReferenceTableParser.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/Dictionary.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryEntry/DictionaryEntry.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryEntry/DictionaryEntryFactory.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryFactory.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryKey/DictionaryKey.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryKey/DictionaryKeyInterface.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryKey/ExtendedDictionaryKey.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryParseContext/DictionaryParseContext.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryParseContext/NestingContext.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryParser.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/ArrayValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/CIDFontWidths.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/CrossReferenceStreamByteSizes.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/DictionaryArrayValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/DifferencesArrayValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/Item/ConsecutiveCIDWidth.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/Item/DifferenceRange.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Array/Item/RangeCIDWidth.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Boolean/BooleanValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Date/DateValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/DictionaryValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Float/FloatValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Integer/IntegerValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/AuthEventNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/BlendModeNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/BorderStyleNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/CFMNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/CIEColorSpaceNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/DeviceColorSpaceNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/DirectionNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/EncodingNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/EventNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/FilterNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/IntentNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/ListModeNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/NameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/NonFullScreenPageModeNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/NumberingStyleNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/PageLayoutNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/PageModeNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/PaperHandlingNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/RenderingIntentNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/SecurityHandlerNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/SpecialColorSpaceNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/SubtypeNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/TabsNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/ToUnicodeCMapNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/TransitionStyleNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/TrappedNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/TypeNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/ViewNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Name/VisibilityPolicyNameValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Rectangle/Rectangle.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Reference/ReferenceValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/Reference/ReferenceValueArray.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/DictionaryValue/TextString/TextStringValue.php
vendor/prinsfrank/pdfparser/src/Document/Dictionary/Normalization/NameValueNormalizer.php
vendor/prinsfrank/pdfparser/src/Document/Document.php
vendor/prinsfrank/pdfparser/src/Document/Encoding/Encoding.php
vendor/prinsfrank/pdfparser/src/Document/Encoding/MacRoman.php
vendor/prinsfrank/pdfparser/src/Document/Encoding/WinAnsi.php
vendor/prinsfrank/pdfparser/src/Document/Encryption/RC4.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/ASCII85Decode.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/ASCIIHexDecode.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/CCITTFaxDecode.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/FlateDecode.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/LZWFlatePredictorValue.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/PNGPredictorAlgorithm.php
vendor/prinsfrank/pdfparser/src/Document/Filter/Decode/TiffTag.php
vendor/prinsfrank/pdfparser/src/Document/Font/FontWidths.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Character/DelimiterCharacter.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Character/LiteralStringEscapeCharacter.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Character/WhitespaceCharacter.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Marker.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Parsing/InfiniteBuffer.php
vendor/prinsfrank/pdfparser/src/Document/Generic/Parsing/RollingCharBuffer.php
vendor/prinsfrank/pdfparser/src/Document/Image/ColorSpace/ColorSpace.php
vendor/prinsfrank/pdfparser/src/Document/Image/ColorSpace/ColorSpaceFactory.php
vendor/prinsfrank/pdfparser/src/Document/Image/ColorSpace/Components.php
vendor/prinsfrank/pdfparser/src/Document/Image/ImageType.php
vendor/prinsfrank/pdfparser/src/Document/Image/RasterizedImage.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Catalog.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/DecoratedObject.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/DecoratedObjectFactory.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/EmbeddedFile.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/EncryptDictionary.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/FileSpecification.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Font.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/GenericObject.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/InformationDictionary.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Page.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/Pages.php
vendor/prinsfrank/pdfparser/src/Document/Object/Decorator/XObject.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/CompressedObject/CompressedObject.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/CompressedObject/CompressedObjectByteOffsetParser.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/CompressedObject/CompressedObjectByteOffsets.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/CompressedObject/CompressedObjectContent/CompressedObjectContentParser.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/ObjectItem.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/UncompressedObject/UncompressedObject.php
vendor/prinsfrank/pdfparser/src/Document/Object/Item/UncompressedObject/UncompressedObjectParser.php
vendor/prinsfrank/pdfparser/src/Document/Security/EncryptionContext.php
vendor/prinsfrank/pdfparser/src/Document/Security/FileEncryptionKey.php
vendor/prinsfrank/pdfparser/src/Document/Security/SecurityAlgorithm.php
vendor/prinsfrank/pdfparser/src/Document/Security/StandardSecurity.php
vendor/prinsfrank/pdfparser/src/Document/Security/StandardSecurityHandlerRevision.php
vendor/prinsfrank/pdfparser/src/Document/Version/Version.php
vendor/prinsfrank/pdfparser/src/Document/Version/VersionParser.php
vendor/prinsfrank/pdfparser/src/Exception/AuthenticationFailedException.php
vendor/prinsfrank/pdfparser/src/Exception/InvalidArgumentException.php
vendor/prinsfrank/pdfparser/src/Exception/NotImplementedException.php
vendor/prinsfrank/pdfparser/src/Exception/ParseFailureException.php
vendor/prinsfrank/pdfparser/src/Exception/PdfParserException.php
vendor/prinsfrank/pdfparser/src/Exception/RuntimeException.php
vendor/prinsfrank/pdfparser/src/PdfParser.php
vendor/prinsfrank/pdfparser/src/Stream/AbstractStream.php
vendor/prinsfrank/pdfparser/src/Stream/FileStream.php
vendor/prinsfrank/pdfparser/src/Stream/InMemoryStream.php
vendor/prinsfrank/pdfparser/src/Stream/Stream.php
d8f4c70a18-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Switch to the cosmocode/pdfparser memory fork

Replace the upstream smalot/pdfparser dependency with our own fork
(cosmocode/pdfparser, dev-memory branch) for its lower-peak-memory
streaming parser.

Switch to the cosmocode/pdfparser memory fork

Replace the upstream smalot/pdfparser dependency with our own fork
(cosmocode/pdfparser, dev-memory branch) for its lower-peak-memory
streaming parser. The fork keeps the smalot/pdfparser package name, so
it is wired in as a vcs repository in composer.json and required as
dev-memory; the vendored copy and lock file are regenerated accordingly.

PdfExtractor is unchanged - the public API it uses
(Config::setRetainImageContent(), Parser::parseFile()) is identical.

show more ...

74fe23a518-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Lower PDF parser peak memory by skipping image content

PDFs are parsed entirely into memory before any text is returned, so a
large file can exhaust the memory limit even when its text is tiny.
Sett

Lower PDF parser peak memory by skipping image content

PDFs are parsed entirely into memory before any text is returned, so a
large file can exhaust the memory limit even when its text is tiny.
Setting retainImageContent(false) makes smalot/pdfparser skip decoding
image streams - the largest streams in a typical PDF - which markedly
lowers peak memory without changing the extracted text.

show more ...

a5b145eb18-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Use real Apache Tika sample files and trim the test suite

Replace the generated fixtures with real documents from the Apache Tika
test corpus (tika-* files plus download.sh and a short README) and r

Use real Apache Tika sample files and trim the test suite

Replace the generated fixtures with real documents from the Apache Tika
test corpus (tika-* files plus download.sh and a short README) and rework
the tests to run against them:

- Samples.php: drop the tempDir()/cleanup() single-call wrappers, let
withoutPart() and corrupt() manage their own temp files, and build the
"container missing a member" input with php-archive instead of ext-zip.
- ExtractorFactoryTest: stop re-typing the EXTRACTORS map; keep only the
case/path normalisation cases and own the missing-file/corrupt error
paths centrally.
- Per-format extractor tests: drop the duplicated shared error tests and
their setUp/tearDown, keeping the format-specific assertions; move the
multibyte-UTF8 check into DocxExtractorTest.
- Remove HelperTest and SampleFilesTest as redundant.
- Add a real-sample test for the plain-text extractor.

show more ...

6b6a7c2c17-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Test against real files instead of generated fixtures

A hand-built fixture only encodes our belief about a file format; if that
belief is wrong the extractor is written to match it and both agree on

Test against real files instead of generated fixtures

A hand-built fixture only encodes our belief about a file format; if that
belief is wrong the extractor is written to match it and both agree on a
fiction that never matches reality. Replace the synthetic FixtureBuilder with
real files produced by real applications.

- _test/data/regenerate.sh rebuilds the edge-case samples from inline
plain-text sources: LibreOffice converts flat-ODF to the office formats,
ImageMagick + exiftool produce images with real IPTC/EXIF metadata.
- New samples cover headers/footers, tab/line-break handling, multi-sheet name
resolution, speaker notes, merged/covered cells and image metadata.
- Error-path tests derive broken inputs from real files (Samples::withoutPart
removes one ZIP member, Samples::corrupt writes garbage) rather than
fabricating containers.
- Scenarios real tools never emit (unnamed sheet, repeated filled-text cell,
the synthetic MAX_REPEAT extreme) are dropped rather than faked.

Delete FixtureBuilder; add the Samples helper. _test is export-ignored so the
sample binaries never ship in release tarballs.

show more ...

7ddd936f17-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Drop the PDF parser availability check

smalot/pdfparser is bundled in the committed vendor/ directory, so the parser
is always present. The class_exists() guard could never fire and its
"run compose

Drop the PDF parser availability check

smalot/pdfparser is bundled in the committed vendor/ directory, so the parser
is always present. The class_exists() guard could never fire and its
"run composer install" message was misleading for a bundled dependency.

show more ...

c590c20017-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Open extractors and factory for extension

Remove final from ExtractorFactory and the nine extractors, and widen every
private method, property and constant to protected, so the classes can be
subcla

Open extractors and factory for extension

Remove final from ExtractorFactory and the nine extractors, and widen every
private method, property and constant to protected, so the classes can be
subclassed and their helpers reused. The abstract base, the interface and the
exception hierarchy were already extensible and are unchanged.

show more ...

a67d015517-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Make ExtractorFactory the single source of supported extensions

The file extensions were duplicated across forFile(), supportedExtensions()
and every extractor's supports()/extension(). Collapse the

Make ExtractorFactory the single source of supported extensions

The file extensions were duplicated across forFile(), supportedExtensions()
and every extractor's supports()/extension(). Collapse them into one
private const map (extension => extractor class) in ExtractorFactory, which
is now the sole routing authority: forFile() looks the extension up and
supportedExtensions() returns its keys.

Extractors are now dumb workers implementing only extract(); the unused
supports()/extensions() methods are dropped from ExtractorInterface and all
extractors. Per-extractor supports() tests are removed (routing is covered
by the factory tests).

show more ...

37c5feaa17-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Use DokuWiki's temp dir and clean up in destructor

Allocate the archive-unpack temp dir in DokuWiki's own temp dir
($conf['tmpdir']) via core's io_mktmpdir(), and remove it with
io_rmdir(), instead

Use DokuWiki's temp dir and clean up in destructor

Allocate the archive-unpack temp dir in DokuWiki's own temp dir
($conf['tmpdir']) via core's io_mktmpdir(), and remove it with
io_rmdir(), instead of the system temp dir. Add a destructor that
repeats the cleanup as a safety net so the dir is removed even if the
process dies before extract()'s finally block runs. Align the test
FixtureBuilder on the same core helpers.

show more ...

e3bf24fb17-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Expand test coverage and fix two extractor bugs

Broaden the test suite from happy-path fixtures to the branching logic that
was previously unexercised, and fix two real bugs the new coverage exposed

Expand test coverage and fix two extractor bugs

Broaden the test suite from happy-path fixtures to the branching logic that
was previously unexercised, and fix two real bugs the new coverage exposed:

- XlsxExtractor: resolve sheet name->file mapping and tab order through
xl/workbook.xml + xl/_rels/workbook.xml.rels instead of pairing sorted
worksheet filenames with names positionally, which mismatched them whenever
tab order differed from file numbering. Falls back to positional/SheetN
naming when the workbook or its rels are absent.
- ImageExtractor: PHP's exif reader decodes Windows XP tags into a WINXP
section under short names (Title/Comment/Author/Keywords/Subject), not as
XPTitle etc., so those fields were silently dropped. List the short names
first, keep the XP* raw names as a cross-version fallback.

Tests:
- FixtureBuilder gains DOCX header/footer, PPTX notes, multi-sheet XLSX (+
no-workbook/no-worksheet variants), rich ODS (repeated columns, covered
cells, multi-paragraph cells, MAX_REPEAT cap, unnamed-sheet fallback), a
hand-packed TIFF with EXIF incl. a UTF-16LE XPTitle, and a public zip()
helper for composing broken containers.
- New critical-path coverage: header/footer, speaker notes, ODS edge cases,
XLSX multi-sheet/fallback/no-worksheet guards, EXIF/TIFF incl. XP decode,
and per-format missing-part/missing-file error paths.
- Routing, reject and supports() tests converted to data providers, plus a
drift guard that routes every supportedExtensions() entry through forFile().
- Real-world LibreOffice samples under _test/data covered by SampleFilesTest.

47 -> 155 tests, 104 -> 231 assertions.

show more ...

ca76a2e617-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Initial implementation of the totext plugin

Extract plain text from various file formats using PHP only (no shell-outs,
no external binaries). Provides a CLI component (cli_plugin_totext) and a
help

Initial implementation of the totext plugin

Extract plain text from various file formats using PHP only (no shell-outs,
no external binaries). Provides a CLI component (cli_plugin_totext) and a
helper component (helper_plugin_totext).

Supported formats:
- OOXML: docx, xlsx, pptx
- OpenDocument: odt, ods, odp
- PDF (via bundled smalot/pdfparser)
- Plain-text family: txt, csv, md, markdown, log, text
- Image metadata (EXIF/IPTC): jpg, jpeg, tif, tiff

Includes a fixture-based test suite covering every extractor, the factory
routing, and the helper end to end.

show more ...


.gitattributes
AGENTS.md
Exception/ExtractionException.php
Exception/UnsupportedFormatException.php
Extractor/AbstractZipXmlExtractor.php
Extractor/DocxExtractor.php
Extractor/ExtractorFactory.php
Extractor/ExtractorInterface.php
Extractor/ImageExtractor.php
Extractor/OdpExtractor.php
Extractor/OdsExtractor.php
Extractor/OdtExtractor.php
Extractor/PdfExtractor.php
Extractor/PptxExtractor.php
Extractor/TextExtractor.php
Extractor/XlsxExtractor.php
LICENSE
README
_test/DocxExtractorTest.php
_test/ExtractorFactoryTest.php
_test/FixtureBuilder.php
_test/HelperTest.php
_test/ImageExtractorTest.php
_test/OdpExtractorTest.php
_test/OdsExtractorTest.php
_test/OdtExtractorTest.php
_test/PdfExtractorTest.php
_test/PptxExtractorTest.php
_test/TextExtractorTest.php
_test/XlsxExtractorTest.php
cli.php
composer.json
composer.lock
helper.php
plugin.info.txt
vendor/autoload.php
vendor/composer/ClassLoader.php
vendor/composer/InstalledVersions.php
vendor/composer/LICENSE
vendor/composer/autoload_classmap.php
vendor/composer/autoload_files.php
vendor/composer/autoload_namespaces.php
vendor/composer/autoload_psr4.php
vendor/composer/autoload_real.php
vendor/composer/autoload_static.php
vendor/composer/installed.json
vendor/composer/installed.php
vendor/composer/platform_check.php
vendor/smalot/pdfparser/LICENSE.txt
vendor/smalot/pdfparser/README.md
vendor/smalot/pdfparser/composer.json
vendor/smalot/pdfparser/src/Smalot/PdfParser/Config.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/EncodingLocator.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EncodingNotFoundException.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Header.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Page.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Pages.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php
vendor/symfony/polyfill-mbstring/LICENSE
vendor/symfony/polyfill-mbstring/Mbstring.php
vendor/symfony/polyfill-mbstring/README.md
vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php
vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
vendor/symfony/polyfill-mbstring/bootstrap.php
vendor/symfony/polyfill-mbstring/bootstrap72.php
vendor/symfony/polyfill-mbstring/bootstrap80.php
vendor/symfony/polyfill-mbstring/composer.json