Skip to content

Commit

Permalink
Make options parameter in pdfFromOffice required (#558)
Browse files Browse the repository at this point in the history
* make options required

* Updating package version

* Updating package version

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
terryyoon-pdftron and github-actions[bot] authored May 13, 2022
1 parent 71c4296 commit b63b42f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface RNPdftron {
getSystemFontList() : Promise<string>;
clearRubberStampCache() : Promise<void>;
encryptDocument(filePath: string, password: string, currentPassword: string) : Promise<void>;
pdfFromOffice(docxPath: string, options?: {applyPageBreaksToSheet?: boolean, displayChangeTracking?: boolean, excelDefaultCellBorderWidth?: number,
pdfFromOffice(docxPath: string, options: {applyPageBreaksToSheet?: boolean, displayChangeTracking?: boolean, excelDefaultCellBorderWidth?: number,
excelMaxAllowedCellCount?: number, locale?: string}) : Promise<string>;
pdfFromOfficeTemplate(docxPath: string, json: object) : Promise<string>;
exportAsImage(pageNumber: number, dpi: number, exportFormat: Config.ExportFormat, filePath: string) : Promise<string>;
Expand All @@ -27,4 +27,4 @@ export {
DocumentView,
Config,
AnnotOptions,
};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-pdftron",
"title": "React Native Pdftron",
"version": "3.0.2-beta.97",
"version": "3.0.2-beta.98",
"description": "React Native Pdftron",
"main": "./lib/index.js",
"typings": "index.ts",
Expand Down

0 comments on commit b63b42f

Please sign in to comment.