Skip to content

Commit

Permalink
Merge pull request #193 from julianhille/feature/192-add-missing-defi…
Browse files Browse the repository at this point in the history
…nition

Add missing appending options
  • Loading branch information
julianhille authored Jun 29, 2022
2 parents 0a6427e + f9f5168 commit b043739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- Fixes hard crash to exception when creating a stream with null object and calling createWriter with it
- Fixes missing buffer information for recrypt typescript definition
- Fixes missing options for append pdf pages

## [2.5.0] - 2022-06-23

Expand Down
4 changes: 3 additions & 1 deletion muhammara.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ declare module 'muhammara' {
specificRanges?: [[number, number]];
}

export interface AppendOptions extends MergeOptions {}

export type inInterPagesCallback = () => {}


Expand Down Expand Up @@ -680,7 +682,7 @@ declare module 'muhammara' {
retrieveJPGImageInformation(filePath: FilePath): JPEGInformation;
getObjectsContext(): ObjectsContext;
getDocumentContext(): DocumentContext;
appendPDFPagesFromPDF(source: FilePath | ReadStream): number[];
appendPDFPagesFromPDF(source: FilePath | ReadStream, options?: AppendOptions): number[];
mergePDFPagesToPage(page: PDFPage, file: FilePath | PDFRStreamForFile, options?: MergeOptions, callback?: inInterPagesCallback): this;
mergePDFPagesToPage(page: PDFPage, file: FilePath | PDFRStreamForFile, callback?: inInterPagesCallback) : this;
createPDFCopyingContext(source: FilePath | ReadStream): DocumentCopyingContext;
Expand Down

0 comments on commit b043739

Please sign in to comment.