pdf_manipulator 6.0.2-dev.0
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
convertToPdfAwriting 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
convertToPdfAand 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
convertToPdfAmarking a file as PDF/A when it could not fix every problem — the mark is written only when the conversion is complete - Fixed
validatePdfApassing 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, whereconvertToPdfAmarked andvalidatePdfApassed files that break PDF/A-1's own rules — until this package covers those rules,convertToPdfAchanges nothing ata1andvalidatePdfAreports the file as not compliant, so usea2ora3
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
pdfpackage 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
@DarkWingMcQuackon 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:
DataSourcehas a newclose(), andDataSinkhas newabort(Object reason)andclose(), where the library callsaborton 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:
FileSourceandFileSink.createareawait FileSource.open(file)andawait FileSink.open(file), and whoever opens a source or sink closes it → await the factory and callclose()when the job is over - Breaking:
open,edit,merge,split,compress,signand every other call that opens a PDF take aPdfInputwhere they took aDataSourceand apassword:→ writePdfInput(source, password: 'x');PdfFile(file)andPdfInput.owningopen and close the source for the job - Breaking:
PdfDocisPdfDocument, andpdf.open,pdf.editandpdf.buildreturn the owningPdfDocumentHandle,PdfEditorHandleandPdfBuilderHandle, the only types withdisposeandsave→ rename the type;pdf.read,pdf.rewriteandpdf.buildTodispose for you - Breaking: the one-shots
deletePages,reorderPages,movePage,rotatePages,rotateAllPages,flattenForms,embedFile,watermark,addStamp,addImageStampandconvertToPdfAare removed → call the edit onpdf.editOnce(input, output), for example.removePages(PdfPages.single(0)), or put several edits in onepdf.rewrite - Breaking: the
applyRedactionsone-shot is removed → callapplyRedactions()in apdf.rewritebody - Breaking:
eraseRegionsandclearEraseRegions, on the editor and as a one-shot, are removed → callredact(page, regions, overlay: const PdfRedactionOverlay.none()), orclearRedactions()to drop queued marks - Breaking: the
encryptanddecryptone-shots are removed → callpdf.resave(input, output, save: PdfSave.full(encryption: PdfEncryption.password(ownerPassword: 'x'))), orPdfEncryption.remove()withPdfInput(source, password: 'x')to decrypt - Breaking:
extractPagesis removed → callpdf.editOnce(input, output).keepPages(PdfPages.list([0, 2]))to keep pages in document order, orreorderPages(PdfPageOrder([2, 0]))for another order - Breaking:
split,splitBySizeandsplitByBookmarksare onesplit(input, sinkFor, by: ...)withPdfSplitRule.every(n),.maxBytes(n)or.bookmarks(), andsinkFortakes thePdfSplitPartit is for → rename the call; it returns the parts (index, first page, end page, bookmark title) and no byte sizes - Breaking:
compresshas nogarbageCollectparameter, since it always collects garbage, and itsimagesdefault isPdfImagePolicy.losslesswhere it wasebook→ drop the argument, and passimages: PdfImagePolicy.ebookfor the old result - Breaking:
imagesToPdfgives every page the image's own size, one point per pixel, where it drew each image on an A4 page → passpage: const PdfImagePage(size: PdfImagePageSize.fixed(PdfPageSize.a4()))to keep A4 pages - Breaking:
convertToandconvertToPdfareconvertToOffice(input, output, format:)andconvertFromOffice(document, output, format:), andPdfDocumentFormatisPdfOfficeFormat→ rename the calls and the type - Breaking:
registerFallbackFonttakes the font as aDataSource, which it reads whole, where it tookUint8Listbytes → wrap the bytes:MemorySource(bytes) - Breaking: the
title,author,subject,keywords,creator,producerandcreationDateofPdfDocare fields ofdoc.metadata(PdfMetadata), andcreationDateis a UTCDateTime?where it was a raw PDF date string → readdoc.metadata.title - Breaking: the
isEncrypted,requiresPassword,encryptionAlgorithmandpermissionsofPdfDocare fields ofdoc.encryption(PdfEncryptionInfo), which is null when the document is not encrypted → readdoc.encryption?.permissions - Breaking:
PdfDoc.pagesis gone, and opening a document no longer reads the pages → callawait doc.pageInfo(), ordoc.pageInfo(pages: PdfPages.single(0))for one page - Breaking:
PdfPageInfohaspage,mediaBox,cropBoxand aPdfRotationrotation, where it hadindex, anintrotationandwidthandheightas fields (they stay as getters) → readinfo.page, and compareinfo.rotationwithPdfRotation.r90 - Breaking:
extract({pages, format})istext({pages, format}), which returns the string, andextractText(output, {pages, format}), which writes it to a sink as the engine produces it → callawait doc.text();pagesis optional - Breaking:
search(query:, pages:)issearch(query, {pages}), andSearchResultisPdfSearchHitwith the same fields → drop the label and rename the type - Breaking:
renderreturns aFutureof thePdfRenderedPagedescriptors and writes each page to the sink thatsinkForreturns, where it returned aStreamofRenderedPagewith the bytes;pagesis optional → pass(page) => MemorySink(), or calldoc.bitmap(0)for one page's bytes - Breaking:
extractImagesreturns aFutureofPdfImageInfoand writes each image to the sink thatsinkForreturns, where it returned aStreamofPdfImagewith the bytes;pagesis optional → pass(image) => sink - Breaking:
PdfRenderSize(maxWidth:, maxHeight:)andPdfRenderSize.thumbnail(n)arePdfRenderSize.fit(maxWidth:, maxHeight:), andPdfRenderSize.dpi(n)is new → rename the constructor;thumbnail(n)isfit(maxWidth: n, maxHeight: n) - Breaking: the document's
signatures,formFields,xfaandattachmentsand the editor'spageCount,versionandisModifiedare methods, where they were getters → add the parentheses:await editor.pageCount() - Breaking:
PdfDoc.formField(name)is gone → find the field inawait doc.formFields() - Breaking:
validatePdfAandvalidatePdfUaanswer aPdfValidationReport(isCompliant,errorCount,warningCount) and take aPdfALevelorPdfUaLevel, wherePdfValidationResulthadcompliant,errorsandwarnings,validatePdfUaanswered a bool andlevelwas anint→ readreport.isCompliant - Breaking:
convertToPdfAtakes aPdfALevel(a1,a2,a3) and defaults toa2, where it took anintand defaulted to level 1 → passlevel: PdfALevel.a1for the old default - Breaking:
planSplitByBookmarksisbookmarkRanges(), andPdfBookmarkSplitwithstartPageandendPageisPdfBookmarkRangewithstartandend→ rename the call and the fields - Breaking:
classifyPageisclassifyPages({pages}), a page'stypestring andconfidenceare akind(PdfPageKind), andclassifyDocumentanswers aPdfDocumentKindwhere it answered aPdfDocumentClassification→ readresult.first.kind - Breaking:
PdfFormFieldhaskind(PdfFormFieldKind, withtextField,pushButtonandsignatureField),isReadOnlyandisRequired, where it hadtype(PdfFormFieldType),readOnlyandrequired;PdfCheckedValue.checkedisisChecked→ rename the fields and the type - Breaking: the value of a radio group, combo box or list box reads as
PdfChoiceValuewith the selected option (PdfMultiChoiceValuefor several,PdfNoValuefor none), where a radio group read asPdfCheckedValueand the others asPdfTextValue→ match onPdfChoiceValue - Breaking:
sizeofPdfAttachmentissizeBytes,serialofPdfCertificateInfoisserialNumber, andregionsofPdfRedactionReportisregionCount→ rename the fields - Breaking:
PdfSignatureInfohas a requiredcoversWholeDocumentparameter → pass it where you construct one, in test fakes for example - Breaking: the fields of
PdfPermissionsarecanPrint,canPrintHighQuality,canModify,canCopy,canAnnotate,canFillForms,canExtractForAccessibilityandcanAssemble, where they wereprint,printHq,modify,copy,annotate,fillForms,accessibilityandassemble, andtoBitsis gone → rename the arguments and the fields - Breaking:
monoPpiandminSavingsofPdfImagePolicyarebilevelPpiandminSavingsRatio, andPdfImageOutcomehasbitsPerComponent,isIndexed,minPpiandplacementCountwhere it hadbits,indexed,ppiMinanduses→ rename the fields - Breaking:
rotationofPdfWatermarkStyleisangleDegrees→ rename the argument - Breaking:
PdfExtractionFormat.plainTextisplainand.textislayout, andPdfEncryptionAlgorithmhasrc4Key40,rc4Key128,aesKey128andaesKey256where it hadrc4_40,rc4_128,aes128andaes256→ rename the values - Breaking:
PdfConfig(webLaneWorkerUrl:, maxLanes:)isPdfConfig(webWorkerUrl:, concurrency:)→ rename the arguments;concurrencydefaults tomax(2, cores / 2)operations at once - Breaking: the
setTitle,setAuthor,setSubject,setKeywords,setProducerandsetCreationDateof the editor and the builder are onesetMetadata(PdfMetadata), which replaces the standard fields, and the editor reads them withmetadata()→ change one withsetMetadata((await editor.metadata()).copyWith(title: 'X')) - Breaking:
rotatePage,rotateAllPagesandsetPageRotationarerotatePages(by:, pages:)andsetRotation(rotation, pages:), which take aPdfRotation(r0,r90,r180,r270) where they tookdegrees:→ callrotatePages(by: PdfRotation.r90) - Breaking:
pageMediaBox,pageCropBox,setPageMediaBoxandsetPageCropBoxarepageInfo({pages})withmediaBoxandcropBox,setMediaBox(box, {pages})andsetCropBox(box, {pages})→ a null crop box removes the crop box - Breaking:
deletePageisremovePages(PdfPages), which throwsPdfEngineFailedfor a page the document does not have, or for every page → callremovePages(PdfPages.list([1, 3])) - Breaking:
selectPagesiskeepPages(PdfPages), which keeps the pages in document order, andreorderPages(PdfPageOrder), which keeps them in the order given → callreorderPages(PdfPageOrder([2, 0, 1]))to keep the old order - Breaking:
mergeFrom(source, {pages})isappendPages(PdfInput, {pages}), andpagesis aPdfPageswhere it was a list of indexes → passPdfInput(source, password: 'x')for an encrypted source - Breaking:
addWatermark(page, text)isaddWatermark(text, {pages})with every page as the default, and a page of-1no longer means every page → passpages: const PdfPages.all() - Breaking:
addStamp(page, type:, rect:)andaddImageStamp(page, image, rect:)areaddStamp(stamp, bounds:, pages:)andaddImageStamp(image, bounds:, pages:), andPdfStampTypeisPdfStamp→ writeaddStamp(PdfStamp.draft, bounds: r) - Breaking:
embedFileisaddAttachment→ rename the call - Breaking:
flattenForms({int? page})andflattenAnnotations({int? page})takepages(aPdfPages, every page by default) → writeflattenForms(pages: PdfPages.single(0)) - Breaking:
addRedactionismarkRedaction(page, regions, {overlay}), since the engine never drew the overlay text → passPdfRedactionOverlay.fill(color)for a box of that colour, orPdfRedactionOverlay.none() - Breaking: the editor's
setFormFieldValue,setCheckboxFieldValue,removeFormFieldand the othersetFormField…methods are oneditor.field(name)assetValue,setReadOnly,setRequired,setTooltip,setBounds,setMaxLength,setAlignment,setBackgroundColor,setBorderColor,setBorderWidth,setAppearance,setFlagsandremove→ writeeditor.field('name').setValue(const PdfFormFieldValue.text('Ada')) - Breaking:
resizeImageandrepositionImageare removed, andpageImagesreturnsPdfImagePlacementwhere it returnedPdfPageImage→ callsetImageBounds(page, name, bounds)with the size and position you want - Breaking:
scrubMetadataandsanitize(PdfSanitizeOptions)aresanitize({stripMetadata, stripJavaScript, stripAttachments}), wherePdfSanitizeOptionshadmetadata,javascriptandembeddedFiles→ callsanitize(stripJavaScript: false)forscrubMetadata() - Breaking:
PdfSaveOptionsisPdfSave, andPdfSaveOptions.fullRewrite(compress:, garbageCollect:, encryption:)isPdfSave.full(deflate:, garbageCollect:, encryption:)with aPdfDeflatelevel;save(output, options:)issave(output, save:)and exists only on the handles → rename the class and the arguments - Breaking:
PdfSaveOptionswithincremental()now appends the edits to the original bytes, so a signature over them stays valid, and throwsPdfIncrementalRefusedwhen an append cannot carry them (pages removed or reordered, redaction, content edits, an encrypted or repaired source) → catch it and save withPdfSave.full() - Breaking:
PdfEncryption.configisPdfEncryption.password(ownerPassword:, userPassword:, algorithm:, permissions:), whoseuserPasswordis null for a document that opens without one and whosealgorithmdefaults toaesKey256→ rename the call - Breaking: the subclasses
PdfPagesAll,PdfPagesSingle,PdfPagesList,PdfPagesRange,PdfEncryptionKeep,PdfEncryptionRemove,PdfEncryptionConfig,PdfSaveFullRewrite,PdfSaveIncremental,PdfWatermarkCenter,PdfWatermarkCorner,PdfWatermarkTiled,PdfWatermarkExact,PdfPkcs12CredentialsandPdfPemCredentialsare not exported → call the factory, for examplePdfPages.single(0)orPdfEncryption.keep() - Breaking:
PdfColorand every result and options type (PdfPageInfo,PdfImagePolicy,PdfRectand the rest) arefinalwith value==andhashCode→ replace anextendsorimplementsof one with a wrapper - Breaking:
PdfPages.listis notconst, sorts the indexes, and throwsArgumentErrorfor an empty list, a negative index or an index given twice, where it kept the list as given;PdfPages.from(start)is new → writePdfPages.list([3, 1]) - Breaking: the
bottomof aPdfRectis its lower edge,y, where it wasy + height→ readtopfor the upper edge;PdfRect.fromEdgesbuilds a rectangle fromleft,bottom,rightandtop - Breaking:
PdfInvalidArgumentis removed: a programmer mistake (an empty list, a negative page, a second call on a one-shot) throwsArgumentErrororStateErrorbefore any I/O, and an engine refusal throwsPdfEngineFailed→ catchPdfErrorfor runtime failures only - Breaking:
PdfIoError,PdfEngineError,PdfPageRangeErrorandPdfCryptoErrorarePdfIoFailed,PdfEngineFailed,PdfPageOutOfRangeandPdfCryptoFailed→ rename the type in eachcatchandswitch - Breaking:
PdfSearchErrorandPdfExtractionFailedare removed, since nothing threw them → delete theircatchclauses andswitchcases; engine failures arrive as the otherPdfErrorsubtypes - Breaking:
PdfErrorhas two new subtypes,PdfNotFound(a missing attachment or image) andPdfIncrementalRefused→ add a case to every exhaustiveswitchoverPdfError - Breaking:
addA4Page,addLetterPageandaddPage(width:, height:)areaddPage([PdfPageSize])→ calladdPage(),addPage(PdfPageSize.letter())oraddPage(PdfPageSize.points(400, 300)) - Breaking: the page builder's
fontandataresetFont(name, size)andmoveTo(PdfPoint(x, y)), anddone()andnewPageSameSize()are removed → a page ends when the next is added or the document is saved - Breaking: the page builder's
fieldKeystroke,fieldFormat,fieldValidateandfieldCalculate, and itslinkUrlandlinkPage, are arguments of the call that writes the field or text → passscripts: const PdfFieldScripts(format: 'x')orlink: const PdfLink.url('https://example.com') - Breaking: the page builder's
textFieldtakesvaluewhere it tookdefaultValue,checkboxtakesisCheckedwhere it tookchecked, andradioGrouptakesPdfRadioOption(value, bounds)where options were records → rename the arguments - Breaking:
PdfTextAlignmentisPdfAlignment, and the page builder'simage(data, rect, {altText})isimage(data, bounds, {altText})where a nullaltTextplaces an artifact → rename the type; passaltText: '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)ornone(): a redaction with no overlay removes the content and draws no box - Added
PdfEditor.clearRedactions(), andfield(name).setTooltip,setMaxLength,setBackgroundColorandsetBorderColortake null to remove the tooltip, the limit or the colour - Added
PdfFormFieldValue.choice,.choicesand.none:field(name).setValueselects 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) asPdfAnnotationInfo - Added the page builder calls the engine already had:
appendText,textIn,rect,line,stickyNote(..., at:),stamp(PdfStamp...),freeText,onOpen,onCloseandtable(columns, rows, {options})withPdfTableCellandPdfTableOptions, and aPdfTextStyle,PdfMarkuporPdfLinkargument ontext - Added
PdfBuilder.addImagePage, a page that holds one picture and takes the picture's own size unless you name one - Changed
PdfBuilder.saveto 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 withFileReaderSyncin JSPI, Atomics and Asyncify, and copies to OPFS itself in OPFS mode: aFilefrom a picker opens with no main-thread read and O(1) memory at any size - Added the web Asyncify mode,
asyncify: trueunderhooks: user_defines: pdf_manipulator:, which ships the Asyncify wasm so a browser with neither JSPI norSharedArrayBufferstreams 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 listpdf_oxide_bg.wasmre-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 andcompressto 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
editto 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
appendPagesto 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 throwPdfUnsupported - 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
renderandextractImagesto 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,extractImagesandimagesToPdf(JPEG, fax, interlaced PNG, palettes, raw samples,CIDToGIDMapfonts) 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
applyRedactionsto 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,balancedorbest, defaultbest); 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
compressand every full save to recompress copied page content, pack object streams fuller, drop orphan/Lengthobjects, rewrite LZW as Flate and deflate like zlib level 9: on 13 public test files a losslesscompressis 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
compressto write the source unchanged when its result is not smaller (#268 reported by @DarkWingMcQuack) - Changed
compressto 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
compressto 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
compressto 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.screento re-encode a stored JPEG at its quality even when the image is not downsampled (recompressJpeg: true);ebookandprintstill keep stored JPEGs - Changed
verifySignaturesto check each signature's digest and signer key, where it returnedfalsefor every document;PdfSignatureInfohasisValid,coversWholeDocumentandsigningTimefilled - Changed
registerFallbackFontso a second registration of a kind replaces the first and reaches only thePdfthat 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 reachmerge,split,compress, rendering,bookmarkRanges,classifyPagesand 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; anopenoreditthat finished is closed and reportsPdfCancelled - Changed
Pdfinstances 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
convertFromOfficeandconvertToOfficeto bound hostile.doc,.xls,.pptand ZIP input, to keep what a cut-off.docx,.pptxor.xlsxholds 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 trimmedkeep:) to 1.93 or newer, since the engine's per-thread memory count needs it on Android; the build says so and names therustupcommand - 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;
rendernow adds 2.4 MB where it added 4.8 MB, andofficeadds 5.4 MB where it added 2.9 MB - Fixed
keepPages,splitandremovePageswriting 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
signdropping 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
signwriting a cross-reference table that other readers had to repair — each entry is now 20 bytes - Fixed
PdfSignatureInfoshowing 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.permissionsreporting the wrong flags (a print-allowed file read ascanPrint: false) — the engine's/Pword is read at its spec bit positions - Fixed a save after
markRedactionwithoutapplyRedactionsdrawing 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/Redactannotation) and the page content is left as it was - Fixed
applyRedactionsleaving 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
applyRedactionsleaving 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
applyRedactionsleaving 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
applyRedactionsdropping 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
applyRedactionsrefused 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
reduceImagesleaving 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
convertToPdfAleaving 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,removePagesor a reorder — each kept page keeps its label - Fixed
PdfPageInfo.labelalways beingnull— 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
mergeor any other multi-source op shifting every source after it, so the op read the wrong documents — an empty input now throwsPdfCorrupted - Fixed
compressand 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/Infoand/ID, and an edited title replaces the old/Infoinstead of leaving it behind - Fixed the same input saving to different bytes on every run, so
compressand 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
/Sizewriting new objects over existing ones, and dropping an object it could not read without a word — it now throwsPdfCorrupted - 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
rotatePagesand other per-page edits slowing down with the square of the page count on large documents - Fixed
flattenForms()andflattenAnnotations()of every page leaving pages unflattened after a page was deleted or moved,addImageStampstamping 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.radioGroupalways 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
formFieldsmisreading 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 throwsPdfEngineFailed - 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
PdfPageOutOfRangewith the page and the page count - Fixed a source that fails to read while a document opens throwing
PdfCorrupted— it now throwsPdfIoFailed, 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
renderandextractImagesreturning 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
renderignoring 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
renderdrawing 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
renderdrawing 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
rendercoming 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
openoreditkeeping 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
Pdffail — 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.saveandextractAttachmentsucceeding 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
Pdfthat 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 withoutextract, such askeep: [], failing to compile the engine withcannot 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 → usereduceImages(PdfImagePolicy(jpegQuality: quality, minPixels: minSize, convertCmykToRgb: true)); the count it returned isreport.changed - Breaking:
compress(imageQuality:)→compress(images:), aPdfImagePolicydefaulting toPdfImagePolicy.ebook(150 ppi, JPEG quality 75), so a plaincompressnow downsamples images drawn above 225 ppi; passPdfImagePolicy(jpegQuality: q)for the old behaviour - Breaking: the editor's reads are noun methods, never with a
getprefix:getTitle()and the other metadata reads →metadata(),getPageMediaBox(page)→pageInfo(pages:), and onPdfDocgetSignatures()→signatures() - Breaking:
flattenAllAnnotations()isflattenAnnotations({int? page}), andflattenForms()gains the same optionalpage; without it both flatten every page as before - Breaking:
applyRedactions()now returns aPdfRedactionReport(regions, glyphs removed, images modified or removed, paths pruned) instead ofvoid; awaiting it still applies the redactions - Breaking:
mergeFrom(other)gainspages:(a 0-based list;nullmerges every page) andembedFile(name, data)gainsdescription:,mimeType:andrelationship:; 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 whatsetImageBoundstakes - Added
PdfEditor.setImageBounds(page, name, bounds)— move, or move and resize, an image by the namepageImageslists - 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, presetsscreen/ebook/print/lossless, onePdfImageReportrow per image with the reason when it is kept; images reached only through annotation appearances, patterns or inlineBI … EIstay 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;printpinsfull) andrecompressJpeg(re-encode stored JPEGs atjpegQualityeven when not downsampled; off by default) - Added
PdfEditor.pageInfo({pages})with each page'smediaBoxandcropBox(nullwhen the page has none),setMediaBox,setCropBox(nullremoves it) andsetRotation(absolute, whererotatePagesis relative), each over aPdfPages - Added
PdfMetadata.copyWith, andmodDateis read from a document's info dictionary, where it stayed null - Added
PdfEditor.clearEraseRegions(page)to drop the regions queued byeraseRegionsbefore save - Added
PdfEditor.sanitize(PdfSanitizeOptions)— strip metadata, JavaScript actions and embedded files in one pass;scrubMetadata()is its metadata-only form - Added
PdfDoc.formFieldsandformField(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,setFormFieldAppearanceandsetFormFieldFlags— each read back after save byformFields - Added
PdfDoc.exportFormData(sink, format:)— the filled values as FDF or XFDF - Added
PdfDoc.xfa(PdfXfaInfowith field count, page count and field types, ornullwithout an XFA packet) and the one-shotconvertXfaToAcroForm(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) andextractAttachment(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
pageImageslisting Form XObjects — only/Subtype /Imageresources are listed, so every name is a validsetImageBoundstarget
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:tblGridwidths, scaled to the printable width (#243 reported by @kampmapa1-design) - Fixed a web instance failing with
WASM init failed: Out of memoryduring rapid create-and-dispose churn — a worker slot is freed when the browser confirms the worker is gone, not atterminate() - 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
eraseRegionsandaddRedactionacting 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
addStamplosing 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'simagewas drawn at the wrong size for the same reason - Fixed
mergeFromdropping the merged document's form fields — the pages arrived but no/Fieldsentry pointed at them, so they could not be listed or filled; the AcroForm is carried across now - Fixed
compressand 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 0or needs the other code-width switch —/EarlyChangeis 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
.docfixes)
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…);setFormFieldValuestill 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: autonow actually trims the native engine; if something is missing, state it withkeep: [render, …] - Added
scan-dirs— extra directories forkeep: autoto scan beyondlib/andbin/(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
setupignoring 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: autokeeping 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 withkeep: auto) andbuild. Migrate:trim: auto→keep: auto,trim: {keep: […]}→keep: […],trim-detector: X→detector: X, dropsetup --trimand re-runflutter 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) ordebug(symbols for native crash traces);sizeanddebugcompile 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 requiredcargo error on older Rust toolchains — the build checks the required Rust version first and names therustupcommand 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,binaryenandjqare no longer needed, Rust is the only requirement (#177 reported by @DarkWingMcQuack) - Fixed
trim: autocounting 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)(.emojifor 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: analyzeris nowscan→ change it or delete the line, it is the default - Added trim — keep only the features your app uses:
trim: autounderhooks: user_defines: pdf_manipulator:, ortrim: {keep: [render, signatures]}; on web also runflutter 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
analyzerversion onto your app — the dependency is gone;trim: autouses 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 broketrimand 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), breakingtrimand 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)(.emojifor 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: autounderhooks: user_defines: pdf_manipulator:, ortrim: {keep: [render, signatures]}; on web also runflutter 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
flattenFormsdropping 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
addImageStamperasing a page's form widgets when/Annotsis 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
/Vunder/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
setFormFieldValuereporting 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
flattenFormsbaking 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 (
getTitleand 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 overObject?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
panacan 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()andsetCreationDate()/getCreationDate()(raw PDF date strings, e.g.D:20240101120000Z), plusPdfDoc.producer,PdfDoc.creator, andPdfDoc.creationDateread 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
addImageStamprendering a transparent-background PNG as a solid black box — the alpha channel ships as a grayscale/SMask(#103 reported by @DarkWingMcQuack) - Fixed the
RenderedPage.datadoc —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→ onewebLaneWorkerUrl - Breaking: web now ships
lane_worker.js(wascoordinator.js+worker.js) - Every method returns
PdfTask<T>— aFuturepluscancel(); cancelling kills just that job pdf.dispose()is instant — no joins, no timeouts, no leaks; in-flight ops resolve withPdfCancelled- 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
.cmdextension 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
setupsupports--forceto re-download everything,--nativeto 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 withdart 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()withdispose(); batch editing viapdf.edit(source), create from scratch viapdf.build() - I/O:
DataSourcein,DataSinkout — no file paths, nodart:io, same code on every target - Errors: typed
PdfErrorsealed class — no morePlatformException - 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
pdfCompressorwithunEmbedFontsset true for some pdfs. - bcf78e3 * Removed unnecessary catch blocks.
- dc681b6 * Now
pdfDecryptionfinishes with error on BadPasswordException and PdfException. - 22e58a9 * Fixed
imagesToPdfsmethod not working for absolute file paths of files with names containing:. - 0d0a83f * Fixed
imagesToPdfsmethod not working for android absolute file paths. - a31774e * Fixed
imagesToPdfsmethod not working for android uris. * FixedimagesToPdfsadding unnecessary padding to pdfs whencreateSinglePdfis set to false or default. * Updated example and example dependency. - 1dea7a8 * Added
imagesToPdfsmethod for converting images to single pdf or multiple pdfs. - c21c1f1 * Added
pdfEncryptionmethod for pdf encryption. * AddedpdfDecryptionmethod for pdf decryption. * AddedpdfValidityAndProtectionmethod for getting pdf validity and protection info. - c28db0a * Fixed
pdfPagesSizemethod OOM issue also removed redundant properties. - 81ae92c * Added
positionTypeinpdfWatermarkmethod 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
pdfWatermarkmethod for watermarking pdf. - 6886f97 * Added
unEmbedFontsforpdfCompressor. - c192813 * Added
pdfCompressormethod for compressing pdf. - 48df0f6 *
pdfUriis replaced withpdfPathas nowpdfPathis capable of taking care both URI path and absolute file path. *pdfsUrisis replaced withpdfsPathsas nowpdfsPathsis 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