Skip to content

Commit 8dc6a79

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ 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-
##### How To Use
17-
###### 1. create XML layouts
16+
### Instructions
17+
#### 1. create XML layouts
1818
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/>
1919
page1.xml
2020
```
@@ -34,7 +34,7 @@ page1.xml
3434

3535
you can create as many as pages/templates as you need.
3636

37-
###### 2. Implement a View renderer
37+
#### 2. Implement a View renderer
3838
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.
3939
```
4040
AbstractViewRenderer page = new AbstractViewRenderer(context, R.layout.page1) {
@@ -56,7 +56,7 @@ page.setReuseBitmap(true);
5656
5757
```
5858

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

0 commit comments

Comments
 (0)