Skip to content

Commit 09ddda7

Browse files
committed
Update README.md
1 parent eea4a9e commit 09ddda7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ simply fork or download the project, you can also download and create `.aar` fil
1313
* supports bitmap re usage.
1414
* production proved code. Used in a commercial project.
1515

16-
##### Examples
17-
1. First create XML layouts. give it dimensions in pixels (and for all it's sub views) and proportions according landscape or portrait according to ratio 1:1.41.<br/><br/>
16+
##### How To Use
17+
###### 1. create XML layouts
18+
First create XML layouts. give it dimensions in pixels (and for all it's sub views) and proportions according landscape or portrait according to ratio 1:1.41.<br/><br/>
1819
page1.xml
1920
```
2021
<?xml version="1.0" encoding="utf-8"?>
@@ -33,7 +34,8 @@ page1.xml
3334

3435
you can create as many as pages/templates as you need.
3536

36-
2. implement your View renderer by extending `AbstractViewRenderer` or by anonymously instantiating it and injecting the layout id. the initView(View view) will supply you an inflated View automatically. There are other options but I wont cover it now.
37+
###### 2. Implement a View renderer
38+
implement your View renderer by extending `AbstractViewRenderer` or by anonymously instantiating it and injecting the layout id. the initView(View view) will supply you an inflated View automatically. There are other options but I wont cover it now.
3739
```
3840
AbstractViewRenderer page = new AbstractViewRenderer(context, R.layout.page1) {
3941
private String _text;
@@ -54,7 +56,8 @@ page.setReuseBitmap(true);
5456
5557
```
5658

57-
3. Use `PdfDocument` or `PdfDocument.Builder` to add pages and render and run it all at background with progress bar.
59+
###### 3. Build the PDF document
60+
Use `PdfDocument` or `PdfDocument.Builder` to add pages and render and run it all at background with progress bar.
5861
```
5962
PdfDocument doc = new PdfDocument(ctx);
6063

0 commit comments

Comments
 (0)