Skip to content

Commit

Permalink
Fix rendering codes
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhanmirza committed Jan 12, 2024
1 parent 7881d46 commit 543bf20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ After that you can run `docker-compose up --build`.

SpringBooTex will run as an REST service by default on port 10800;

### Generating PDFs
## Generating PDFs
PDF's are generated by sending an HTTP POST request to the endpoint "/api/generate-pdf" with a JSON payload:
```
{
Expand All @@ -24,15 +24,15 @@ PDF's are generated by sending an HTTP POST request to the endpoint "/api/genera
}
```

#### Example: Generating a PDF from latex template
### Example: Generating a PDF from latex template

See our example LaTex template in [`Doc/example.tex`](https://github.com/shuhanmirza/SpringBooTex/blob/main/Doc/example.tex)

You can see that, the variables are written between two `%` s.
https://github.com/shuhanmirza/SpringBooTex/blob/49782f4cdd94a3e620f92739f7b37f381c3d77c0/Doc/example.tex#L12-21
You can see that, the variables are written between two `%` s.
https://github.com/shuhanmirza/SpringBooTex/blob/49782f4cdd94a3e620f92739f7b37f381c3d77c0/Doc/example.tex#L12-L21

And the pdf has to embed an image named `universe.jpg`
https://github.com/shuhanmirza/SpringBooTex/blob/49782f4cdd94a3e620f92739f7b37f381c3d77c0/Doc/example.tex#L37-38
And the pdf has to embed an image named `universe.jpg`
https://github.com/shuhanmirza/SpringBooTex/blob/49782f4cdd94a3e620f92739f7b37f381c3d77c0/Doc/example.tex#L37-L38

Let's prepare the JSON payload,

Expand Down

0 comments on commit 543bf20

Please sign in to comment.