# pdf-pages-to-base64-images

> This package use for parse PDF pages (content) to base64 (image)

Latest version **1.0.1** (published 2022-04-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install pdf-pages-to-base64-images
pnpm add pdf-pages-to-base64-images
yarn add pdf-pages-to-base64-images
bun add pdf-pages-to-base64-images
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-04-27 |
| First published | 2022-04-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rashad Yusifov |
| Maintainers | rashad.yusifov |
| Keywords | Pdf, Pdf pages, Pdf to base64, pdf content to base64, Pdf to images, get pdf of images, Open source, JS, JAVASCRIPT PDF TO BASE64 PAGES, ES5 |

## Links

- npm: https://www.npmjs.com/package/pdf-pages-to-base64-images
- Repository: https://github.com/Rashad-Yusifov/pdf-pages-to-base64-images
- Homepage: https://github.com/Rashad-Yusifov/pdf-pages-to-base64-images#readme
- Issues: https://github.com/Rashad-Yusifov/pdf-pages-to-base64-images/issues
- npm.io page: https://npm.io/package/pdf-pages-to-base64-images

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-04-27
- 1.0.0 — 2022-04-27

## README

# PDF PAGES TO BASE64 (IMAGES)

## If you want to install only package
```
npm i pdf-pages-to-base64-images --save
```

## You will make the add-ons yourself, you can download the repository.

```
https://github.com/Rashad-Yusifov/pdf-pages-to-base64-images
```


## How to use ? (example)

```
    import PdfPagesToBase64Image from 'pdf-pages-to-base64-images'; 

    // you must first call this command

    PdfPagesToBase64Image.initDependency();

    // let's keep it up (options) | if you want see more options, please check bottomest of the page


    const options = {
        quality: 1.0,   // 0.1 - 1.0 this range is quality of base64's images
        pdf: 'https://www.YOURSITE.com/your.pdf',   
        getCanvas: false, // when you change it true, you will get canvas tag
        getUrl: true // it's for base64 (images) if you don't need it, you can be false it
    };

    


    // let's keep it up (use)


    PdfPagesToBase64Image.createPages(options).then(res => {
       console.log(res) 
    }).catch(err => {
      console.log(err)
    });



     // And also you can get total Pdf pages count
   
     let totalPage = PdfPagesToBase64Image.totalPage; 


```


## When you have success output it will like that

```
   {
        code: 200,
        message: "SUCCESS",
        data: [
            {
                base64: (...),
                canvas: (element) // if you did select canvas: true
            }
        ]
    }   
```



## When you have error output it will like that

```
   {
        code: 400,
        message: "ERROR",
    }   
```



## Thank you so much for downloading.


```
    if it worked for you, you might add Star.
    that's all.
```

---
_Source: https://npm.io/package/pdf-pages-to-base64-images · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
