vivlio-pdf 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@vivliostyle/viewer",
3
+ "description": "Vivliostyle Viewer - HTML+CSS typesetting and rich paged viewing with EPUB/Web publications support",
4
+ "version": "2.45.0",
5
+ "author": "Vivliostyle Foundation",
6
+ "scripts": {
7
+ "build": "gulp build && cross-env NODE_ENV=production rollup -c",
8
+ "build-dev": "gulp build-dev && cross-env NODE_ENV=development rollup -c",
9
+ "clean": "shx rm -rf lib/* .cache",
10
+ "dev": "run-p dev:*",
11
+ "dev:html": "gulp serve-dev",
12
+ "dev:ts": "cross-env NODE_ENV=development rollup -c -w --watch.buildDelay 1000",
13
+ "format": "prettier --write \"{*.{js,md,json},{src,test}/**/*.{ts,js}}\"",
14
+ "lint": "run-p lint:*",
15
+ "lint:css": "stylelint src/scss/{*.*,**/*.*}",
16
+ "lint:ts": "eslint src --fix -f codeframe",
17
+ "serve": "yarn build && gulp serve",
18
+ "test": "echo 'Tests for Vivliostyle Viewer has been disabled. See #618.'"
19
+ },
20
+ "dependencies": {
21
+ "@vivliostyle/core": "^2.45.0",
22
+ "i18next-ko": "^3.0.1",
23
+ "knockout": "^3.5.0"
24
+ },
25
+ "devDependencies": {
26
+ "@eslint/compat": "^1.2.3",
27
+ "@eslint/eslintrc": "^3.1.0",
28
+ "@eslint/js": "^9.14.0",
29
+ "@fortawesome/fontawesome-free": "^5.15.4",
30
+ "@rollup/plugin-commonjs": "^28.0.1",
31
+ "@rollup/plugin-node-resolve": "^15.0.2",
32
+ "@rollup/plugin-replace": "^6.0.1",
33
+ "@rollup/plugin-typescript": "^12.1.1",
34
+ "@types/node": "^22.9.0",
35
+ "@typescript-eslint/eslint-plugin": "^8.14.0",
36
+ "@typescript-eslint/parser": "^8.14.0",
37
+ "browser-sync": "^3.0.3",
38
+ "cross-env": "^7.0.2",
39
+ "eslint": "^9.14.0",
40
+ "eslint-config-prettier": "^9.1.0",
41
+ "eslint-formatter-codeframe": "^7.32.1",
42
+ "eslint-plugin-import": "^2.20.2",
43
+ "eslint-plugin-prettier": "^5.2.1",
44
+ "globals": "^15.12.0",
45
+ "gulp": "^4.0.2",
46
+ "gulp-changed": "^4.0.0",
47
+ "gulp-ejs": "^5.0.0",
48
+ "gulp-notify": "^5.0.0",
49
+ "gulp-plumber": "^1.2.1",
50
+ "gulp-rename": "^2.0.0",
51
+ "gulp-sass": "^5.0.0",
52
+ "node-sass-package-importer": "^5.3.2",
53
+ "npm-run-all": "^4.1.5",
54
+ "postcss": "^8.4.25",
55
+ "rollup": "^2.41.1",
56
+ "rollup-plugin-sourcemaps": "^0.6.2",
57
+ "rollup-plugin-string": "^3.0.0",
58
+ "rollup-plugin-terser": "^7.0.2",
59
+ "sass": "^1.35.1",
60
+ "shx": "^0.3.2",
61
+ "stylelint": "^16.10.0",
62
+ "stylelint-config-standard-scss": "^13.1.0",
63
+ "typescript": "^5.0.4"
64
+ },
65
+ "main": "lib/js/vivliostyle-viewer.js",
66
+ "files": [
67
+ "lib/index.html",
68
+ "lib/js/vivliostyle-viewer.js*",
69
+ "lib/fonts",
70
+ "lib/css",
71
+ "lib/resources",
72
+ "docs/index.html"
73
+ ],
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "repository": {
78
+ "type": "git",
79
+ "url": "https://github.com/vivliostyle/vivliostyle.js.git",
80
+ "directory": "packages/viewer"
81
+ },
82
+ "bugs": {
83
+ "url": "https://github.com/vivliostyle/vivliostyle.js/issues"
84
+ },
85
+ "homepage": "https://github.com/vivliostyle/vivliostyle.js/tree/master/packages/viewer",
86
+ "keywords": [
87
+ "vivliostyle"
88
+ ],
89
+ "license": "AGPL-3.0",
90
+ "engines": {
91
+ "node": ">=20"
92
+ }
93
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright 2015 Daishinsha Inc.
3
+ *
4
+ * Vivliostyle.js is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU Affero General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Vivliostyle.js is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU Affero General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU Affero General Public License
15
+ * along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
16
+ *
17
+ */
18
+
19
+ window.MathJax = {
20
+ MathML: {
21
+ extensions: ["content-mathml.js"],
22
+ },
23
+ showProcessingMessages: false,
24
+ messageStyle: "none",
25
+ skipStartupTypeset: true,
26
+ CommonHTML: {
27
+ // scale: 90,
28
+ linebreaks: {
29
+ automatic: true,
30
+ },
31
+ // styles: {
32
+ // ".MJXc-display": {
33
+ // margin: "0",
34
+ // },
35
+ // },
36
+ },
37
+ "fast-preview": {
38
+ disabled: true,
39
+ },
40
+ AuthorInit: function () {
41
+ MathJax.Hub.processSectionDelay = 0;
42
+ },
43
+ };
@@ -0,0 +1,26 @@
1
+ <svg width="242" height="47" viewBox="0 0 242 47" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0)">
3
+ <path d="M70.457 30.497C71.8783 27.0257 73.2587 23.5407 74.598 20.042C75.9373 16.516 77.14 13.1403 78.206 9.915C78.8893 10.0517 79.4907 10.12 80.01 10.12C80.5293 10.12 81.1307 10.0517 81.814 9.915C81.1307 11.5277 80.3107 13.4683 79.354 15.737C78.3973 18.0057 77.3997 20.411 76.361 22.953C75.3223 25.495 74.2973 28.078 73.286 30.702C72.2747 33.326 71.3727 35.786 70.58 38.082C70.0333 38.0273 69.432 38 68.776 38C68.12 38 67.5187 38.0273 66.972 38.082C66.562 36.9887 66.0563 35.663 65.455 34.105C64.881 32.547 64.2523 30.8933 63.569 29.144C62.913 27.3947 62.216 25.6043 61.478 23.773C60.74 21.9417 60.0293 20.1787 59.346 18.484C58.6627 16.762 58.0203 15.163 57.419 13.687C56.8177 12.211 56.2983 10.9537 55.861 9.915C56.4897 9.96967 57.1047 10.0243 57.706 10.079C58.3347 10.1063 58.9497 10.12 59.551 10.12C60.1523 10.12 60.7537 10.1063 61.355 10.079C61.9563 10.0243 62.5577 9.96967 63.159 9.915C63.6237 11.4457 64.143 13.0583 64.717 14.753C65.3183 16.4477 65.9333 18.1833 66.562 19.96C67.1907 21.7093 67.833 23.4723 68.489 25.249C69.1723 27.0257 69.8283 28.775 70.457 30.497ZM83.2852 10.612C83.2852 9.71 83.5995 8.94467 84.2282 8.316C84.8569 7.68733 85.6222 7.373 86.5242 7.373C87.4262 7.373 88.1915 7.68733 88.8202 8.316C89.4489 8.94467 89.7632 9.71 89.7632 10.612C89.7632 11.514 89.4489 12.2793 88.8202 12.908C88.1915 13.5367 87.4262 13.851 86.5242 13.851C85.6222 13.851 84.8569 13.5367 84.2282 12.908C83.5995 12.2793 83.2852 11.514 83.2852 10.612ZM83.7772 27.463C83.7772 25.7957 83.7499 24.2377 83.6952 22.789C83.6679 21.313 83.5859 19.837 83.4492 18.361C83.8319 18.4157 84.2829 18.4703 84.8022 18.525C85.3215 18.5523 85.8955 18.566 86.5242 18.566C87.8089 18.566 88.8339 18.4977 89.5992 18.361C89.4625 19.837 89.3669 21.313 89.3122 22.789C89.2849 24.2377 89.2712 25.7957 89.2712 27.463V29.103C89.2712 30.7703 89.2849 32.342 89.3122 33.818C89.3669 35.294 89.4625 36.7153 89.5992 38.082C89.2439 38.0273 88.7929 38 88.2462 38C87.7269 38 87.1529 38 86.5242 38C85.8955 38 85.3215 38 84.8022 38C84.2829 38 83.8319 38.0273 83.4492 38.082C83.5859 36.7153 83.6679 35.294 83.6952 33.818C83.7499 32.342 83.7772 30.7703 83.7772 29.103V27.463ZM103.078 32.711C103.952 30.3057 104.786 27.914 105.579 25.536C106.399 23.158 107.205 20.7663 107.998 18.361C108.298 18.4157 108.585 18.4703 108.859 18.525C109.132 18.5523 109.405 18.566 109.679 18.566C109.952 18.566 110.225 18.5523 110.499 18.525C110.772 18.4703 111.073 18.4157 111.401 18.361C110.963 19.427 110.43 20.6707 109.802 22.092C109.173 23.486 108.503 25.0303 107.793 26.725C107.109 28.3923 106.399 30.1963 105.661 32.137C104.95 34.0503 104.28 36.032 103.652 38.082C103.269 38.0273 102.9 38 102.545 38C102.189 38 101.82 38 101.438 38C101.055 38 100.686 38 100.331 38C99.9753 38 99.6063 38.0273 99.2236 38.082C98.677 36.524 98.062 34.802 97.3786 32.916C96.7226 31.03 96.0666 29.185 95.4106 27.381C94.7546 25.5497 94.1396 23.8413 93.5656 22.256C92.9916 20.6707 92.5133 19.3723 92.1306 18.361C92.7046 18.4157 93.2513 18.4703 93.7706 18.525C94.3173 18.5523 94.8503 18.566 95.3696 18.566C95.889 18.566 96.3946 18.5523 96.8866 18.525C97.406 18.4703 97.9253 18.4157 98.4446 18.361C99.1826 20.7663 99.9206 23.158 100.659 25.536C101.424 27.914 102.203 30.3057 102.996 32.711H103.078ZM114.968 21.354C114.968 18.6753 114.94 16.2153 114.886 13.974C114.831 11.7327 114.749 9.464 114.64 7.168C114.995 7.22266 115.446 7.27733 115.993 7.332C116.539 7.35933 117.113 7.373 117.715 7.373C118.316 7.373 118.89 7.35933 119.437 7.332C119.983 7.27733 120.434 7.22266 120.79 7.168C120.68 9.464 120.598 11.7327 120.544 13.974C120.489 16.2153 120.462 18.6753 120.462 21.354V24.019C120.462 26.6977 120.489 29.1577 120.544 31.399C120.598 33.6403 120.68 35.868 120.79 38.082C120.434 38.0273 119.983 38 119.437 38C118.89 38 118.316 38 117.715 38C117.113 38 116.539 38 115.993 38C115.446 38 114.995 38.0273 114.64 38.082C114.749 35.868 114.831 33.6403 114.886 31.399C114.94 29.1577 114.968 26.6977 114.968 24.019V21.354ZM125.887 10.612C125.887 9.71 126.201 8.94467 126.83 8.316C127.458 7.68733 128.224 7.373 129.126 7.373C130.028 7.373 130.793 7.68733 131.422 8.316C132.05 8.94467 132.365 9.71 132.365 10.612C132.365 11.514 132.05 12.2793 131.422 12.908C130.793 13.5367 130.028 13.851 129.126 13.851C128.224 13.851 127.458 13.5367 126.83 12.908C126.201 12.2793 125.887 11.514 125.887 10.612ZM126.379 27.463C126.379 25.7957 126.351 24.2377 126.297 22.789C126.269 21.313 126.187 19.837 126.051 18.361C126.433 18.4157 126.884 18.4703 127.404 18.525C127.923 18.5523 128.497 18.566 129.126 18.566C130.41 18.566 131.435 18.4977 132.201 18.361C132.064 19.837 131.968 21.313 131.914 22.789C131.886 24.2377 131.873 25.7957 131.873 27.463V29.103C131.873 30.7703 131.886 32.342 131.914 33.818C131.968 35.294 132.064 36.7153 132.201 38.082C131.845 38.0273 131.394 38 130.848 38C130.328 38 129.754 38 129.126 38C128.497 38 127.923 38 127.404 38C126.884 38 126.433 38.0273 126.051 38.082C126.187 36.7153 126.269 35.294 126.297 33.818C126.351 32.342 126.379 30.7703 126.379 29.103V27.463ZM150.213 27.258C150.213 24.8527 149.912 22.994 149.311 21.682C148.71 20.3427 147.712 19.673 146.318 19.673C145.061 19.673 144.063 20.411 143.325 21.887C142.614 23.363 142.259 25.6727 142.259 28.816C142.259 29.964 142.327 31.03 142.464 32.014C142.601 32.998 142.819 33.859 143.12 34.597C143.448 35.3077 143.858 35.868 144.35 36.278C144.869 36.688 145.512 36.893 146.277 36.893C148.901 36.893 150.213 33.6813 150.213 27.258ZM136.191 28.775C136.191 26.9437 136.464 25.3447 137.011 23.978C137.585 22.6113 138.337 21.477 139.266 20.575C140.195 19.6457 141.261 18.9623 142.464 18.525C143.694 18.0603 144.951 17.828 146.236 17.828C149.434 17.828 151.908 18.73 153.657 20.534C155.406 22.338 156.281 24.7843 156.281 27.873C156.281 29.5403 156.035 31.0437 155.543 32.383C155.051 33.7223 154.354 34.8703 153.452 35.827C152.577 36.7563 151.525 37.4533 150.295 37.918C149.065 38.3827 147.712 38.615 146.236 38.615C145.006 38.615 143.79 38.451 142.587 38.123C141.412 37.795 140.346 37.2483 139.389 36.483C138.432 35.6903 137.653 34.6653 137.052 33.408C136.478 32.1507 136.191 30.6063 136.191 28.775ZM160.449 33.039C160.613 33.4763 160.818 33.9 161.064 34.31C161.337 34.6927 161.665 35.048 162.048 35.376C162.431 35.6767 162.882 35.9227 163.401 36.114C163.948 36.3053 164.576 36.401 165.287 36.401C166.244 36.401 166.982 36.155 167.501 35.663C168.02 35.171 168.28 34.638 168.28 34.064C168.28 33.4353 168.048 32.9297 167.583 32.547C167.118 32.1643 166.531 31.8227 165.82 31.522C165.137 31.194 164.385 30.866 163.565 30.538C162.745 30.21 161.98 29.8 161.269 29.308C160.586 28.7887 160.012 28.1463 159.547 27.381C159.082 26.6157 158.85 25.6317 158.85 24.429C158.85 23.281 159.055 22.297 159.465 21.477C159.902 20.6297 160.463 19.9463 161.146 19.427C161.829 18.8803 162.595 18.484 163.442 18.238C164.317 17.9647 165.178 17.828 166.025 17.828C167.173 17.828 168.184 17.992 169.059 18.32C169.961 18.648 170.877 19.1263 171.806 19.755C171.56 20.3017 171.355 20.8893 171.191 21.518C171.027 22.1467 170.904 22.7617 170.822 23.363H169.674C169.592 23.035 169.455 22.6797 169.264 22.297C169.073 21.887 168.813 21.5043 168.485 21.149C168.157 20.7937 167.761 20.5067 167.296 20.288C166.831 20.042 166.271 19.919 165.615 19.919C164.795 19.919 164.098 20.1377 163.524 20.575C162.977 21.0123 162.704 21.5863 162.704 22.297C162.704 22.953 162.936 23.486 163.401 23.896C163.893 24.2787 164.494 24.6203 165.205 24.921C165.916 25.2217 166.695 25.5223 167.542 25.823C168.389 26.1237 169.168 26.52 169.879 27.012C170.59 27.4767 171.177 28.0917 171.642 28.857C172.134 29.6223 172.38 30.6063 172.38 31.809C172.38 33.0117 172.161 34.0503 171.724 34.925C171.287 35.7723 170.699 36.483 169.961 37.057C169.223 37.6037 168.376 38 167.419 38.246C166.49 38.492 165.506 38.615 164.467 38.615C163.237 38.615 162.13 38.4373 161.146 38.082C160.162 37.7267 159.383 37.3577 158.809 36.975C159.137 35.663 159.342 34.351 159.424 33.039H160.449ZM186.512 18.566C186.43 18.976 186.389 19.345 186.389 19.673C186.389 20.0283 186.43 20.37 186.512 20.698L182.904 20.616C182.849 21.2447 182.794 21.969 182.74 22.789C182.712 23.609 182.685 24.4427 182.658 25.29C182.658 26.1373 182.644 26.9573 182.617 27.75C182.617 28.5427 182.617 29.2123 182.617 29.759C182.617 31.1803 182.644 32.3283 182.699 33.203C182.781 34.0777 182.904 34.7473 183.068 35.212C183.232 35.6767 183.464 35.991 183.765 36.155C184.065 36.319 184.448 36.401 184.913 36.401C185.432 36.401 185.815 36.3737 186.061 36.319C186.307 36.237 186.553 36.1277 186.799 35.991V37.672C186.252 37.918 185.569 38.1367 184.749 38.328C183.929 38.5193 183.122 38.615 182.33 38.615C178.858 38.615 177.123 36.5377 177.123 32.383C177.123 31.5903 177.136 30.702 177.164 29.718C177.191 28.7067 177.218 27.6817 177.246 26.643C177.3 25.577 177.341 24.5383 177.369 23.527C177.396 22.4883 177.41 21.5317 177.41 20.657L174.54 20.698C174.622 20.37 174.663 20.0283 174.663 19.673C174.663 19.345 174.622 18.976 174.54 18.566L177.41 18.689C177.41 17.8417 177.396 17.049 177.369 16.311C177.341 15.573 177.3 14.6847 177.246 13.646C178.202 13.2633 179.145 12.867 180.075 12.457C181.004 12.0197 181.933 11.5687 182.863 11.104L183.273 11.391C183.218 11.8283 183.163 12.3477 183.109 12.949C183.081 13.523 183.04 14.138 182.986 14.794C182.958 15.4227 182.931 16.0787 182.904 16.762C182.904 17.418 182.904 18.0467 182.904 18.648L186.512 18.566ZM198.976 31.235C199.468 29.9777 199.919 28.816 200.329 27.75C200.739 26.6567 201.122 25.6043 201.477 24.593C201.86 23.5817 202.215 22.5703 202.543 21.559C202.898 20.5477 203.254 19.4817 203.609 18.361C203.91 18.4157 204.183 18.4703 204.429 18.525C204.702 18.5523 204.976 18.566 205.249 18.566C205.522 18.566 205.796 18.5523 206.069 18.525C206.342 18.4703 206.643 18.4157 206.971 18.361C206.834 18.7163 206.506 19.4817 205.987 20.657C205.495 21.805 204.88 23.24 204.142 24.962C203.431 26.6567 202.639 28.5427 201.764 30.62C200.889 32.6973 200.001 34.802 199.099 36.934C198.224 39.0387 197.363 41.1297 196.516 43.207C195.696 45.2843 194.972 47.1703 194.343 48.865C194.042 48.8103 193.755 48.7557 193.482 48.701C193.209 48.6737 192.922 48.66 192.621 48.66C192.32 48.66 192.033 48.6737 191.76 48.701C191.487 48.7557 191.2 48.8103 190.899 48.865C191.801 47.061 192.689 45.2707 193.564 43.494C194.439 41.7447 195.286 39.968 196.106 38.164C195.45 36.606 194.712 34.843 193.892 32.875C193.099 30.907 192.307 28.98 191.514 27.094C190.749 25.208 190.038 23.486 189.382 21.928C188.753 20.37 188.275 19.181 187.947 18.361C188.466 18.4157 188.972 18.4703 189.464 18.525C189.983 18.5523 190.503 18.566 191.022 18.566C191.541 18.566 192.047 18.5523 192.539 18.525C193.031 18.4703 193.537 18.4157 194.056 18.361C194.849 20.5203 195.641 22.666 196.434 24.798C197.254 26.93 198.101 29.0757 198.976 31.235ZM210.661 21.354C210.661 18.6753 210.634 16.2153 210.579 13.974C210.524 11.7327 210.442 9.464 210.333 7.168C210.688 7.22266 211.139 7.27733 211.686 7.332C212.233 7.35933 212.807 7.373 213.408 7.373C214.009 7.373 214.583 7.35933 215.13 7.332C215.677 7.27733 216.128 7.22266 216.483 7.168C216.374 9.464 216.292 11.7327 216.237 13.974C216.182 16.2153 216.155 18.6753 216.155 21.354V24.019C216.155 26.6977 216.182 29.1577 216.237 31.399C216.292 33.6403 216.374 35.868 216.483 38.082C216.128 38.0273 215.677 38 215.13 38C214.583 38 214.009 38 213.408 38C212.807 38 212.233 38 211.686 38C211.139 38 210.688 38.0273 210.333 38.082C210.442 35.868 210.524 33.6403 210.579 31.399C210.634 29.1577 210.661 26.6977 210.661 24.019V21.354ZM226.541 28.283C226.541 29.3763 226.65 30.4013 226.869 31.358C227.088 32.3147 227.416 33.1483 227.853 33.859C228.318 34.5423 228.892 35.089 229.575 35.499C230.286 35.8817 231.106 36.073 232.035 36.073C233.921 36.073 235.602 35.458 237.078 34.228L237.57 34.597L236.668 36.893C235.985 37.4123 235.165 37.8223 234.208 38.123C233.251 38.451 231.994 38.615 230.436 38.615C229.097 38.615 227.826 38.4237 226.623 38.041C225.42 37.6857 224.354 37.0843 223.425 36.237C222.523 35.3897 221.799 34.3237 221.252 33.039C220.733 31.727 220.473 30.169 220.473 28.365C220.473 26.5883 220.705 25.044 221.17 23.732C221.662 22.42 222.332 21.3267 223.179 20.452C224.026 19.5773 225.024 18.9213 226.172 18.484C227.347 18.0467 228.618 17.828 229.985 17.828C232.691 17.828 234.755 18.6207 236.176 20.206C237.625 21.7913 238.349 24.0327 238.349 26.93V27.791C238.349 28.037 238.335 28.201 238.308 28.283H226.541ZM232.855 26.438C232.8 24.388 232.541 22.748 232.076 21.518C231.639 20.288 230.887 19.673 229.821 19.673C229.22 19.673 228.714 19.878 228.304 20.288C227.894 20.698 227.566 21.231 227.32 21.887C227.074 22.5157 226.883 23.24 226.746 24.06C226.637 24.8527 226.568 25.6453 226.541 26.438H232.855Z" fill="#333333"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22 45C34.1503 45 44 35.1503 44 23C44 10.8497 34.1503 1 22 1C9.84974 1 0 10.8497 0 23C0 35.1503 9.84974 45 22 45Z" fill="url(#paint0_radial)"/>
5
+ <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="1" width="44" height="44">
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M22 45C34.1503 45 44 35.1503 44 23C44 10.8497 34.1503 1 22 1C9.84974 1 0 10.8497 0 23C0 35.1503 9.84974 45 22 45Z" fill="white"/>
7
+ </mask>
8
+ <g mask="url(#mask0)">
9
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.0015 28.6736C10.4605 0.456858 -1.87772 -2.90857 -1.87772 -2.90857C-13.645 -3.51105 -10.2331 22.1972 -10.2331 22.1972C-10.2331 22.1972 6.5889 19.7642 31.0015 47.9667V28.6736Z" fill="#D15430"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30.9645 28.6736C51.5056 0.456858 63.8438 -2.90857 63.8438 -2.90857C75.611 -3.51105 72.1992 22.1972 72.1992 22.1972C72.1992 22.1972 55.3772 19.7642 30.9645 47.9667V28.6736Z" fill="#73281B"/>
11
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.0015 32.1184C7.72082 4.70831 -6.79713 6.74372 -6.79713 6.74372L-8.59888 12.7332C-8.59888 12.7332 6.18137 9.48336 31.0015 37.8481V32.1184Z" fill="#D5663F"/>
12
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30.9646 32.1184C54.2452 4.70831 68.7632 6.74372 68.7632 6.74372L70.5649 12.7332C70.5649 12.7332 55.7847 9.48336 30.9646 37.8481V32.1184Z" fill="#C5542C"/>
13
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.0015 28.6718C10.4397 0.407112 -1.91087 -2.96404 -1.91087 -2.96404C-13.69 -3.56755 -7.32849 7.01985 -7.32849 7.01985C-7.32849 7.01985 9.11921 6.22857 31.0015 32.3256V28.6718Z" fill="white"/>
14
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30.9645 28.6718C51.5263 0.407112 63.8769 -2.96404 63.8769 -2.96404C75.6561 -3.56755 69.2946 7.01985 69.2946 7.01985C69.2946 7.01985 52.8469 6.22857 30.9645 32.3256V28.6718Z" fill="white"/>
15
+ </g>
16
+ </g>
17
+ <defs>
18
+ <radialGradient id="paint0_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(8.26857 1) rotate(72.668) scale(46.0929)">
19
+ <stop stop-color="#096CB1"/>
20
+ <stop offset="1" stop-color="#12217C"/>
21
+ </radialGradient>
22
+ <clipPath id="clip0">
23
+ <rect width="242" height="47" fill="white"/>
24
+ </clipPath>
25
+ </defs>
26
+ </svg>
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vivlio-pdf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Masayoshi Takahashi
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ferrum
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.17'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '0.17'
26
+ - !ruby/object:Gem::Dependency
27
+ name: hexapdf
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
40
+ description: |
41
+ Renders HTML, unzipped EPUB, or webpub publications to print-quality PDF
42
+ (running headers, page counters, TOC leaders, PDF bookmarks) by driving a
43
+ local Chrome/Chromium through CDP with the bundled Vivliostyle Viewer.
44
+ No Node.js required.
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - LICENSE.txt
50
+ - README.ja.md
51
+ - README.md
52
+ - lib/vivlio/pdf.rb
53
+ - lib/vivlio/pdf/document.rb
54
+ - lib/vivlio/pdf/local_file.rb
55
+ - lib/vivlio/pdf/metadata.rb
56
+ - lib/vivlio/pdf/outline.rb
57
+ - lib/vivlio/pdf/printer.rb
58
+ - lib/vivlio/pdf/result.rb
59
+ - lib/vivlio/pdf/session.rb
60
+ - lib/vivlio/pdf/source.rb
61
+ - lib/vivlio/pdf/staged_file.rb
62
+ - lib/vivlio/pdf/toc_item.rb
63
+ - lib/vivlio/pdf/version.rb
64
+ - lib/vivlio/pdf/viewer.rb
65
+ - vendor/viewer/LICENSE
66
+ - vendor/viewer/css/ui.arrows.css
67
+ - vendor/viewer/css/ui.loading-overlay.css
68
+ - vendor/viewer/css/ui.menu-bar.css
69
+ - vendor/viewer/css/ui.message-dialog.css
70
+ - vendor/viewer/css/ui.text-selection-menu.css
71
+ - vendor/viewer/css/vivliostyle-viewer.css
72
+ - vendor/viewer/fonts/fa-solid-900.woff2
73
+ - vendor/viewer/index.html
74
+ - vendor/viewer/js/vivliostyle-viewer.js
75
+ - vendor/viewer/package.json
76
+ - vendor/viewer/resources/mathjax-config.js
77
+ - vendor/viewer/resources/vivliostyle-icon.png
78
+ - vendor/viewer/resources/vivliostyle-logo.svg
79
+ homepage: https://github.com/takahashim/vivlio-pdf
80
+ licenses:
81
+ - AGPL-3.0-or-later
82
+ metadata: {}
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '3.1'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubygems_version: 3.6.9
98
+ specification_version: 4
99
+ summary: CSS paged-media PDF generation for Ruby, powered by Vivliostyle
100
+ test_files: []