Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arshad-yaseen committed Nov 10, 2024
1 parent 74a6880 commit 116aca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 0 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@


## [0.4.7](https://github.com/arshad-yaseen/ocr-llm/compare/0.4.6...0.4.7) (2024-11-10)


### 🔧 Maintenance

* readme ([69eae53](https://github.com/arshad-yaseen/ocr-llm/commit/69eae532c7267f3cfe3a990256600eca6a379617))

## [0.4.6](https://github.com/arshad-yaseen/ocr-llm/compare/0.4.5...0.4.6) (2024-11-10)

### 🔧 Maintenance
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,16 @@ results.forEach(page => {
});
```

### Limitation

Remember that we are sending the data URL of each PDF page as an array to the API or Next.js API route handler. When hosting on providers like Vercel, processing PDFs with more than 25 pages (depending on the content size of each page) may trigger a `FUNCTION_PAYLOAD_TOO_LARGE` error due to their 4.5MB function body size limit. Similar limitations may exist on other hosting platforms.

### `pdfto.images` API Reference

```typescript
pdfto.images(pdfFile, options);
```

### Limitations

- Remember that we are sending the data URL of each PDF page as an array to the API or Next.js API route handler. When hosting on providers like Vercel, processing PDFs with more than 25 pages (depending on the content size of each page) may trigger a `FUNCTION_PAYLOAD_TOO_LARGE` error due to their 4.5MB function body size limit. Similar limitations may exist on other hosting platforms.

**Parameters**:

- `pdfFile`: The PDF file as a `File` object.
Expand Down

0 comments on commit 116aca9

Please sign in to comment.