Commit 35c94a5c authored by Julie Blanc's avatar Julie Blanc

change link of the script + generate correct PDF

parent 40b59b2a
......@@ -4,10 +4,10 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>
Fichier test
Named page
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
<style>
......@@ -17,7 +17,6 @@
@page {
size: 6in 8in;
margin: 20mm 20mm;
/* border: solid 1px black; */
@bottom-left{
content: counter(page);
}
......@@ -95,7 +94,7 @@
<section class="chapter" id="chapter1">
<h1>Lorem ipsum dolor sit amet</h1>
<h1>Chapter 1: Lorem ipsum dolor sit amet</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi non suscipit odio. Aenean ut ligula id mauris efficitur tincidunt vitae non leo. In convallis convallis leo, eget molestie metus imperdiet eu. Praesent pharetra, leo a laoreet mattis, ligula nisl commodo ante, non vestibulum nisi lacus eget magna. Maecenas scelerisque nibh ac felis egestas, egestas elementum risus pellentesque. Nulla iaculis ut leo a iaculis. Donec vel sodales dolor, vel fringilla elit. Vivamus aliquam diam eu maximus elementum. Integer eu urna at felis fermentum hendrerit.
</p>
......@@ -113,7 +112,7 @@
</p>
</section>
<section class="chapter" id="chapter2">
<h1>Praesent placerat lectus</h1>
<h1>Chapter 2: Praesent placerat lectus</h1>
<p>
Praesent placerat lectus ac mauris rhoncus, eget iaculis nisl molestie. Etiam posuere luctus ligula quis ornare. Duis semper lectus vel bibendum dapibus. Morbi a lacus eget augue sagittis euismod. Aliquam non leo quis dui bibendum viverra eu vel erat. Fusce iaculis vulputate leo, sit amet laoreet eros aliquam a. Sed id tellus at ligula porttitor pharetra. Morbi non fringilla augue. Cras sodales egestas mi, et porta orci ultricies sed. Sed et nulla a ligula aliquet accumsan non eleifend quam. Aliquam pellentesque, justo vel interdum accumsan, purus ipsum porttitor lectus, ac luctus risus lectus nec lectus. Cras ut augue condimentum, egestas nisi in, dictum erat. Nullam tincidunt tincidunt tempor. Sed in eleifend nibh, sit amet feugiat nisi. Cras at ante ut urna sagittis dictum ut nec elit.
</p>
......@@ -128,7 +127,7 @@
</p>
</section>
<section class="chapter" id="chapter3">
<h1>Aliquam eget massa loborti</h1>
<h1>Chapter 3: Aliquam eget massa loborti</h1>
<p>
Aliquam eget massa lobortis, maximus leo ac, iaculis quam. Sed non aliquet eros. Integer ultrices consequat tortor eget ullamcorper. Integer quis justo dignissim, porttitor urna sed, faucibus ex. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur elit tortor, pharetra eu nisl vitae, placerat tempus lorem. Praesent rhoncus venenatis sodales. Cras tempor tempus lacus et pharetra. Phasellus at nulla sed ligula gravida hendrerit. Sed lorem tortor, consectetur id tempus eget, accumsan at eros.
</p>
......
......@@ -7,7 +7,7 @@
Page group
</title>
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
<style>
......@@ -42,20 +42,14 @@
.chapter {
page: chapter;
prince-page-group: start; /* for Prince*/
break-before: page;
break-after: page;
page-break-before: always;
page-break-after: always;
}
.aside {
page: aside;
prince-page-group: start; /* for Prince*/
break-before: page;
break-after: page;
page-break-before: always;
page-break-after: always;
}
......
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