Commit b9eaa781 authored by Jérôme Abel's avatar Jérôme Abel
Browse files

add processing pdf code and margin for pdf page

parent 3b5d6a09
......@@ -11,6 +11,12 @@ Layout :
- début : 5 images (2m).
- fin : 3 images (1.36m)
Pages à ajouter :
- 1 page titre
- 5 pages reference
- 1 page de fin vide
- Total : 23 m = 7 pages x 7 lignes x 45.5cm
Marges:
- côtés : 2cm ou pas
- haut : 5cm
......@@ -27,10 +33,32 @@ Marges:
| 5 | | 30 (5+22+3) | 14m |
| 6 | Fin. | 10 (5+5) | 4.6m |
| 7 | | 30 (5+22+3) | 14m |
| Total | | | 113.6m |
| Total | | | 113.6m + 23m (sur 180m) |
## Techniques
## SVG
**Optimisation svg**
```scour -i input.svg -o output.svg --enable-viewboxing --enable-id-stripping --enable-comment-stripping --shorten-ids --indent=none```
\ No newline at end of file
```scour -i input.svg -o output.svg --enable-viewboxing --enable-id-stripping --enable-comment-stripping --shorten-ids --indent=none```
## PROCESSING
**Export pdf**
```
import processing.pdf.*;
PGraphics pdf = createGraphics(300, 300, PDF, "/home/user/Desktop/output.pdf");
pdf.beginDraw();
pdf.background(128, 0, 0);
pdf.line(50, 50, 250, 250);
((PGraphicsPDF) pdf).nextPage();
pdf.background(0, 128, 0);
pdf.line(50, 250, 250, 50);
pdf.dispose();
pdf.endDraw();
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment