# base64topdf

> base64topdf

Latest version **1.1.8** (published 2017-08-23) · 0 weekly downloads

## Install

```sh
npm install base64topdf
pnpm add base64topdf
yarn add base64topdf
bun add base64topdf
```

## Health

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

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2017-08-23 |
| First published | 2017-08-11 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/base64topdf) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | PRABU SANKAR R |
| Maintainers | rpsankar001 |
| Keywords | base64, pdf, pdf, conversion, rtf, plain text, text, plain, encoding, decoding, string, stringtobase64, base64tostring, rtftobase64, base64tortf |

## Links

- npm: https://www.npmjs.com/package/base64topdf
- Repository: https://github.com/rpsankar001/base64topdf
- Homepage: https://github.com/rpsankar001
- Issues: https://github.com/rpsankar001/base64topdf/issues
- npm.io page: https://npm.io/package/base64topdf

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) 0.0.1-security

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.1.8 (latest) — 2017-08-23
- 1.1.7 — 2017-08-23
- 1.1.6 — 2017-08-23
- 1.1.5 — 2017-08-11
- 1.1.4 — 2017-08-11
- 1.1.3 — 2017-08-11
- 1.1.2 — 2017-08-11
- 1.1.1 — 2017-08-11
- 1.0.17 — 2017-08-11
- 1.0.16 — 2017-08-11
- 1.0.15 — 2017-08-11
- 1.0.14 — 2017-08-11
- 1.0.13 — 2017-08-11
- 1.0.12 — 2017-08-11
- 1.0.11 — 2017-08-11
- … 3 more at https://npm.io/package/base64topdf/versions

## README

# base64topdf
Here we are going to convert the base64 content to pdf and neither converts the pdf to base64.
Also we can convert rtfText to plain text and vise versa.



## Importing
```
const base64 = require('base64topdf');
```
## Using npm:
```
$ npm i -g npm
$ npm i --save base64topdf
```


## Why base64topdf?
    Its easy to use and we can convert the pdf as base64 content and vise versa.
    * We can convert RTF content to base64.
    * We can convert String to base64.
    * We can convert pdf to base64.
    * We can convert base64 to pdf.
    * We can convert base64 to string.
    * We can convert plain text to RTF.

## Encoding PDF to Base64
If you wants to encode the pdf file to base64 means you can use this function to Encode it.
```
let encodedPdf = base64.base64Encode('normal.pdf');
```
## Decoding Base64 to PDF
If you wants to decode the base64 string to pdf means you can use this function to Decode it
```
let decodedBase64 = base64.base64Decode('base64Str', 'PdfFileNameToWrite');
```
## Converting RTF to Plain Text
If you wants to convert the rtf format to plain text means you can use this function as mentioned below.
```
let plainText = base64.rtfToText('rtfStr');
```
## Converting PlainText to RTF
If you wants to convert the plain text into rtf format means you can use this function.
```
let rtfText = base64.textToRtf('textStr');
```
## Converting String to Base64
If you wants to convert the String into base64 format means you can use this function.
```
let base64Str = base64.strToBase64('String');
```
## Converting Base64 to String
If you wants to convert the Base64 format to String means you can use this function.
```
let str = base64.base64ToStr('base64Str');
```

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