> For the complete documentation index, see [llms.txt](https://notes.tejpratapsingh.com/pdf-creator-android/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.tejpratapsingh.com/pdf-creator-android/master.md).

# Introduction

A simple library to create and view PDF with zero dependency Or native code.

![](https://3039187864-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_54oaxHlKLK9rJf7AD%2F-M_5USoC8XTnkTmRugjY%2F-M_5tnGp0JTK2l-bjBax%2FiwHraH2sJ.png?alt=media\&token=13933024-fda4-4242-84d4-06475be01a0c)

*A simple library to create and view PDF with zero dependency Or native code.*

[**PDFCreatorAndroid**](https://github.com/tejpratap46/PDFCreatorAndroid) has zero dependency, so you do not need to include any other dependency License.

### Concept:

* Android has capability to print documents to PDF, this library simplifies those API's to generate PDF easily.
* At basic level, API renders Views to PDF. To create A PDF with pages we need to submit views exactly height of one page, any view larges then that that will be trimmed.
* This library creates pages by adding views to a parent view until the next view is about to exceed current page. If next view exceeds current page, that view will be added to new page.
