Skip to main content

pdf_manipulator 6.0.2-dev.0 copy "pdf_manipulator: ^6.0.2-dev.0" to clipboard
pdf_manipulator: ^6.0.2-dev.0 copied to clipboard

Cross-platform PDF toolkit for Flutter. Merge, split, render, extract, search, sign, encrypt, convert, build from scratch. Rust engine, off the main thread.

Prerelease Changelog #

6.0.2-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed convertToPdfA writing a file that PDF/A validators reject when its text uses Helvetica, Times or Courier — the substitute font is embedded as a TrueType font with its widths, cut down to the glyphs its encoding names
  • Fixed convertToPdfA and every full save writing a file with no identifier (/ID) in its trailer, which PDF/A requires — a file that has none gets one
  • Fixed convertToPdfA marking a file as PDF/A when it could not fix every problem — the mark is written only when the conversion is complete
  • Fixed validatePdfA passing a file with no /ID, with a font whose embedded program is of another kind than the font, or with an annotation that has no appearance
  • Fixed level a1, where convertToPdfA marked and validatePdfA passed files that break PDF/A-1's own rules — until this package covers those rules, convertToPdfA changes nothing at a1 and validatePdfA reports the file as not compliant, so use a2 or a3
Commits since v6.0.1-dev.0 (15)
  • 662bd1a stamp: asset hashes for v6.0.2-dev.0
  • ca08c64 release: v6.0.2-dev.0
  • 7d6cbe3 fix: PDF/A conversion embeds the standard fonts, writes a file identifier and marks only a conforming file (#307)
  • b074349 ci: whuppi/ci 2.9.0 and a weekly record of the failures the retry absorbed (#306)
  • 5925dc1 ci: the Full Test Gate trusts an earlier run only when it ran the whole matrix (#305)
  • 0307fda ci: Sizes and the dev warm-up run only when an input they build from changed (#304)
  • ce9dd2e chore: .gitignore names the build that writes the wasm and its manifest (#302)
  • 13a536d Merge branch 'dev' into chore/gitignore-wasm-build
  • 41beee5 chore: refresh lockfiles (#294)
  • 3485e3b chore: .gitignore names the build that writes the wasm and its manifest
  • c05de17 Merge branch 'dev' into chore/lockfiles
  • e49c9f0 Merge branch 'prod' into dev
  • b29d6b3 chore: release 6.0.1 (#300)
  • 5c4cbdc chore: refresh lockfiles
  • 436ef6d release: promote dev → prod (v6.0.0) (#283)

6.0.1-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed extracted text losing the spaces between words in some PDFs, such as those the pdf package writes — each character is now measured at its own width (#288 reported by @Maixpa)
  • Fixed the web OPFS mode leaving a copy of a document in the browser's storage when the browser never answered the request for its file handle — the worker holds the handle until the browser answers, and retires itself if it never does
Commits since v6.0.0-dev.0 (23)
  • 709736c stamp: asset hashes for v6.0.1-dev.0
  • 3b13862 release: v6.0.1-dev.0
  • 97a299d chore: release 6.0.1-dev.0 (#299)
  • d8bf61f test: the stress walls time op and calibration alike, best of five each, and count executor boots exactly (#298)
  • 6bbc70f chore: bump Flutter SDK (#285)
  • 09d97b6 ci: every check target runs in CI (#297)
  • 8f37471 test: the trimmed smoke test on the 6.0.0 API, and analyze covers every package of the repo (#296)
  • 7c2cd55 fix(web): an OPFS worker holds each file handle until its create settles, and a worker with a create that never answers is retired (#295)
  • e4a242d ci: Full Test Gate passes a skipped matrix only for a PR that changes docs or the bench, or when a run on the same commit passed it (#292)
  • a2b5d0e ci: whuppi/ci 2.7.19 (#293)
  • 3d856d1 fix: a Type0 font whose widths sit in an indirect array keeps the spaces between its words (#288) (#291)
  • 15b6239 chore: bump pinned versions (#287)
  • 9da6e13 chore: bump the deps group in /tool/bench with 2 updates (#290)
  • bfd3cab chore: bump the deps group with 2 updates (#289)
  • defaad7 chore: refresh lockfiles (#281)
  • 25f4da9 docs: UPDATING's stable release names the Update branch step a promotion PR needs (#284)
  • 22607e0 Merge branch 'prod' into dev
  • 3a77068 docs: the 6.0.0 stable changelog (#282)
  • d5f39d0 ci: the Sizes workflow runs the full shake audit, and the README size check reads each number in its own place (#280)
  • d07e7a2 test: every public API element pub.dev counts has a documentation comment (#279)
  • 1b19f7f chore: bump toml from 0.16.0 to 0.18.0 in /tool/bench in the deps group across 1 directory (#277)
  • aba071e docs: credit #268 to @DarkWingMcQuack on the compress bullets of 6.0.0-dev.0 (#278)
  • dfa7c6b release: promote dev → prod (v5.0.1) (#259)

6.0.0-dev.0 #

6.0.0 runs every operation in bounded engine memory: a 10,000-page file opens, saves, merges and extracts its text in under 16 MB, where it took up to 163 MB. Redaction removes everything under the box, not only the text; compress and every full save write smaller files; and the API is rebuilt around one input type, one page-set type, one error family and three ways to call it. Migrating from 5.0.1: the migration guide has the before and after code for every breaking change below.

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Breaking: DataSource has a new close(), and DataSink has new abort(Object reason) and close(), where the library calls abort on the sink of an operation that ends cancelled or failed → implement all three in your own sources and sinks (clear a buffer, truncate a file, cancel an upload); the built-in ones do
  • Breaking: FileSource and FileSink.create are await FileSource.open(file) and await FileSink.open(file), and whoever opens a source or sink closes it → await the factory and call close() when the job is over
  • Breaking: open, edit, merge, split, compress, sign and every other call that opens a PDF take a PdfInput where they took a DataSource and a password: → write PdfInput(source, password: 'x'); PdfFile(file) and PdfInput.owning open and close the source for the job
  • Breaking: PdfDoc is PdfDocument, and pdf.open, pdf.edit and pdf.build return the owning PdfDocumentHandle, PdfEditorHandle and PdfBuilderHandle, the only types with dispose and save → rename the type; pdf.read, pdf.rewrite and pdf.buildTo dispose for you
  • Breaking: the one-shots deletePages, reorderPages, movePage, rotatePages, rotateAllPages, flattenForms, embedFile, watermark, addStamp, addImageStamp and convertToPdfA are removed → call the edit on pdf.editOnce(input, output), for example .removePages(PdfPages.single(0)), or put several edits in one pdf.rewrite
  • Breaking: the applyRedactions one-shot is removed → call applyRedactions() in a pdf.rewrite body
  • Breaking: eraseRegions and clearEraseRegions, on the editor and as a one-shot, are removed → call redact(page, regions, overlay: const PdfRedactionOverlay.none()), or clearRedactions() to drop queued marks
  • Breaking: the encrypt and decrypt one-shots are removed → call pdf.resave(input, output, save: PdfSave.full(encryption: PdfEncryption.password(ownerPassword: 'x'))), or PdfEncryption.remove() with PdfInput(source, password: 'x') to decrypt
  • Breaking: extractPages is removed → call pdf.editOnce(input, output).keepPages(PdfPages.list([0, 2])) to keep pages in document order, or reorderPages(PdfPageOrder([2, 0])) for another order
  • Breaking: split, splitBySize and splitByBookmarks are one split(input, sinkFor, by: ...) with PdfSplitRule.every(n), .maxBytes(n) or .bookmarks(), and sinkFor takes the PdfSplitPart it is for → rename the call; it returns the parts (index, first page, end page, bookmark title) and no byte sizes
  • Breaking: compress has no garbageCollect parameter, since it always collects garbage, and its images default is PdfImagePolicy.lossless where it was ebook → drop the argument, and pass images: PdfImagePolicy.ebook for the old result
  • Breaking: imagesToPdf gives every page the image's own size, one point per pixel, where it drew each image on an A4 page → pass page: const PdfImagePage(size: PdfImagePageSize.fixed(PdfPageSize.a4())) to keep A4 pages
  • Breaking: convertTo and convertToPdf are convertToOffice(input, output, format:) and convertFromOffice(document, output, format:), and PdfDocumentFormat is PdfOfficeFormat → rename the calls and the type
  • Breaking: registerFallbackFont takes the font as a DataSource, which it reads whole, where it took Uint8List bytes → wrap the bytes: MemorySource(bytes)
  • Breaking: the title, author, subject, keywords, creator, producer and creationDate of PdfDoc are fields of doc.metadata (PdfMetadata), and creationDate is a UTC DateTime? where it was a raw PDF date string → read doc.metadata.title
  • Breaking: the isEncrypted, requiresPassword, encryptionAlgorithm and permissions of PdfDoc are fields of doc.encryption (PdfEncryptionInfo), which is null when the document is not encrypted → read doc.encryption?.permissions
  • Breaking: PdfDoc.pages is gone, and opening a document no longer reads the pages → call await doc.pageInfo(), or doc.pageInfo(pages: PdfPages.single(0)) for one page
  • Breaking: PdfPageInfo has page, mediaBox, cropBox and a PdfRotation rotation, where it had index, an int rotation and width and height as fields (they stay as getters) → read info.page, and compare info.rotation with PdfRotation.r90
  • Breaking: extract({pages, format}) is text({pages, format}), which returns the string, and extractText(output, {pages, format}), which writes it to a sink as the engine produces it → call await doc.text(); pages is optional
  • Breaking: search(query:, pages:) is search(query, {pages}), and SearchResult is PdfSearchHit with the same fields → drop the label and rename the type
  • Breaking: render returns a Future of the PdfRenderedPage descriptors and writes each page to the sink that sinkFor returns, where it returned a Stream of RenderedPage with the bytes; pages is optional → pass (page) => MemorySink(), or call doc.bitmap(0) for one page's bytes
  • Breaking: extractImages returns a Future of PdfImageInfo and writes each image to the sink that sinkFor returns, where it returned a Stream of PdfImage with the bytes; pages is optional → pass (image) => sink
  • Breaking: PdfRenderSize(maxWidth:, maxHeight:) and PdfRenderSize.thumbnail(n) are PdfRenderSize.fit(maxWidth:, maxHeight:), and PdfRenderSize.dpi(n) is new → rename the constructor; thumbnail(n) is fit(maxWidth: n, maxHeight: n)
  • Breaking: the document's signatures, formFields, xfa and attachments and the editor's pageCount, version and isModified are methods, where they were getters → add the parentheses: await editor.pageCount()
  • Breaking: PdfDoc.formField(name) is gone → find the field in await doc.formFields()
  • Breaking: validatePdfA and validatePdfUa answer a PdfValidationReport (isCompliant, errorCount, warningCount) and take a PdfALevel or PdfUaLevel, where PdfValidationResult had compliant, errors and warnings, validatePdfUa answered a bool and level was an int → read report.isCompliant
  • Breaking: convertToPdfA takes a PdfALevel (a1, a2, a3) and defaults to a2, where it took an int and defaulted to level 1 → pass level: PdfALevel.a1 for the old default
  • Breaking: planSplitByBookmarks is bookmarkRanges(), and PdfBookmarkSplit with startPage and endPage is PdfBookmarkRange with start and end → rename the call and the fields
  • Breaking: classifyPage is classifyPages({pages}), a page's type string and confidence are a kind (PdfPageKind), and classifyDocument answers a PdfDocumentKind where it answered a PdfDocumentClassification → read result.first.kind
  • Breaking: PdfFormField has kind (PdfFormFieldKind, with textField, pushButton and signatureField), isReadOnly and isRequired, where it had type (PdfFormFieldType), readOnly and required; PdfCheckedValue.checked is isChecked → rename the fields and the type
  • Breaking: the value of a radio group, combo box or list box reads as PdfChoiceValue with the selected option (PdfMultiChoiceValue for several, PdfNoValue for none), where a radio group read as PdfCheckedValue and the others as PdfTextValue → match on PdfChoiceValue
  • Breaking: size of PdfAttachment is sizeBytes, serial of PdfCertificateInfo is serialNumber, and regions of PdfRedactionReport is regionCount → rename the fields
  • Breaking: PdfSignatureInfo has a required coversWholeDocument parameter → pass it where you construct one, in test fakes for example
  • Breaking: the fields of PdfPermissions are canPrint, canPrintHighQuality, canModify, canCopy, canAnnotate, canFillForms, canExtractForAccessibility and canAssemble, where they were print, printHq, modify, copy, annotate, fillForms, accessibility and assemble, and toBits is gone → rename the arguments and the fields
  • Breaking: monoPpi and minSavings of PdfImagePolicy are bilevelPpi and minSavingsRatio, and PdfImageOutcome has bitsPerComponent, isIndexed, minPpi and placementCount where it had bits, indexed, ppiMin and uses → rename the fields
  • Breaking: rotation of PdfWatermarkStyle is angleDegrees → rename the argument
  • Breaking: PdfExtractionFormat.plainText is plain and .text is layout, and PdfEncryptionAlgorithm has rc4Key40, rc4Key128, aesKey128 and aesKey256 where it had rc4_40, rc4_128, aes128 and aes256 → rename the values
  • Breaking: PdfConfig(webLaneWorkerUrl:, maxLanes:) is PdfConfig(webWorkerUrl:, concurrency:) → rename the arguments; concurrency defaults to max(2, cores / 2) operations at once
  • Breaking: the setTitle, setAuthor, setSubject, setKeywords, setProducer and setCreationDate of the editor and the builder are one setMetadata(PdfMetadata), which replaces the standard fields, and the editor reads them with metadata() → change one with setMetadata((await editor.metadata()).copyWith(title: 'X'))
  • Breaking: rotatePage, rotateAllPages and setPageRotation are rotatePages(by:, pages:) and setRotation(rotation, pages:), which take a PdfRotation (r0, r90, r180, r270) where they took degrees: → call rotatePages(by: PdfRotation.r90)
  • Breaking: pageMediaBox, pageCropBox, setPageMediaBox and setPageCropBox are pageInfo({pages}) with mediaBox and cropBox, setMediaBox(box, {pages}) and setCropBox(box, {pages}) → a null crop box removes the crop box
  • Breaking: deletePage is removePages(PdfPages), which throws PdfEngineFailed for a page the document does not have, or for every page → call removePages(PdfPages.list([1, 3]))
  • Breaking: selectPages is keepPages(PdfPages), which keeps the pages in document order, and reorderPages(PdfPageOrder), which keeps them in the order given → call reorderPages(PdfPageOrder([2, 0, 1])) to keep the old order
  • Breaking: mergeFrom(source, {pages}) is appendPages(PdfInput, {pages}), and pages is a PdfPages where it was a list of indexes → pass PdfInput(source, password: 'x') for an encrypted source
  • Breaking: addWatermark(page, text) is addWatermark(text, {pages}) with every page as the default, and a page of -1 no longer means every page → pass pages: const PdfPages.all()
  • Breaking: addStamp(page, type:, rect:) and addImageStamp(page, image, rect:) are addStamp(stamp, bounds:, pages:) and addImageStamp(image, bounds:, pages:), and PdfStampType is PdfStamp → write addStamp(PdfStamp.draft, bounds: r)
  • Breaking: embedFile is addAttachment → rename the call
  • Breaking: flattenForms({int? page}) and flattenAnnotations({int? page}) take pages (a PdfPages, every page by default) → write flattenForms(pages: PdfPages.single(0))
  • Breaking: addRedaction is markRedaction(page, regions, {overlay}), since the engine never drew the overlay text → pass PdfRedactionOverlay.fill(color) for a box of that colour, or PdfRedactionOverlay.none()
  • Breaking: the editor's setFormFieldValue, setCheckboxFieldValue, removeFormField and the other setFormField… methods are on editor.field(name) as setValue, setReadOnly, setRequired, setTooltip, setBounds, setMaxLength, setAlignment, setBackgroundColor, setBorderColor, setBorderWidth, setAppearance, setFlags and remove → write editor.field('name').setValue(const PdfFormFieldValue.text('Ada'))
  • Breaking: resizeImage and repositionImage are removed, and pageImages returns PdfImagePlacement where it returned PdfPageImage → call setImageBounds(page, name, bounds) with the size and position you want
  • Breaking: scrubMetadata and sanitize(PdfSanitizeOptions) are sanitize({stripMetadata, stripJavaScript, stripAttachments}), where PdfSanitizeOptions had metadata, javascript and embeddedFiles → call sanitize(stripJavaScript: false) for scrubMetadata()
  • Breaking: PdfSaveOptions is PdfSave, and PdfSaveOptions.fullRewrite(compress:, garbageCollect:, encryption:) is PdfSave.full(deflate:, garbageCollect:, encryption:) with a PdfDeflate level; save(output, options:) is save(output, save:) and exists only on the handles → rename the class and the arguments
  • Breaking: PdfSaveOptions with incremental() now appends the edits to the original bytes, so a signature over them stays valid, and throws PdfIncrementalRefused when an append cannot carry them (pages removed or reordered, redaction, content edits, an encrypted or repaired source) → catch it and save with PdfSave.full()
  • Breaking: PdfEncryption.config is PdfEncryption.password(ownerPassword:, userPassword:, algorithm:, permissions:), whose userPassword is null for a document that opens without one and whose algorithm defaults to aesKey256 → rename the call
  • Breaking: the subclasses PdfPagesAll, PdfPagesSingle, PdfPagesList, PdfPagesRange, PdfEncryptionKeep, PdfEncryptionRemove, PdfEncryptionConfig, PdfSaveFullRewrite, PdfSaveIncremental, PdfWatermarkCenter, PdfWatermarkCorner, PdfWatermarkTiled, PdfWatermarkExact, PdfPkcs12Credentials and PdfPemCredentials are not exported → call the factory, for example PdfPages.single(0) or PdfEncryption.keep()
  • Breaking: PdfColor and every result and options type (PdfPageInfo, PdfImagePolicy, PdfRect and the rest) are final with value == and hashCode → replace an extends or implements of one with a wrapper
  • Breaking: PdfPages.list is not const, sorts the indexes, and throws ArgumentError for an empty list, a negative index or an index given twice, where it kept the list as given; PdfPages.from(start) is new → write PdfPages.list([3, 1])
  • Breaking: the bottom of a PdfRect is its lower edge, y, where it was y + height → read top for the upper edge; PdfRect.fromEdges builds a rectangle from left, bottom, right and top
  • Breaking: PdfInvalidArgument is removed: a programmer mistake (an empty list, a negative page, a second call on a one-shot) throws ArgumentError or StateError before any I/O, and an engine refusal throws PdfEngineFailed → catch PdfError for runtime failures only
  • Breaking: PdfIoError, PdfEngineError, PdfPageRangeError and PdfCryptoError are PdfIoFailed, PdfEngineFailed, PdfPageOutOfRange and PdfCryptoFailed → rename the type in each catch and switch
  • Breaking: PdfSearchError and PdfExtractionFailed are removed, since nothing threw them → delete their catch clauses and switch cases; engine failures arrive as the other PdfError subtypes
  • Breaking: PdfError has two new subtypes, PdfNotFound (a missing attachment or image) and PdfIncrementalRefused → add a case to every exhaustive switch over PdfError
  • Breaking: addA4Page, addLetterPage and addPage(width:, height:) are addPage([PdfPageSize]) → call addPage(), addPage(PdfPageSize.letter()) or addPage(PdfPageSize.points(400, 300))
  • Breaking: the page builder's font and at are setFont(name, size) and moveTo(PdfPoint(x, y)), and done() and newPageSameSize() are removed → a page ends when the next is added or the document is saved
  • Breaking: the page builder's fieldKeystroke, fieldFormat, fieldValidate and fieldCalculate, and its linkUrl and linkPage, are arguments of the call that writes the field or text → pass scripts: const PdfFieldScripts(format: 'x') or link: const PdfLink.url('https://example.com')
  • Breaking: the page builder's textField takes value where it took defaultValue, checkbox takes isChecked where it took checked, and radioGroup takes PdfRadioOption(value, bounds) where options were records → rename the arguments
  • Breaking: PdfTextAlignment is PdfAlignment, and the page builder's image(data, rect, {altText}) is image(data, bounds, {altText}) where a null altText places an artifact → rename the type; pass altText: 'x' for a described image
  • Added redact(page, regions, {overlay}), which marks and applies its own regions in one step and returns the report — marks queued before stay queued, and an error leaves nothing marked or applied
  • Added PdfRedactionOverlay, fill(color) or none(): a redaction with no overlay removes the content and draws no box
  • Added PdfEditor.clearRedactions(), and field(name).setTooltip, setMaxLength, setBackgroundColor and setBorderColor take null to remove the tooltip, the limit or the colour
  • Added PdfFormFieldValue.choice, .choices and .none: field(name).setValue selects an option of a combo box or list box, the options of a multi-select list box, or clears the value, and refuses an option the field does not list
  • Added PdfDocument.annotations(page), which lists a page's annotations (subtype, rectangle, contents, author, form field name) as PdfAnnotationInfo
  • Added the page builder calls the engine already had: appendText, textIn, rect, line, stickyNote(..., at:), stamp(PdfStamp...), freeText, onOpen, onClose and table(columns, rows, {options}) with PdfTableCell and PdfTableOptions, and a PdfTextStyle, PdfMarkup or PdfLink argument on text
  • Added PdfBuilder.addImagePage, a page that holds one picture and takes the picture's own size unless you name one
  • Changed PdfBuilder.save to Flate-compress page content and font streams; save(output, deflate: false) keeps them plain for debugging
  • Added BlobSource (package:pdf_manipulator/web.dart), which the worker reads in place with FileReaderSync in JSPI, Atomics and Asyncify, and copies to OPFS itself in OPFS mode: a File from a picker opens with no main-thread read and O(1) memory at any size
  • Added the web Asyncify mode, asyncify: true under hooks: user_defines: pdf_manipulator:, which ships the Asyncify wasm so a browser with neither JSPI nor SharedArrayBuffer streams instead of copying to storage first — it is 28 MB for the full engine and is fetched only where OPFS cannot run
  • Changed web sources of any other kind that fit in 16 MiB per lane to be copied into the worker once as a snapshot at job start instead of pre-copied to disk or read through the page, and a source past that budget takes the I/O mode's own path
  • Changed the web wasm to ship as parts of 16 MiB listed in pdf_oxide_manifest.json, which the browser joins into one stream as it compiles, so no file reaches the 25 MiB limit of static hosts; apps that list pdf_oxide_bg.wasm re-run setup and list the parts
  • Changed the web mode the package picks by itself to Atomics first where the page has SharedArrayBuffer, then JSPI, OPFS and Asyncify, since Atomics measured faster than JSPI on every source
  • Changed open, edit, split, a full-rewrite save and compress to hold a bounded window of the document instead of all of it: a 38 MB, 10,000-page file now opens and saves in under 16 MB of engine memory, where it took up to 85 MB
  • Changed edit to open the source once; an editor used to hold the document twice
  • Changed opening a damaged file (no cross-reference table, or a wrong one) and reading objects packed in object streams to scan the file in fixed windows: a 64 MB damaged file opens in under 16 MB of engine memory, and the 1 MB and 32 MB caps are gone
  • Changed appendPages to keep the merged file open until the editor is disposed and copy its objects one at a time at save: merging a 10,000-page file takes under 16 MB of engine memory and about 2 seconds, where it took 163 MB and minutes
  • Changed page edits on a document with merged pages: removePages, movePage, keepPages, rotation, media box and crop box apply to a merged page, where they refused, hit the wrong page or crashed the engine; stamps, watermarks and redactions on a merged page throw PdfUnsupported
  • Changed reading a source to fetch it in 64 KB pieces instead of one round trip per read: compressing a 70-page scan takes 18 ms on native, where it took 29 ms, and a third less time on the web
  • Changed text extraction of every page to stream one page at a time from the engine, so a 10,000-page file extracts in under 16 MB of engine memory
  • Changed render and extractImages to deliver each page or image to its sink as the engine produces it, where they held every page until the last; cancelling the task stops the engine
  • Changed addAttachment, extractAttachment, addImageStamp, convertToPdfA, a page's image list, a large rewritten stream and the text of form fields to be read and written in pieces, never whole: a 64 MiB attachment or image goes in or out in under 16 MB of engine memory
  • Changed image decoding for render, reduceImages, extractImages and imagesToPdf (JPEG, fax, interlaced PNG, palettes, raw samples, CIDToGIDMap fonts) to read only what the file declares, from the stream, so a 64 MiB image stays under 16 MB of engine memory; a fax image the engine cannot read is declined at its open
  • Changed a full-rewrite save to copy each unchanged stream from the source in 64 KB pieces, so a page holding a 60 MB image saves in under 1 MB of engine memory
  • Changed applyRedactions to rewrite each page one operator at a time while the document saves: redacting a page with 9 million operators takes under 1 MB of engine memory
  • Changed a full-rewrite save to pack objects into object streams with a cross-reference stream (PDF 1.5), where it unpacked them and could write a file six times larger than its source; PdfSave.full(useObjectStreams: false) writes the classic layout
  • Added PdfSave.full(deflate:), how hard a full save deflates its streams (PdfDeflate.none, fast, balanced or best, default best); a full save re-deflates Flate streams at that level and keeps a stream's source bytes when the result is not smaller (#268 reported by @DarkWingMcQuack)
  • Changed compress and every full save to recompress copied page content, pack object streams fuller, drop orphan /Length objects, rewrite LZW as Flate and deflate like zlib level 9: on 13 public test files a lossless compress is smaller than pdf_document 12.0.0's on 12 and equal on 1, where it was up to 6 times larger (#268 reported by @DarkWingMcQuack)
  • Changed compress to write the source unchanged when its result is not smaller (#268 reported by @DarkWingMcQuack)
  • Changed compress to write one copy of identical images, ICC profiles and embedded fonts; PdfSave.full(mergeDuplicates: true) does the same for any full save, across every merged source (#268 reported by @DarkWingMcQuack)
  • Changed compress to drop the fonts, images, colour spaces and other resources a page lists but no content of it uses, keeping any resource some content might use; PdfSave.full(pruneResources: true) does the same for any full save (#268 reported by @DarkWingMcQuack)
  • Changed compress to subset embedded TrueType and CID CFF fonts: outlines no content shows are emptied, glyph ids and tables kept, fonts of form fields left whole; a subset that is not smaller is not written (#268 reported by @DarkWingMcQuack)
  • Changed PdfImagePolicy.screen to re-encode a stored JPEG at its quality even when the image is not downsampled (recompressJpeg: true); ebook and print still keep stored JPEGs
  • Changed verifySignatures to check each signature's digest and signer key, where it returned false for every document; PdfSignatureInfo has isValid, coversWholeDocument and signingTime filled
  • Changed registerFallbackFont so a second registration of a kind replaces the first and reaches only the Pdf that made it, where the font was shared by every instance of the process
  • Changed cancellation to stop text extraction, search, validation, redaction, reduceImages, convertToPdfA, image bounds changes and saves within one page or operator, and to reach merge, split, compress, rendering, bookmarkRanges, classifyPages and the opening of a damaged file, where each ran to its end; on the web this needs a cross-origin isolated page
  • Changed cancel() when the operation finished before the cancel landed: the task resolves with its result, so a finished edit is not reported as cancelled; an open or edit that finished is closed and reports PdfCancelled
  • Changed Pdf instances to lease their web workers and native threads from one shared pool, so creating and disposing instances in a loop reuses them instead of starting a new one each time
  • Changed every engine worker, native and web, to be retired once an operation's heap peaked past 32 MB, where only a web worker past 256 MB of WebAssembly memory was
  • Changed convertFromOffice and convertToOffice to bound hostile .doc, .xls, .ppt and ZIP input, to keep what a cut-off .docx, .pptx or .xlsx holds before the damage, and to write DOCX tables with no widths that Word no longer collapses (office_oxide 0.1.16)
  • Changed the Rust needed to build the engine from source (build: size, build: debug, a trimmed keep:) to 1.93 or newer, since the engine's per-thread memory count needs it on Android; the build says so and names the rustup command
  • Changed the size of the default engine to 25.5 MB native and 9.0 MB gzipped on the web, from 22.7 MB and 7.7 MB, with the code the bounded memory and the fixes need; render now adds 2.4 MB where it added 4.8 MB, and office adds 5.4 MB where it added 2.9 MB
  • Fixed keepPages, split and removePages writing the pages they drop into the output, so the output kept its original size and the dropped pages' text, images and form values — a save now writes nothing only a dropped page reaches, and drops the links, bookmark targets and form fields that pointed at one (#261 reported by @crurui)
  • Fixed sign dropping the document's bookmarks, form fields, page labels and every other catalog entry, and replacing an earlier signature — the signature now appends to the existing form and page (#263)
  • Fixed sign writing a cross-reference table that other readers had to repair — each entry is now 20 bytes
  • Fixed PdfSignatureInfo showing a non-ASCII signer name, reason or location as garbled text — UTF-16 text strings are decoded
  • Fixed a save that keeps an encrypted document's encryption setting its owner password to the password it was opened with, so anyone who could open the result had owner rights and its permissions were void — the save now reuses the source's own encryption dictionary and key
  • Fixed PdfEncryptionInfo.permissions reporting the wrong flags (a print-allowed file read as canPrint: false) — the engine's /P word is read at its spec bit positions
  • Fixed a save after markRedaction without applyRedactions drawing a black box over text it never removed, so the file looked redacted and the text could still be copied — an unapplied redaction is saved as a redaction mark (a /Redact annotation) and the page content is left as it was
  • Fixed applyRedactions leaving the pixels of images under a redacted area in the file — a covered image is removed, a partly covered one is copied with the covered pixels filled (only the 8×8 blocks under the area for a JPEG), masks included, and other pages keep the original
  • Fixed applyRedactions leaving drawings, clip shapes, gradient meshes and form content under a redacted area in the file — they are removed or cut at the area's edge, and a form other pages show is copied for the redacted page only
  • Fixed applyRedactions leaving traces of the removed text in the file: font widths, Unicode mappings, Type 3 glyph procedures (a flattened field's font included) and alt text, in the structure tree or inside page content — entries only the removed text used are cleared
  • Fixed applyRedactions dropping every annotation on a redacted page — only the annotations under a redacted area go, with their form fields
  • Fixed a form field flattened and redacted on one page keeping its value under the box — flattening now runs before redaction
  • Fixed an applyRedactions refused on a later page leaving the earlier pages redacted while the call reported the error — it redacts every page or none
  • Fixed a cancelled or failed reduceImages leaving the images it had already re-encoded staged, so a later save wrote half the reduction — it stages nothing unless every image is done
  • Fixed a cancelled or failed convertToPdfA leaving the editor half converted, or converted while the call reported the error — the editor is as it was before the call
  • Fixed an operation whose last write failed or was cancelled still reporting success with its output cut short — the engine now flushes the final bytes before it answers, and a refusal fails or cancels the operation
  • Fixed page labels shifting onto the wrong pages after keepPages, split, removePages or a reorder — each kept page keeps its label
  • Fixed PdfPageInfo.label always being null — it now holds the page's label when the document has page labels
  • Fixed a merged page losing the resources, page size and rotation it inherited from its source page tree, which could leave it blank
  • Fixed a merge copying the source's whole page tree into the output when a merged page linked to a page that was not merged — such a link's target is written as null
  • Fixed an empty input to merge or any other multi-source op shifting every source after it, so the op read the wrong documents — an empty input now throws PdfCorrupted
  • Fixed compress and every other full-rewrite save dropping the document's title, author, dates and file identifier unless the title was edited — the saved file keeps the source's /Info and /ID, and an edited title replaces the old /Info instead of leaving it behind
  • Fixed the same input saving to different bytes on every run, so compress and every other rewriting save could not be compared or cached by hash — objects are written in id order, so only the random AES IVs of an encrypted save differ
  • Fixed a full-rewrite save of a file with no /Size writing new objects over existing ones, and dropping an object it could not read without a word — it now throws PdfCorrupted
  • Fixed a full-rewrite save of a file holding objects above generation 0 writing references other readers resolve to nothing — each reference now names the generation its object is written at
  • Fixed a full-rewrite save writing an object over 100 MB truncated — it throws instead
  • Fixed rotatePages and other per-page edits slowing down with the square of the page count on large documents
  • Fixed flattenForms() and flattenAnnotations() of every page leaving pages unflattened after a page was deleted or moved, addImageStamp stamping the page the index named before the deletion, and a second image stamp on a page replacing the first
  • Fixed watermarks placed in a corner, tiled or at an exact rectangle all landing at default spots — every position is placed where it says; an unknown corner name is refused
  • Fixed image bounds edits saving the page unchanged without an error when its content could not be rewritten — the save now fails
  • Fixed PdfPageBuilder.radioGroup always failing with "unknown pageOp"
  • Fixed a radio option named Yes, No, On or Off reading back as a checked flag instead of its name
  • Fixed formFields misreading a field whose type, flags or value live on an ancestor field (a radio group read as a checkbox), and reporting a nameless parent as a field with an empty name
  • Fixed page builder calls on a disposed or unknown builder being queued without an error — each call now applies at once and fails where it is made
  • Fixed image() with bytes that are not an image succeeding and drawing nothing — it throws PdfEngineFailed
  • Fixed a page index past the end reaching the engine as a huge number or a generic error — every operation that takes a page throws PdfPageOutOfRange with the page and the page count
  • Fixed a source that fails to read while a document opens throwing PdfCorrupted — it now throws PdfIoFailed, so a broken source is told from a broken file
  • Fixed a source whose read fails once being absorbed, so an open or an op went on and succeeded without the bytes — the op now ends with PdfIoFailed
  • Fixed a web source read past 4 GiB returning the bytes at the offset modulo 4 GiB, with no error — the read offset crosses to the engine as a JS number, not a 32-bit integer
  • Fixed render and extractImages returning an empty stream when the engine failed, a page past the end included — they throw the engine's error
  • Fixed a page tree whose inner nodes each hold one page reporting those nodes as pages — every node is read before it counts as a page
  • Fixed text extraction of a page with many separate text runs on one line taking minutes to hours — a million characters now extract in about three seconds
  • Fixed text extraction of a page that names thousands of fonts holding every font at once (472 MB for 20,000 fonts, now 46 MB): font caches are bounded by bytes and a page reads the fonts it shows as it shows them
  • Fixed text extraction of a tagged document holding its whole structure tree and every page's tagged content at once (1.75 GiB for 600,000 elements) — it walks the tree for the page it reads; XFA forms are parsed as a stream of events instead of read whole
  • Fixed article threads longer than 4,096 beads being cut short and tables wider than 128 columns being missed, and a hostile CMap or xref stream size aborting the engine — XMP metadata is now read as a stream of events
  • Fixed TrueType text rendering letters the PDF never named: "fi" shown as two glyphs drew the "fi" ligature, and other font substitutions changed what was drawn — the renderer draws exactly the glyphs the content names
  • Fixed render ignoring line width, caps, joins, miter limit and dashes set through a graphics state resource (gs), which drew such lines 1 pt wide and solid
  • Fixed render drawing outlined text (text rendering modes 1, 2, 5 and 6) filled in the fill colour — the glyph outline is stroked in the stroke colour and line style
  • Fixed render drawing strokes and text painted with a tiling pattern in a flat colour — the pattern now shows inside the stroke or the glyphs
  • Fixed fit and thumbnail sizes of render coming out smaller than asked on pages with a crop box
  • Fixed images with fewer than 8 bits a sample and the TIFF predictor decoding to wrong pixels
  • Fixed 16-bit images and images with several colours below 8 bits a sample decoding to wrong pixels when stored with a PNG or TIFF predictor
  • Fixed a failed open or edit keeping its source channel until the instance was disposed
  • Fixed a native crash when a job was cancelled while its sink was still writing: the late write touched freed memory
  • Fixed a cancelled read on a document held open sending its late answer to the next job on that document, which then read the wrong bytes
  • Fixed an operation on a disposed document reaching another open document that happened to have the same engine id — it fails with "document not found"
  • Fixed cancel() on a job still waiting behind another one waiting for that job to end — it resolves at once; on JSPI a cancel during a sink write no longer waits for the write
  • Fixed one failed web worker start making every later operation of that Pdf fail — the next operation starts a worker again
  • Fixed a lane that panicked (native) or trapped (web) going on to serve jobs on broken engine state — the lane ends, operations on its documents fail with a typed error, and new work goes to a new lane
  • Fixed builder.save, editor.save and extractAttachment succeeding in web OPFS mode when the sink threw, and a slow sink piling chunks up in memory — the worker now spools output to disk and the sink is awaited chunk by chunk, so its error fails the op
  • Fixed a Pdf that was never disposed keeping its workers, lanes and registered fonts for good — they are released when it is garbage collected, with a debug warning
  • Fixed the blob URL of a cross-origin worker bootstrap never being revoked — it goes once the worker has started or failed to
  • Fixed text extraction giving wrong characters for fonts whose ToUnicode CMap ends lines with a bare CR, puts several ranges on one line or splits a range's array across lines — every range entry is read
  • Fixed a full save writing a PDF name that contains a delimiter such as ( or < unescaped, so the name ended early and the rest of its dictionary was misread — delimiters are written as #XX
Commits since v5.0.1-dev.0 (11)
  • 5e9f6a4 stamp: asset hashes for v6.0.0-dev.0
  • b774fc6 release: v6.0.0-dev.0
  • 9c0f86e feat!: 6.0.0: bounded memory, complete redaction, a new API and a migration guide from every version (#262)
  • f4cec27 chore: bump the deps group across 1 directory with 6 updates (#272)
  • fd31eef chore: refresh lockfiles (#266)
  • 99f8c0a chore: bump pinned versions (#267)
  • ac6cec9 chore: bump Flutter SDK (#265)
  • 56a5a1f ci: bump all action refs (workflows + composites) (#264)
  • e28b2a6 chore: refresh lockfiles (#260)
  • f08b245 Merge branch 'prod' into dev
  • 02ae148 release: promote dev → prod (v5.0.0) (#250)

5.0.1-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed a keep: list without extract, such as keep: [], failing to compile the engine with cannot find search in crate — the search module now compiles in every keep-set (#256 reported by @DarkWingMcQuack)
  • Fixed a PDF encrypted with Standard Security R2–R4 (RC4) failing to open on web with compiled without 'legacy-crypto' — the web engine now carries the same legacy encryption and ICC colour support as native (#257 reported by @crurui)
Commits since v5.0.0-dev.0 (10)
  • 74785df stamp: asset hashes for v5.0.1-dev.0
  • bca68d3 release: v5.0.1-dev.0
  • 51a259f fix: every keep-set compiles, and web opens R2-R4 encrypted PDFs (#256, #257) (#258)
  • 7896412 chore: bump Flutter SDK (#254)
  • f2a90a9 chore: refresh lockfiles (#253)
  • 13d080c chore: bump pinned versions (#252)
  • 5f34453 chore: bump the deps group with 2 updates (#255)
  • 6cbe43b chore: refresh lockfiles (#251)
  • d39c358 Merge branch 'prod' into dev
  • 2bc950c release: promote dev → prod (v4.2.0) (#242)

5.0.0-dev.0 #

Migrating from 4.2.0: the migration guide has the before and after code for every breaking change below.

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Breaking: PdfEditor.optimizeImages(quality:, minSize:) is removed → use reduceImages(PdfImagePolicy(jpegQuality: quality, minPixels: minSize, convertCmykToRgb: true)); the count it returned is report.changed
  • Breaking: compress(imageQuality:) → compress(images:), a PdfImagePolicy defaulting to PdfImagePolicy.ebook (150 ppi, JPEG quality 75), so a plain compress now downsamples images drawn above 225 ppi; pass PdfImagePolicy(jpegQuality: q) for the old behaviour
  • Breaking: the editor's reads are noun methods, never with a get prefix: getTitle() and the other metadata reads → metadata(), getPageMediaBox(page) → pageInfo(pages:), and on PdfDoc getSignatures() → signatures()
  • Breaking: flattenAllAnnotations() is flattenAnnotations({int? page}), and flattenForms() gains the same optional page; without it both flatten every page as before
  • Breaking: applyRedactions() now returns a PdfRedactionReport (regions, glyphs removed, images modified or removed, paths pruned) instead of void; awaiting it still applies the redactions
  • Breaking: mergeFrom(other) gains pages: (a 0-based list; null merges every page) and embedFile(name, data) gains description:, mimeType: and relationship:; positional callers are unchanged
  • Added PdfEditor.pageImages(page) — every image XObject drawn on a page with its resource name, bounds and transform; the name is what setImageBounds takes
  • Added PdfEditor.setImageBounds(page, name, bounds) — move, or move and resize, an image by the name pageImages lists
  • Added PdfEditor.reduceImages(PdfImagePolicy) — downsamples images to the resolution they are drawn at and re-encodes them by kind (JPEG, predicted Flate, CCITT G4), soft masks included, presets screen/ebook/print/lossless, one PdfImageReport row per image with the reason when it is kept; images reached only through annotation appearances, patterns or inline BI … EI stay as stored
  • Added compress(images: PdfImagePolicy.screen) — the one-shot takes the same policy
  • Added PdfImagePolicy.minSavings (default 10%: a lossy re-encode must earn its bytes or the image is kept), chromaSubsampling (auto = 4:4:4 from quality 90, full, half; print pins full) and recompressJpeg (re-encode stored JPEGs at jpegQuality even when not downsampled; off by default)
  • Added PdfEditor.pageInfo({pages}) with each page's mediaBox and cropBox (null when the page has none), setMediaBox, setCropBox (null removes it) and setRotation (absolute, where rotatePages is relative), each over a PdfPages
  • Added PdfMetadata.copyWith, and modDate is read from a document's info dictionary, where it stayed null
  • Added PdfEditor.clearEraseRegions(page) to drop the regions queued by eraseRegions before save
  • Added PdfEditor.sanitize(PdfSanitizeOptions) — strip metadata, JavaScript actions and embedded files in one pass; scrubMetadata() is its metadata-only form
  • Added PdfDoc.formFields and formField(name) — every AcroForm field with its type, typed value, tooltip, bounds, max length, alignment and read-only/required flags
  • Added the form field property setters on PdfEditor: removeFormField, setFormFieldReadOnly, setFormFieldRequired, setFormFieldTooltip, setFormFieldBounds, setFormFieldMaxLength, setFormFieldAlignment, setFormFieldBackgroundColor, setFormFieldBorderColor, setFormFieldBorderWidth, setFormFieldAppearance and setFormFieldFlags — each read back after save by formFields
  • Added PdfDoc.exportFormData(sink, format:) — the filled values as FDF or XFDF
  • Added PdfDoc.xfa (PdfXfaInfo with field count, page count and field types, or null without an XFA packet) and the one-shot convertXfaToAcroForm(source, output) that rewrites an XFA form as a plain AcroForm
  • Added PdfDoc.attachments (name, size, description, MIME type, read from the name tree without decoding the files) and extractAttachment(name, sink)
  • Fixed images optimized in an edit session being saved unchanged — the full-rewrite writer copied page-referenced XObjects from the source and skipped the staged replacement
  • Fixed pageImages listing Form XObjects — only /Subtype /Image resources are listed, so every name is a valid setImageBounds target
Commits since v4.2.1-dev.0 (3)
  • 2d76767 stamp: asset hashes for v5.0.0-dev.0
  • 8db6564 release: v5.0.0-dev.0
  • 83d218f feat!: 5.0.0 — image reducer, image edits, and every PLANNED capability row (#249)

4.2.1-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed a DOCX table converting to PDF several times wider than declared, columns off the page — the converter now honours the w:tblGrid widths, scaled to the printable width (#243 reported by @kampmapa1-design)
  • Fixed a web instance failing with WASM init failed: Out of memory during rapid create-and-dispose churn — a worker slot is freed when the browser confirms the worker is gone, not at terminate()
  • Fixed a page's media box reporting the far corner as its width and height whenever the MediaBox origin is not (0, 0)
  • Fixed form field property changes being lost on save unless the form was also flattened — the engine wrote only the value; every property and a removed field now reach the saved file
  • Fixed eraseRegions and addRedaction acting on the wrong rectangle — the width and height were passed where the far corner was expected, so every region past the origin was off by its own size
  • Fixed addStamp losing the stamp on save when its rectangle sits high on the page — the same size-for-corner mix-up placed the label above the page edge; the builder's image was drawn at the wrong size for the same reason
  • Fixed mergeFrom dropping the merged document's form fields — the pages arrived but no /Fields entry pointed at them, so they could not be listed or filled; the AcroForm is carried across now
  • Fixed compress and full-rewrite saves taking 25 seconds on a 3.8 MB file whose object streams hold large arrays, and 460 ms on a 10-page file of 3,500 objects — each object read more of the file than it needed, and the first now takes half a second, the second 60 ms
  • Fixed an LZW stream decoding to wrong bytes without an error when it sets /EarlyChange 0 or needs the other code-width switch — /EarlyChange is read now (default 1), and LZW files decode about twice as fast
  • Fixed an embedded file's MIME type being written as text#232Fplain — the solidus was escaped twice
  • Vendored engines synced upstream: pdf_oxide v0.3.73 → v0.3.78 and office_oxide v0.1.3 → v0.1.11 (extraction, rendering, table-structure and legacy .doc fixes)
Commits since v4.2.0-dev.0 (9)
  • 223ca3c stamp: asset hashes for v4.2.1-dev.0
  • 5ab9510 release: v4.2.1-dev.0
  • b72a04d fix: DOCX tables convert at their declared widths (#243); vendors synced; web worker budget frees a slot on confirmed death (#248)
  • e16164f chore: bump pinned versions (#245)
  • afd708e chore: refresh lockfiles (#246)
  • bd388a8 chore: bump Flutter SDK (#247)
  • 30cd3f0 chore: bump code_assets from 1.2.1 to 2.0.0 in the deps group (#244)
  • 357d6e4 Merge branch 'prod' into dev
  • 00054ef release: promote dev → prod (v4.1.0) (#210)

4.2.0-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Added setCheckboxFieldValue(fieldName, checked) — checks a checkbox without knowing its on-state name (/Yes, /On, /1 …); setFormFieldValue still takes the name directly
  • Fixed a checked checkbox flattening as an empty box and losing its value on reopen — button values are read, resolved and written as appearance-state names, and flattening draws the state that was set (#215 reported by @DarkWingMcQuack)
  • Fixed radio groups being impossible to select — the state is set on the kid widget that offers it (siblings cleared), and the Radio/Pushbutton flag bits are read per ISO 32000-1
Commits since v4.1.0-dev.0 (31)
  • 542956d stamp: asset hashes for v4.2.0-dev.0
  • f3ceb40 release: v4.2.0-dev.0
  • 750cc12 fix: checked checkboxes and selected radios flatten as set (#215) (#218)
  • 97a47b1 ci: whuppi/ci v2.7.3 (#241)
  • 6649f0c ci: pkg: Web rows keep their host hook tree on ghcr under their own family (#240)
  • cd33e85 ci: int: Android rows keep their hook trees on ghcr under their own family (#239)
  • b4c655c ci: verify: Android and verify: macOS keep their hook trees on ghcr under their own families (#238)
  • 5a89cd4 ci: whuppi/ci v2.7.2 (#237)
  • 6e033aa ci: compile rows keep their release trees on ghcr under their own family (#236)
  • 20b978a ci: whuppi/ci 2.7.0 → 2.7.1 (SDK cache key carries the runner image version) (#235)
  • 3afd1b6 ci: cache diagnostics — restored-artifacts summary; probe dispatch input (#234)
  • 4725c8d ci: whuppi/ci 2.6.3 → 2.7.0; Android SDK components from ghcr on the emulator rows (#233)
  • 070689a ci: the Rust test family keeps its whole target trees on ghcr.io (#232)
  • 2038a2c ci: engine-artifacts archive carries the crates' fingerprints and build dirs (#231)
  • 013ebdf ci: whuppi/ci 2.6.1 → 2.6.3 (ghcr restore resilience, Windows symlinks, emulator version) (#230)
  • 2745f3f ci: whuppi/ci 2.6.0 → 2.6.1 (SDK cache keyed on the .fvmrc version; emulator version parse) (#229)
  • fe18919 ci: keep the big caches on ghcr.io via whuppi/ci 2.6.0 oci-cache (#228)
  • c6d178e ci: compile rows share the deps archive and own only their engine-artifacts archive (#227)
  • 28f2d02 ci: warm the caches from dev; PR runs read only; delete a PR's caches on close (#226)
  • a7bb13f ci: run the engine test suites through cargo-nextest and link with mold (#225)
  • 6d2c92d ci: cache cargo's target dir with rust-cache; one target dir for every build path; cold guard (#224)
  • d17f23c chore: refresh lockfiles (#222)
  • 048a591 ci: bump all action refs (workflows + composites) (#213)
  • e992002 chore: reformat under the Flutter 3.47.2 formatter (#221)
  • 7d27b2a chore: bump pinned versions (#211)
  • f6b303b chore: bump Flutter SDK (#214)
  • dee1675 ci: bump whuppi/ci refs to v2.4.1 (#220)
  • 812f1a4 docs: point S8 at where release.sh actually lives (#219)
  • 76adf8e test: mark hook_app_root_test dart:io-exempt (#217)
  • bd94ef4 Merge branch 'prod' into dev
  • c4f6afc release: promote dev → prod (#208)

4.1.0-dev.0 #

  • Action: verify your app after upgrading: keep: auto now actually trims the native engine; if something is missing, state it with keep: [render, …]
  • Added scan-dirs — extra directories for keep: auto to scan beyond lib/ and bin/ (scan-dirs: [tools, packages/shared/lib], relative to your app); a directory that is not there keeps the full binary rather than scanning less
  • Fixed setup ignoring your config when run from a subfolder of your project — both lanes now locate your app from its own .dart_tool/, not from the working directory
  • Fixed keep: auto keeping every capability on native — the build hook scanned its own package instead of your app; it now derives your app from the hook's output path (web was never affected)
  • Fixed the native keep decision never re-evaluating — your source is now a hook dependency, so adding a sign() call recompiles the engine with signatures
Commits since v4.0.0-dev.0 (5)
  • 7b31b73 stamp: asset hashes for v4.1.0-dev.0
  • 9627e9d release: v4.1.0-dev.0
  • 65f4233 feat: scan-dirs, and make keep: auto actually scan your app (#209)
  • b624f54 Merge branch 'prod' into dev
  • eeb322d chore: promote dev to prod (3.0.0) (#179)

4.0.0-dev.0 #

Migrating from 3.0.0: the migration guide has the before and after code for every breaking change below.

  • Breaking: the engine is configured with three flat keys under hooks: user_defines: pdf_manipulator: — keep (auto, [render, …], or omit for everything), detector (only with keep: auto) and build. Migrate: trim: auto → keep: auto, trim: {keep: […]} → keep: […], trim-detector: X → detector: X, drop setup --trim and re-run flutter pub run pdf_manipulator:setup; an invalid config fails the build with a clear message
  • Added build: in the same block — speed (default, prebuilt), size (smaller, opt-level z) or debug (symbols for native crash traces); size and debug compile from source and need Rust
  • Changed the prebuilt-binary download to retry and resume over HTTP Range, so one network blip on a large asset no longer forces a from-source compile
  • Fixed a cryptic feature edition2024 is required cargo error on older Rust toolchains — the build checks the required Rust version first and names the rustup command to run (#183 reported by @mrhazelh)
Commits since v3.0.0-dev.1 (19)
  • 22c2d3a stamp: asset hashes for v4.0.0-dev.0
  • a4c1e09 release: v4.0.0-dev.0
  • 7502a31 feat!: engine config → keep / detector / build; one compile driver; Rust pin+gate (#183); resilient downloads (#185)
  • cca99f0 ci: bump all action refs (workflows + composites) (#207)
  • 5e9c33f chore: refresh lockfiles (#205)
  • 551491b chore: bump Flutter SDK (#204)
  • b983534 ci: one owner for all action refs (whuppi/ci v2.4.0), Dependabot = pub only (#206)
  • 8927f03 ci: revert Renovate — back to dependabot + upgrade-check (#201)
  • c25c058 ci: Renovate — no hourly PR limit for the go-live backlog (#194)
  • e5c7afe ci: Renovate — open bump PRs immediately (drop not-pending) (#191)
  • 37af265 ci: Renovate — disable commit statuses (unblock PR creation) (#189)
  • d52959c ci: go live on Renovate — remove dependabot + upgrade-check shared job (#188)
  • bd510b6 ci: tune Renovate config (pinDigests + schedules) (#187)
  • a474ca5 ci: add self-hosted Renovate (replaces dependabot + sweeps) (#186)
  • da98a3e chore: bump the deps group with 2 updates (#181)
  • ab9217b chore: refresh lockfiles (#184)
  • 2364765 chore: bump Flutter SDK (#182)
  • 9fadb24 Merge branch 'prod' into dev
  • 2002f69 chore: promote dev to prod (2.2.0) (#170)

3.0.0-dev.1 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Changed the web build to compile wasm-bindgen and wasm-opt inside the engine's cargo workspace — wasm-bindgen-cli, binaryen and jq are no longer needed, Rust is the only requirement (#177 reported by @DarkWingMcQuack)
  • Fixed trim: auto counting member names inside comments as usage — the scan ignores comments and prints where each kept member matched, e.g. render (lib/preview.dart:12) (#175 reported by @DarkWingMcQuack)
  • Fixed source builds failing with "rustup: command not found" on Rust installs not managed by rustup — the build asks rustc which targets are installed and uses rustup only as the fallback (#176 reported by @DarkWingMcQuack)
Commits since v3.0.0-dev.0 (6)
  • 04788b6 stamp: asset hashes for v3.0.0-dev.1
  • a6dbd77 release: v3.0.0-dev.1
  • afd3b45 fix: Rust-only trim toolchain — comment-aware scan, rustc target probe, workspace-locked wasm tools (#178)
  • 7322e8d chore: refresh lockfiles (#174)
  • e423aad ci: run analyze-floor in make check and guard battery-runner completeness
  • 4066afa docs(roadmap): record_use ^0.6.0 pin reason + bump trigger (#173)

3.0.0-dev.0 #

Migrating from 2.1.4: the migration guide has the before and after code for every breaking change below.

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Breaking: flattening CJK or emoji form values no longer uses a bundled font (4.4 MB on every install) → register one: await pdf.registerFallbackFont(PdfFallbackFontKind.cjk, fontBytes) (.emoji for emoji); without one the value is still saved, only the baked-in look falls back to the field's font
  • Breaking (only if you took the retracted 2.2.0): trim-detector: analyzer is now scan → change it or delete the line, it is the default
  • Added trim — keep only the features your app uses: trim: auto under hooks: user_defines: pdf_manipulator:, or trim: {keep: [render, signatures]}; on web also run flutter pub run pdf_manipulator:setup --trim; needs Rust, compiled once and cached (#167)
  • Added Pdf.registerFallbackFont(PdfFallbackFontKind, Uint8List)
  • Changed the default binary — dead engine surfaces, barcode support and the embedded fonts are gone: native 28.7 MB → 21.1 MB, gzipped web download 11.3 MB → 7.2 MB; no action needed
  • Fixed the package forcing an old analyzer version onto your app — the dependency is gone; trim: auto uses a dependency-free scan that can only keep slightly more than you use, never less (#171 reported by @DarkWingMcQuack)
  • Fixed the package archive missing the engine's Cargo.lock, which broke trim and every compile-from-source path (#171 reported by @DarkWingMcQuack)
  • Fixed the web compile error telling you to install wasm-pack — it now names the tool it actually misses, with the install command
Commits since v2.2.0-dev.0 (6)
  • 5a47dd7 stamp: asset hashes for v3.0.0-dev.0
  • 8e78afc release: v3.0.0-dev.0
  • 23fe620 fix: ship vendor Cargo.lock in the pub tarball + tarball gate (#171) (#172)
  • 6ce511d Merge branch 'prod' into dev
  • f15167e chore: bump pinned versions (#168)
  • 14cd751 chore: promote dev to prod (2.1.4) (#164)

2.2.0-dev.0 #

Retracted on pub.dev: the published archive was missing a build file (the engine's Cargo.lock), breaking trim and compile-from-source installs. Superseded by 3.0.0, which consolidates everything here. Migrating from 2.1.4: the migration guide has the before and after code for this change, in its 3.0.0 section.

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Breaking: flattening CJK or emoji form values no longer uses a bundled font (4.4 MB on every install) → register one: await pdf.registerFallbackFont(PdfFallbackFontKind.cjk, fontBytes) (.emoji for emoji); without one the value is still saved, only the baked-in look falls back to the field's font
  • Added trim — keep only the features your app uses: trim: auto under hooks: user_defines: pdf_manipulator:, or trim: {keep: [render, signatures]}; on web also run flutter pub run pdf_manipulator:setup --trim; needs Rust, compiled once and cached (#167)
  • Added Pdf.registerFallbackFont(PdfFallbackFontKind, Uint8List)
  • Changed the default binary — dead engine surfaces, barcode support and the embedded fonts are gone: native 28.7 MB → 21.1 MB, gzipped web download 11.3 MB → 7.2 MB; no action needed
Commits since v2.1.4-dev.0 (7)
  • 3b51e8e stamp: asset hashes for v2.2.0-dev.0
  • deb536c release: v2.2.0-dev.0
  • ff1309d feat: trim — ship only the ops the app calls (#167) (#169)
  • 41155eb ci: bump dorny/paths-filter from 4.0.1 to 4.0.2 in the actions group (#165)
  • 7cde443 chore: refresh lockfiles (#166)
  • cefb01f Merge branch 'prod' into dev
  • cce6645 chore: promote dev to prod (2.1.3) (#158)

2.1.4-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed flattenForms dropping a field's value when fill and flatten happen in separate editor sessions — the appearance is regenerated from the persisted /V (#161 reported by @DarkWingMcQuack)
  • Fixed addImageStamp erasing a page's form widgets when /Annots is an indirect reference (#161 reported by @DarkWingMcQuack)
  • Fixed a reopened filled form rendering blank where its value should appear — the renderer regenerates a widget's appearance from /V under /NeedAppearances, matching the flattener
Commits since v2.1.3-dev.0 (6)
  • 53a978f stamp: asset hashes for v2.1.4-dev.0
  • 912e0f7 release: v2.1.4-dev.0
  • 0f751b1 docs: 2.1.4 — split-session flatten, indirect /Annots stamp, NeedAppearances render (#163)
  • 0245950 fix: #161 split-session flatten + indirect /Annots stamp (bump pdf_oxide v0.3.73 / office_oxide v0.1.3) (#162)
  • 7dd115d chore: refresh lockfiles (#160)
  • 6e7e8fa chore: bump Flutter SDK (#159)

2.1.3-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed setFormFieldValue reporting field-not-found on forms whose field names are raw UTF-8 (LibreOffice-class producers) — one spec-tolerant text-string decoder covers UTF-16, UTF-8 and PDFDocEncoding (#155)
  • Fixed flattenForms baking mojibake for values outside ASCII (ß → ß) — values decode per ISO 32000-1 §7.9.2.2 and appearance text is written in WinAnsi (#155)
  • Fixed fill → flatten silently dropping the value on widgets without an appearance stream when the field name is non-ASCII — the flattener and the form extractor decode names the same way (#155)
  • Fixed flattening CJK and emoji values drawing nothing — the bundled fallback font ships in native and web builds (#155)
  • Fixed document metadata (getTitle and friends) mangling non-ASCII on read, and writes now encode per spec (#155)
Commits since v2.1.2-dev.0 (9)
  • 50e4f5e stamp: asset hashes for v2.1.3-dev.0
  • 1ef7636 release: v2.1.3-dev.0
  • efa47f2 Merge branch 'prod' into dev
  • 9ed0c7c docs: 2.1.3 — form text-string encoding fixes (#157)
  • 10dee1f chore: bump Flutter SDK (#154)
  • fb5ee1f fix: form fill/flatten non-ASCII text handling (ß, umlauts, CJK) (#156)
  • 9b21629 chore: promote dev to prod (2.1.2) (#153)
  • 4f61ed1 Merge branch 'prod' into dev
  • 657804e chore: promote dev to prod (#129)

2.1.2-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Fixed a Flutter Web WASM (dart2wasm) compile failure — a switch over Object? that dart2js accepted was non-exhaustive under dart2wasm (#145 reported by @DarkWingMcQuack)
  • Fixed pub.dev not advertising Flutter Web support — the web runtime resolves to a stub default that pana can analyze
Commits since v2.1.1-dev.0 (31)
  • 73c9692 stamp: asset hashes for v2.1.2-dev.0
  • 67592eb release: v2.1.2-dev.0
  • ec338d8 ci: bump whuppi/ci to v2.0.4 (#151)
  • 8ae80af ci: bump whuppi/ci to v2.0.3 (#150)
  • 6c267f8 ci: bump whuppi/ci to v2.0.2 (#149)
  • 711055d ci: bump whuppi/ci to v2.0.1 (#148)
  • f8fdf61 docs: 2.1.2 — dart2wasm web fix + web platform on pub.dev (#147)
  • 7c0e15a fix: dart2wasm web build; adopt whuppi/ci v2.0.0 dual-compiler gate (#146)
  • 6fc0ec3 chore: adopt whuppi/ci v1.0.8 (#144)
  • f724639 build: adopt the shared platforms gate + shell lint (#142)
  • f237ade ci: align dependabot/labels/upgrade-body with the workspace shape (#141)
  • 6fe4598 chore: bump pinned versions (#139)
  • f05ed54 build: shared strict analyze gate + whuppi/ci pin bump to v1.0.6 (#140)
  • a98a69f docs: fix stale branch-protection recipe (#138)
  • aa20ef0 ci: bump whuppi/ci shared refs to v1.0.4 (#137)
  • 1614841 ci: migrate onto the shared whuppi/ci@v1.0.1 (#136)
  • 79dc1f8 chore: bump pinned versions (#134)
  • ffb3048 fix: show web platform support on pub.dev (stub-default seam) + pana platform gate (#133)
  • ed305ea chore: bump pinned versions (#130)
  • a82d751 chore: refresh lockfiles (#131)
  • 1ccf266 fix(ci): resolve fvm on windows via native fvm.exe, not a .bat shim (#132)
  • 9af712c Merge branch 'prod' into dev
  • af178e9 fix(ci): refresh the example lockfile with flutter, not dart (#128)
  • 9a8f5d0 chore: bump pinned versions (#127)
  • 21368ff chore: refresh lockfiles (#125)
  • cce4135 ci: verify the dependency floor compiles (analyze on oldest deps) (#126)
  • 464f06c chore: bump pinned versions (#124)
  • 0a58c7b ci: gate .gitmodules to the owner (#123)
  • 7295a0e chore: promote dev to prod (2.1.1) (#122)
  • e9c3bd5 Merge branch 'prod' into dev
  • 8c63ea2 chore: promote dev to prod (2.1.1) (#119)

2.1.1-dev.0 #

  • Fixed the README banner not rendering on pub.dev — the <picture> element is flattened to a plain image in the published package
Commits since v2.1.0-dev.0 (15)
  • fd473e2 stamp: asset hashes for v2.1.1-dev.0
  • 40f64b0 release: v2.1.1-dev.0
  • 3ac56cb ci: unblock the release pipeline + supply-chain & workflow hardening (#121)
  • cd4f499 Merge branch 'prod' into dev
  • c9ef5d0 fix(ci): re-supply git push auth in release.sh (#120)
  • 2724150 docs: add 2.1.1 changelog entry for the README fix (#118)
  • 16d2241 ci: declare repo labels as code with a sync workflow (#117)
  • dc1037d ci: harden CI to zizmor-auditor zero with a supply-chain SSOT (#113)
  • 441ec72 ci: bump actions/stale from 9 to 10 in the actions group (#114)
  • 2dde3f0 ci: auto-close resolved issues with an opt-out guard (#112)
  • 3dbae4e ci: flatten README banner for the pub.dev tarball (#111)
  • f8c7bf1 chore: promote dev to prod (#109)
  • 4bb7149 ci: add changelog version check (#110)
  • 779495f Merge branch 'prod' into dev
  • 15ea53a chore: promote dev to prod (2.0.1) (#101)

2.1.0-dev.0 #

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Added document producer and creation-date metadata — PdfEditor.setProducer() / getProducer() and setCreationDate() / getCreationDate() (raw PDF date strings, e.g. D:20240101120000Z), plus PdfDoc.producer, PdfDoc.creator, and PdfDoc.creationDate read on open
Commits since v2.0.2-dev.0 (3)
  • f1c5705 stamp: asset hashes for v2.1.0-dev.0
  • 6ebf1f4 release: v2.1.0-dev.0
  • 2b5c35e feat: add producer and creation-date document metadata (#108)

2.0.2-dev.0 #

  • Fixed addImageStamp rendering a transparent-background PNG as a solid black box — the alpha channel ships as a grayscale /SMask (#103 reported by @DarkWingMcQuack)
  • Fixed the RenderedPage.data doc — render() returns PNG-encoded bytes (decode to read pixels), not raw RGBA
Commits since v2.0.1-dev.0 (9)
  • 5c1936f stamp: asset hashes for v2.0.2-dev.0
  • 91205dc release: v2.0.2-dev.0
  • cc837da docs: changelog 2.0.2 — addImageStamp PNG transparency fix (#107)
  • 5392e95 ci: bump actions/checkout from 6 to 7 in the actions group across 1 directory (#106)
  • eb15b4d fix: addImageStamp preserves PNG transparency (no black box) (#104)
  • 271c1d5 ci: vendored-engine cargo tests + consistent job names (#105)
  • 0d623bf ci: bump actions/labeler from 5 to 6 in the actions group (#102)
  • 8a41292 Merge branch 'prod' into dev
  • 60e4200 chore: promote dev to prod (1.0.7) (#92)

2.0.1-dev.0 #

Docs-only — no code or API changes.

  • README and every guide (architecture, capabilities, migration, updating, contributing) rewritten, restructured, and verified against the source
Commits since v2.0.0-dev.0 (4)
  • c17c034 stamp: asset hashes for v2.0.1-dev.0
  • f27267d release: v2.0.1-dev.0
  • 9786314 feat: pdf_manipulator/io.dart + README & docs polish (#100)
  • c59fd4a chore: bump Flutter 3.44.1 → 3.44.2 (#98)

2.0.0-dev.0 #

The concurrency rewrite. Every operation now runs fully isolated on its own lane — a dedicated Rust thread (native) or Web Worker (web). Migrating from 1.0.6: the migration guide has the before and after code for every breaking change below.

  • Action: engine updated — web: re-run flutter pub run pdf_manipulator:setup --force web (native updates itself)
  • Breaking: webCoordinatorUrl + webWorkerUrl → one webLaneWorkerUrl
  • Breaking: web now ships lane_worker.js (was coordinator.js + worker.js)
  • Every method returns PdfTask<T> — a Future plus cancel(); cancelling kills just that job
  • pdf.dispose() is instant — no joins, no timeouts, no leaks; in-flight ops resolve with PdfCancelled
  • Operations on different handles now run truly parallel on native (1.x serialized them)
  • Lane budgets never error — past the cap, work queues instead of failing
  • Added PdfConfig.maxLanes — concurrent lanes per instance (default: half the cores, min 2)
  • All three web modes (JSPI, Atomics, OPFS) behave identically; a bad worker/WASM URL now fails instantly with a typed error instead of hanging
  • Fixed flattening — translated appearances no longer land off-page, unfilled fields render their default value, stamps render their label
  • Fixed missing WASM binaries in the 1.0.6 release
  • Fixed Android 16 KB page-size alignment for Google Play API 35+ (PR whuppi/pdf_oxide#1, @Binary-Parse)
Commits since v1.0.6-dev.0 (12)
  • 0d42c7b stamp: asset hashes for v2.0.0-dev.0
  • 4e33dee release: v2.0.0-dev.0
  • b3d1823 feat: lane runtime rewrite + test, docs & CI overhaul (#97)
  • e202281 fix: release gate tag-check fallback for workflow_dispatch (#93)
  • d031a96 Merge branch 'prod' into dev
  • fb93efa feat: 16 KB Android page-size alignment (vendor/pdf_oxide update) (#91)
  • 78dfd87 fix(ci): WASM release assets + binary verification gate (#89)
  • 0091e99 fix(ci): WASM artifacts missing from releases + binary verification
  • c8ff236 chore: promote dev to prod (#88)
  • cc4f9b8 Merge branch 'prod' into dev
  • 1288d12 chore: promote dev to prod (#79)
  • 5cd981f chore: promote dev to prod (#77)

1.0.6-dev.0 #

  • Fixed release build routing for consumer builds (by @Binary-Parse)
  • Fixed Windows NDK linker .cmd extension for Android cross-compilation (by @Binary-Parse)
  • Added CI verify tests — release builds now verified on all 6 targets (Android, iOS, macOS, Linux, Windows, Web)
Commits since v1.0.5-dev.0 (7)
  • 0a431e9 stamp: asset hashes for v1.0.6-dev.0
  • 12a5cfd release: v1.0.6-dev.0
  • 0679c51 chore: add 1.0.6 changelog entries (#86)
  • ce9d7ec fix(ci): release gate only triggers on new changelog versions (#85)
  • 5083450 refactor(ci): capability-based architecture + verify release builds (#82)
  • 0132518 fix(hook): append .cmd to the NDK clang linker on Windows hosts (Android cross-compile fails) (#81)
  • 453b39e fix(hook): add link.dart passthrough, build.json, release-build tests (#80)

1.0.5-dev.0 #

  • Fixed README version not stamped on pub.dev
  • Updated tracking links for web build hook support
Commits since v1.0.4-dev.0 (5)
  • 1e91d32 stamp: asset hashes for v1.0.5-dev.0
  • 044d35d release: v1.0.5-dev.0
  • 694c96e chore: 1.0.5 release — fix README stamp + tracking links (#78)
  • cdabb02 Merge branch 'prod' into dev
  • 9b228dc chore: promote dev to prod (#73)

1.0.4-dev.0 #

  • Web setup now verifies all assets against release hashes — detects stale files automatically
  • setup supports --force to re-download everything, --native to pre-fetch the native binary
Commits since v1.0.3-dev.0 (6)
  • d36c3e0 stamp: asset hashes for v1.0.4-dev.0
  • 92ca1a1 release: v1.0.4-dev.0
  • 8dbad3b chore: add 1.0.4 changelog entries (#76)
  • d912aa1 feat: unified asset resolver — same waterfall for native and web (#75)
  • 223c1a4 Merge branch 'prod' into dev
  • 6a33c47 chore: promote dev to prod (#71)

1.0.3-dev.0 #

  • Fixed changelog on pub.dev
Commits since v1.0.2-dev.0 (7)
  • 8ae9f90 stamp: asset hashes for v1.0.3-dev.0
  • f36d7f2 release: v1.0.3-dev.0
  • 3e0ebd8 chore: add 1.0.3 changelog entries (#72)
  • 77c8738 feat(ci): preview filtered changelog in CI logs before publish approval (#70)
  • c7ffae8 docs: move slopfairy manual comments to workspace rule
  • d4471ac docs: add slopfairy manual comments + changelog preview recipes
  • ab0a74e fix(ci): same-file read-write race in stamp-changelog + bash 3.2 compat

1.0.2-dev.0 #

  • Fixed changelog on pub.dev missing commit history between versions
Commits since v1.0.1-dev.0 (11)
  • 9fad349 stamp: asset hashes for v1.0.2-dev.0
  • b07436c release: v1.0.2-dev.0
  • 0b610c0 fix(ci): edit asset_hashes.dart between markers instead of overwriting
  • 91bd9ad fix(ci): add doc comment to generated asset_hashes.dart constant
  • bd78225 fix(ci): version-scoped staging branch + updated UPDATING.md
  • eb2e822 fix(ci): delete stale _release-staging before push to avoid lock conflicts
  • 6990128 fix(ci): fall back to HEAD when tag doesn't exist yet in commits_collapsible
  • 0ddc9ce fix(ci): correct repo fallback to whuppi/pdf_manipulator
  • 83b44cb feat(ci): rewrite release pipeline — single release.sh, changelog builder, idempotent (#68)
  • 392aaa8 fix(ci): version-level release concurrency + branch-file gate (#67)
  • 722b2dd chore: add 1.0.1 changelog entry (#65)

1.0.1-dev.0 #

  • Added public API doc comments across all exported classes and methods
  • Minimum Android API corrected from 35 to 21 (Android 5.0)
  • Setup command is now flutter pub run pdf_manipulator:setup (avoids triggering native build hooks with dart run)
Commits since v1.0.0-dev.0 (17)
  • 67b9cf0 release: v1.0.1-dev.0
  • d04b556 chore: add 1.0.1-dev.0 prerelease changelog entry (#64)
  • 52b6d52 ci: bump the actions group across 1 directory with 5 updates (#57)
  • 9c798ee fix(ci): notify maintainer to recreate dependabot PRs on new pushes
  • 4ade698 docs: explain Windows DLL lock in dispose test (#60)
  • e8dee7b fix: analyzer clean + web CI + native dispose safety
  • ea9c961 ci: write bore port to artifact for API access
  • 88197b4 ci: split setup/keepalive steps so SSH port shows immediately
  • 07749ec ci: fix bore version (0.6.0), serveo was dead
  • 4b4d6e5 ci: raw sshd + serveo.net tunnel (no binary downloads)
  • 4a4bd3a ci: raw sshd + bore tunnel, no tmate, 5hr timeout
  • 015b951 ci: update debug-ssh workflow
  • 5b71adf ci: add debug-ssh workflow for interactive CI debugging
  • 5874c1a chore: bump Flutter 3.44.0 → 3.44.1 (#50)
  • a26b3c2 chore: add Dependabot for GitHub Actions updates (#56)
  • 684b840 docs: fix rendering + add fvmrc pinning section (#54)
  • c06e2d9 fix: flutter-upgrade PRs created as draft (#53)

1.0.0-dev.0 #

Complete ground-up rewrite — new Rust engine, new instance API, cross-platform (previously Android only). The package docs carry the migration guide and the full capability list. Migrating from the Android-only 0.x plugin: the migration guide takes you straight to the current API, with the before and after code for every call.

  • Engine: pdf_oxide (Rust, MIT/Apache-2.0) replaces the Android-only backend
  • Targets: iOS, Android, macOS, Windows, Linux, Web — previously Android only
  • API: instance-based Pdf() with dispose(); batch editing via pdf.edit(source), create from scratch via pdf.build()
  • I/O: DataSource in, DataSink out — no file paths, no dart:io, same code on every target
  • Errors: typed PdfError sealed class — no more PlatformException
  • Performance: every operation off the main thread, no full-file buffers
  • SDK: requires Dart >=3.10.0
Commits since initial (104)
  • bb19278 release: v1.0.0-dev.0
  • 9d18776 fix: slopfairy PR#51 suggestions — printf credentials + remove redundant gitignore (#52)
  • a548f42 feat: secrets.sh + per-env pub.dev credentials (#51)
  • 8ac73ea fix: add vendor false_secrets at stamp-tag time (#49)
  • 53c52aa fix: force-add Cargo.lock in stamp-tag (gitignored in vendor) (#48)
  • cbae62b fix: auto-detect wasm-bindgen-cli version from Cargo.lock (#47)
  • 3e4e5f6 fix: force-push temp branch + stale comment refs (#46)
  • 81a789f fix: push stamped commit before creating release tag (#45)
  • 90617d2 fix: mode guard was rejecting --github-notes (#44)
  • a07b935 fix: install snippets on release, generic version, cancel-in-progress (#43)
  • 8b4387f feat: unified release pipeline with approval gate (#42)
  • 7b1fac9 fix: move asset_hashes.dart to lib/src/hook/ (#41)
  • 7637a29 fix: false_secrets for test PEM keys + pin example .fvmrc (#40)
  • b16ccc4 fix: single stamp_release.sh for all pre-publish stamping (#39)
  • 51c845b fix: API-based asset hashes, MSVC-first Windows, git identity (#38)
  • 6d44016 fix: publish fails on dirty git + create-release YAML syntax (#36)
  • 5909946 fix: YAML syntax error in create-release.yml (#35)
  • ab2e79f fix: auto-generate commit lists + asset hashes at publish time (#34)
  • 6adbed3 docs: add rebuild-release recovery flow to UPDATING.md (#33)
  • 193c460 fix: compile per-platform — CI builds only the targets it installed (#32)
  • f874171 fix: add validation gate to publish.yml (#31)
  • 8da554d fix: quote YAML expression in publish.yml (#30)
  • 7fc4ae6 fix: publish.yml errors on branch push — replace all bare inputs.tag (#29)
  • d5630a0 docs: fix UPDATING.md release section — correct workflow names, document auto-trigger chain
  • 2d6d65c fix: publish.yml fails on branch push due to inputs.tag in concurrency
  • 26ce093 feat!: cross-platform Rust engine, streaming I/O, web WASM (#28)
  • 7456369 chore: rename main → prod (workflows, docs, ruleset) (#26)
  • 8dcc13f ci: commit-msg hook (merge blocker + printf), promotion-check, hooksPath docs (#23)
  • 074868f ci: fix release-please config and PR formatting (#21)
  • 945a51f ci: add release-please + tag-triggered release pipeline (#19)
  • e5e698e ci: enforce conventional commits via hook + PR title check (#17)
  • 67edc60 add pre-commit hook: reject commits with gitignored files
  • da16d8a untrack example/pubspec.lock (gitignored, should never have been tracked)
  • 9a3dc68 fix: .pubignore for vendor/ + compile WASM before web tests
  • 02e92a5 fix(ci): checkout in workflows before local composite actions
  • 55d9e58 ci: 10 composite actions, zero duplication, test-first flow
  • e6bf54b release: manual re-trigger + overwrite existing releases
  • 9328919 ci: split WASM into its own compile job
  • dfcd65f fix: WASM target + Rust warnings in release CI
  • 2dbb00e hook: rewrite using native_toolchain_rust patterns
  • 28daa58 hook: use StaticLinking for iOS + install both device and sim targets
  • c8f4bfe hook: set NDK linker for Android cargo cross-compilation
  • 4e72a4a ci: add x86_64-linux-android rust target for Android emulator tests
  • c9c26ab ci: fix android emulator-runner cd not persisting between commands
  • eef11c8 ci: commit .metadata, remove destructive flutter create
  • f144ba5 ci: fix Android + iOS integration test failures
  • 6b9e7d7 updating.md: add submodule commit discipline (3-step sequence)
  • bf50a39 submodule: update to include all Rust patches
  • 8fcec5f ci: fix pub get failure — skip example deps in Dart-only jobs
  • a62a36b roadmap: add upstream v0.3.48 office conversion features
  • 621f091 fix upstream URL + expand S1 bump recipe
  • 8e67064 provenance: link to fork repo + branch, document fork convention
  • b93b9ec v1.0.0 API redesign + web feature parity + doc cleanup
  • e7e0338 editor: add missing addStamp + addWatermarkPositioned wrappers
  • 4ba4264 fix migration guide + expand contributing
  • 0374c59 readme: feature×platform matrix, docs table, community files
  • c0e712c bump to 1.0.0, fix stale README references
  • 581e844 v1.0.0 — complete ground-up rewrite
  • a99fbdb Make plugin compatible with Gradle 8+ while keeping support for older versions
  • 4a0102b Update issue templates
  • 257bc10 Update issue templates
  • 9dc0251 * Fixed error "Build file '\pdf_manipulator\android\build.gradle' should not contain a package statement".
  • 8d17db2 * Attempts to fix "x + width must be <= bitmap.width()" exception on some devices in some case of PDF compressing. * Updated documentation regarding PlatformException in Release build: AbstractITextEvent is only for internal usage #2.
  • 8e7c094 Update README.md
  • 51a54b6 Update README.md
  • 939c73f Update README.md
  • bbf346f Update README.md
  • ad48def Update README.md
  • 51eac08 * Updated pub version.
  • 5531a95 * Updated dependency.
  • 4a787c1 * Pub version update.
  • 2a40976 Merge remote-tracking branch 'origin/master'
  • bd9155e * Added new description.
  • 30ab01b Update README.md
  • 2603470 * Updated documentation. * Improved example app.
  • bf5ca20 Merge branch 'master' of https://github.com/chaudharydeepanshu/pdf_manipulator
  • 083f86c Update README.md
  • aab073a Merge branch 'master' of https://github.com/chaudharydeepanshu/pdf_manipulator
  • c8b771e Create LICENSE
  • 76e31b2 Update README.md
  • 64d4388 * Fixes crash on pdfCompressor with unEmbedFonts set true for some pdfs.
  • bcf78e3 * Removed unnecessary catch blocks.
  • dc681b6 * Now pdfDecryption finishes with error on BadPasswordException and PdfException.
  • 22e58a9 * Fixed imagesToPdfs method not working for absolute file paths of files with names containing :.
  • 0d0a83f * Fixed imagesToPdfs method not working for android absolute file paths.
  • a31774e * Fixed imagesToPdfs method not working for android uris. * Fixed imagesToPdfs adding unnecessary padding to pdfs when createSinglePdf is set to false or default. * Updated example and example dependency.
  • 1dea7a8 * Added imagesToPdfs method for converting images to single pdf or multiple pdfs.
  • c21c1f1 * Added pdfEncryption method for pdf encryption. * Added pdfDecryption method for pdf decryption. * Added pdfValidityAndProtection method for getting pdf validity and protection info.
  • c28db0a * Fixed pdfPagesSize method OOM issue also removed redundant properties.
  • 81ae92c * Added positionType in pdfWatermark method which provides various predefined and allows providing custom watermark positions.* AddedpdfPagesSizemethod for getting size info of pages of pdf. * AddedcustomPositionXCoordinatesList, customPositionYCoordinatesListinpdfWatermark` method for more fine controlling of watermark position.
  • 18a5dc9 * Added pdfWatermark method for watermarking pdf.
  • 6886f97 * Added unEmbedFonts for pdfCompressor.
  • c192813 * Added pdfCompressor method for compressing pdf.
  • 48df0f6 * pdfUri is replaced with pdfPath as now pdfPath is capable of taking care both URI path and absolute file path. * pdfsUris is replaced with pdfsPaths as now pdfsPaths is capable of taking care both URI paths and absolute file paths. * Fixed issue of not being able to use absolute file paths. * Flushing pdfWriters when splitting documents for trying to fix OOfM error in some cases.
  • db77334 * Support for rotating, deleting and reordering pdf pages. * Fixes OOfM error in some cases. * Fixes few errors in splitting by byte size.
  • 439b37d new pub.dev version
  • dcd3568 typo fix
  • 42ea493 dependencies updated
  • b4143c9 Update README.md
  • cb740ed Update LICENSE
  • 1bb42a3 Update README.md
  • 87a7c36 added pdf page deleter functionality
  • 90aff66 added other split pdf functions
  • d903a62 Initial commit
81
likes
0
points
7.41k
downloads

Publisher

verified publisherwhuppi.com

Weekly Downloads

Cross-platform PDF toolkit for Flutter. Merge, split, render, extract, search, sign, encrypt, convert, build from scratch. Rust engine, off the main thread.

Repository (GitHub)
View/report issues

Topics

#pdf #ffi #wasm #document #encryption

License

unknown (license)

Dependencies

code_assets, crypto, ffi, hooks, logging, meta, package_config, path, record_use, web, yaml

More

Packages that depend on pdf_manipulator