chore: update image sources and version bump to 1.2.0

- Changed image sources for GDPR, CCPA, and HIPAA compliance logos to local paths.
- Updated package version to 1.2.0 in package-lock.json.
- Enhanced README and SIMPLE_MODE documentation with Docker usage instructions.
- Improved table-of-contents worker and related TypeScript definitions for better clarity and functionality.
- Refactored CSS styles for consistency and improved UI elements.
This commit is contained in:
abdullahalam123 committed 2025-11-08 13:17:29 +05:30
1 parent 661c030ae1
commit bc181c8c96
16 files changed
+652 -320

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z" fill="#0C4776"/>
<path d="M26 46C37.0457 46 46 37.0457 46 26C46 14.9543 37.0457 6 26 6C14.9543 6 6 14.9543 6 26C6 37.0457 14.9543 46 26 46Z" fill="white" stroke="#007A7F" stroke-width="2"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.9398 16.7218L24.2279 18.9983L31.7583 11.5073L34.6951 14.4291L24.2279 24.8407L19.043 19.683L21.9398 16.7218Z" fill="#007A7F"/>
<path d="M18.1522 35.9595C19.0079 35.9595 19.6653 35.8029 19.9574 35.6568L19.7174 34.4151C19.4044 34.5403 18.8722 34.6447 18.3922 34.6447C16.9731 34.6447 16.1383 33.7577 16.1383 32.349C16.1383 30.7838 17.1192 30.0221 18.3818 30.0221C18.9453 30.0221 19.394 30.1473 19.7174 30.2829L20.0409 29.0203C19.7592 28.8742 19.1331 28.7073 18.3087 28.7073C16.1801 28.7073 14.4688 30.0429 14.4688 32.4429C14.4688 34.4464 15.7209 35.9595 18.1522 35.9595ZM23.8989 35.9595C24.7545 35.9595 25.4119 35.8029 25.7041 35.6568L25.4641 34.4151C25.1511 34.5403 24.6189 34.6447 24.1389 34.6447C22.7198 34.6447 21.885 33.7577 21.885 32.349C21.885 30.7838 22.8658 30.0221 24.1285 30.0221C24.6919 30.0221 25.1406 30.1473 25.4641 30.2829L25.7876 29.0203C25.5059 28.8742 24.8798 28.7073 24.0554 28.7073C21.9267 28.7073 20.2154 30.0429 20.2154 32.4429C20.2154 34.4464 21.4676 35.9595 23.8989 35.9595ZM28.1743 35.8551V33.3403C28.3203 33.3612 28.5082 33.3716 28.7169 33.3716C29.656 33.3716 30.4595 33.1421 31.0021 32.6308C31.4195 32.2342 31.649 31.6499 31.649 30.9612C31.649 30.2725 31.3464 29.6881 30.8977 29.3334C30.4282 28.9577 29.729 28.7699 28.7482 28.7699C27.7777 28.7699 27.089 28.8325 26.5986 28.916V35.8551H28.1743ZM28.7064 32.1508C28.4769 32.1508 28.3099 32.1403 28.1743 32.109V30.0325C28.289 30.0012 28.5082 29.9699 28.8316 29.9699C29.6247 29.9699 30.0734 30.356 30.0734 31.0029C30.0734 31.7229 29.5516 32.1508 28.7064 32.1508ZM33.0235 35.8551L33.5244 34.0499H35.5383L36.0809 35.8551H37.7922L35.6114 28.8221H33.5244L31.3748 35.8551H33.0235ZM35.3087 32.8603H33.754L34.1714 31.3681C34.2861 30.9612 34.3905 30.429 34.4948 30.0116H34.5157C34.6201 30.429 34.7453 30.9508 34.8705 31.3681L35.3087 32.8603Z" fill="#0C4776"/>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

+5
View File
@@ -0,0 +1,5 @@
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z" fill="#0047BD"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.3149 11.2327L26.0039 9.98946L27.693 11.2327L27.0509 9.23793L28.733 7.99473H26.653L26.0109 6L25.3618 7.99473H23.2749L24.957 9.23793L24.3149 11.2327ZM34.6372 12.3214L32.9412 13.5646L33.5903 11.5698L31.9012 10.3266H33.9951L34.6372 8.33189L35.2863 10.3266H37.3593L35.6842 11.5698L36.3263 13.5646L34.6372 12.3214ZM39.2647 19.928L40.9607 18.6918L42.6498 19.928L42.0076 17.9332L43.6827 16.6971H41.6098L40.9607 14.7023L40.3186 16.6971H38.2247L39.9138 17.9332L39.2647 19.928ZM7.03298 28.6093L8.72902 27.3731L10.4181 28.6093L9.77596 26.6216L11.4511 25.3784H9.37812L8.736 23.3836L8.0869 25.3784H6L7.68208 26.6216L7.03298 28.6093ZM9.34325 37.3046L11.0393 36.0684L12.7283 37.3046L12.0862 35.3099L13.7683 34.0737H11.6884L11.0393 32.079L10.3972 34.0737H8.31027L9.99235 35.3099L9.34325 37.3046ZM17.3702 42.4249L15.6811 43.6681L16.3233 41.6734L14.6412 40.4302H16.7281L17.3772 38.4355L18.0193 40.4302H20.0992L18.4171 41.6734L19.0593 43.6681L17.3702 42.4249ZM24.3149 46L26.0039 44.7568L27.693 46L27.0509 44.0052L28.733 42.7691H26.653L26.0109 40.7743L25.3618 42.7691H23.2749L24.957 44.0052L24.3149 46ZM34.6372 42.4249L32.9412 43.6681L33.5903 41.6734L31.9012 40.4302H33.9951L34.6372 38.4355L35.2863 40.4302H37.3593L35.6842 41.6734L36.3263 43.6681L34.6372 42.4249ZM39.2647 37.3046L40.9607 36.0684L42.6498 37.3046L42.0076 35.3099L43.6827 34.0737H41.6098L40.9607 32.079L40.3186 34.0737H38.2247L39.9138 35.3099L39.2647 37.3046ZM43.2779 27.3731L41.5819 28.6093L42.231 26.6216L40.5489 25.3784H42.6358L43.2849 23.3836L43.927 25.3784H46L44.3249 26.6216L44.967 28.6093L43.2779 27.3731ZM17.3702 12.3214L15.6811 13.5646L16.3233 11.5698L14.6412 10.3266H16.7281L17.3772 8.33189L18.0193 10.3266H20.0992L18.4171 11.5698L19.0593 13.5646L17.3702 12.3214ZM9.34325 19.928L11.0393 18.6918L12.7283 19.928L12.0862 17.9332L13.7683 16.6971H11.6884L11.0393 14.7023L10.3972 16.6971H8.31027L9.99235 17.9332L9.34325 19.928Z" fill="#FFCC00"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.691 26.8367V25.8391H21.2723V28.0538C21.2723 29.1711 20.6973 29.8096 19.5883 29.8096C18.4793 29.8096 17.9043 29.1711 17.9043 28.0538V24.4225C17.9043 23.3052 18.4793 22.6667 19.5883 22.6667C20.6973 22.6667 21.2723 23.3052 21.2723 24.4225V25.1009H20.2044V24.3527C20.2044 23.8539 19.9785 23.6644 19.6191 23.6644C19.2597 23.6644 19.0338 23.8539 19.0338 24.3527V28.1237C19.0338 28.6225 19.2597 28.802 19.6191 28.802C19.9785 28.802 20.2044 28.6225 20.2044 28.1237V26.8367H19.691ZM22.3165 29.7297V22.7465H24.1032C25.2327 22.7465 25.7872 23.355 25.7872 24.4724V28.0039C25.7872 29.1212 25.2327 29.7297 24.1032 29.7297H22.3165ZM24.0832 23.7441H23.4465V28.7321H24.0832C24.4425 28.7321 24.6582 28.5526 24.6582 28.0538V24.4225C24.6582 23.9237 24.4425 23.7441 24.0832 23.7441ZM28.4852 22.7465C29.6147 22.7465 30.1692 23.355 30.1692 24.4724V25.3802C30.1692 26.4975 29.6147 27.106 28.4852 27.106H27.9512V29.7297H26.8217V22.7465H28.4852ZM28.4848 23.7441H27.9508V26.1084H28.4848C28.8441 26.1084 29.0392 25.9488 29.0392 25.45V24.4025C29.0392 23.9037 28.8441 23.7441 28.4848 23.7441ZM34.5708 29.7297H33.4208C33.3592 29.5502 33.3181 29.4404 33.3181 28.8718V27.7744C33.3181 27.126 33.0922 26.8866 32.5788 26.8866H32.1886V29.7297H31.0591V22.7465H32.7636C33.9342 22.7465 34.4373 23.2752 34.4373 24.3526V24.9013C34.4373 25.6196 34.2012 26.0885 33.698 26.3179C34.2628 26.5474 34.4476 27.0761 34.4476 27.8044V28.8818C34.4476 29.221 34.4579 29.4704 34.5708 29.7297ZM32.7333 23.7441H32.1891V25.889H32.6306C33.0516 25.889 33.3083 25.7094 33.3083 25.1507V24.4624C33.3083 23.9636 33.1338 23.7441 32.7333 23.7441Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

+9
View File
@@ -0,0 +1,9 @@
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z" fill="#3D539E"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.1434 9V42.8939C22.9916 42.8918 22.8392 42.8939 22.6672 42.8939C13.4707 42.8939 6 35.3065 6 26.0655C6 16.5874 13.4707 9 22.6672 9C22.8392 9 22.9916 9.00209 23.1434 9Z" fill="white"/>
<path d="M23.1419 15.9558L20.886 17.5326L21.6983 15.0027L19.5703 13.4259H22.2105L23.1419 10.896V15.9558Z" fill="#3D539E"/>
<path d="M23.1433 15.9558L25.3992 17.5326L24.5868 15.0027L26.7148 13.4259H24.0747L23.1433 10.896V15.9558Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.2154 18.2045C41.1503 18.4463 43.26 18.5724 43.26 18.5724C43.26 18.5724 42.1094 19.5149 40.9533 19.5149C39.2311 19.5149 37.81 18.9534 37.1019 18.6736C36.9994 18.6331 36.9119 18.5985 36.8405 18.5724C35.6593 18.1398 34.3512 17.4197 33.3753 16.6066C32.3995 15.7934 31.0775 15.0338 29.9711 14.8321C28.8647 14.6304 28.1509 15.1874 27.6137 15.6688C27.3371 15.9168 27.2526 16.1548 27.109 16.5592C26.9738 16.94 26.7862 17.4684 26.3364 18.2916C25.409 19.9889 23.147 20.0365 23.147 20.0365V19.5149C23.147 19.5149 23.7836 19.5013 24.719 19.005C25.6544 18.5087 26.0527 16.942 26.2371 15.8959C26.4214 14.8498 27.1245 13.4088 28.9889 13.1967C30.8533 12.9846 32.7231 14.4067 34.3187 15.6688C35.1339 16.3136 37.1489 17.4111 40.2154 18.2045ZM28.1848 29.7639H30.3448V30.8349C30.3448 31.2061 30.3356 31.4424 30.3173 31.544C30.299 31.6455 30.2558 31.7203 30.1877 31.7683C30.1195 31.8163 29.998 31.8404 29.8231 31.8404H29.6797V31.991H31.5621V31.8404H31.4675C31.2824 31.8404 31.1563 31.8142 31.0892 31.7618C31.0221 31.7093 30.9809 31.6291 30.9656 31.521C30.9504 31.4129 30.9427 31.1842 30.9427 30.8349V28.6569C30.9427 28.2879 30.9534 28.0542 30.9748 27.956C30.9961 27.8577 31.0383 27.7906 31.1014 27.7546C31.1644 27.7185 31.2977 27.7005 31.501 27.7005H31.5621V27.5499H29.6797V27.7005H29.7895C29.999 27.7005 30.1348 27.7202 30.1968 27.7595C30.2589 27.7988 30.299 27.8697 30.3173 27.9724C30.3356 28.075 30.3448 28.3031 30.3448 28.6569V29.5379H28.1848V28.6569C28.1848 28.2879 28.1955 28.0542 28.2168 27.956C28.2382 27.8577 28.2804 27.7906 28.3434 27.7546C28.4065 27.7185 28.5387 27.7005 28.7401 27.7005H28.8163V27.5499H26.9553V27.7005H27.0316C27.2411 27.7005 27.3768 27.7202 27.4389 27.7595C27.5009 27.7988 27.5416 27.8697 27.5609 27.9724C27.5802 28.075 27.5899 28.3031 27.5899 28.6569V30.8349C27.5899 31.2061 27.5802 31.4424 27.5609 31.544C27.5416 31.6455 27.4979 31.7203 27.4297 31.7683C27.3616 31.8163 27.239 31.8404 27.0621 31.8404H26.9553V31.991H28.8163V31.8404H28.7095C28.5245 31.8404 28.3989 31.8142 28.3328 31.7618C28.2667 31.7093 28.2255 31.6291 28.2092 31.521C28.1929 31.4129 28.1848 31.1842 28.1848 30.8349V29.7639ZM31.9338 27.5499V27.7005H32.0223C32.2318 27.7005 32.3681 27.7202 32.4311 27.7595C32.4942 27.7988 32.5348 27.8697 32.5532 27.9724C32.5715 28.075 32.5806 28.3031 32.5806 28.6569V30.8349C32.5806 31.2061 32.5715 31.4424 32.5532 31.544C32.5348 31.6455 32.4916 31.7203 32.4235 31.7683C32.3554 31.8163 32.2328 31.8404 32.0559 31.8404H31.9338V31.991H33.8253V31.8404H33.7033C33.5162 31.8404 33.3896 31.8142 33.3235 31.7618C33.2574 31.7093 33.2167 31.6291 33.2015 31.521C33.1862 31.4129 33.1786 31.1842 33.1786 30.8349V28.6569C33.1786 28.2879 33.1893 28.0542 33.2106 27.956C33.232 27.8577 33.2742 27.7906 33.3372 27.7546C33.4003 27.7185 33.5335 27.7005 33.7369 27.7005H33.8253V27.5499H31.9338ZM35.4222 30.8349V29.9014H35.8768C36.3507 29.9014 36.6817 29.8534 36.8698 29.7573C37.058 29.6613 37.2024 29.5204 37.3031 29.3348C37.4037 29.1492 37.4541 28.9353 37.4541 28.6929C37.4541 28.4134 37.3804 28.182 37.2329 27.9986C37.0854 27.8151 36.8963 27.6874 36.6654 27.6154C36.4346 27.5433 36.1056 27.5073 35.6785 27.5073C35.4466 27.5073 35.1233 27.5149 34.7083 27.5302L34.1897 27.5499V27.7005H34.266C34.4755 27.7005 34.6117 27.7202 34.6748 27.7595C34.7378 27.7988 34.7785 27.8697 34.7968 27.9724C34.8151 28.075 34.8243 28.3031 34.8243 28.6569V30.8349C34.8243 31.2061 34.8151 31.4424 34.7968 31.544C34.7785 31.6455 34.7353 31.7203 34.6672 31.7683C34.599 31.8163 34.4765 31.8404 34.2995 31.8404H34.1897V31.991H36.0843V31.8404H35.947C35.7619 31.8404 35.6358 31.8142 35.5687 31.7618C35.5015 31.7093 35.4604 31.6291 35.4451 31.521C35.4299 31.4129 35.4222 31.1842 35.4222 30.8349ZM35.718 29.7376H35.4221V27.6808C35.4953 27.672 35.6011 27.6677 35.7394 27.6677C36.1157 27.6677 36.3877 27.7534 36.5555 27.9248C36.7233 28.0962 36.8072 28.3653 36.8072 28.7321C36.8072 28.9723 36.7584 29.1743 36.6608 29.338C36.5631 29.5018 36.4411 29.6093 36.2947 29.6606C36.1482 29.7119 35.956 29.7376 35.718 29.7376ZM38.6249 30.3535H40.1961L40.5134 31.1755C40.6069 31.4135 40.6537 31.5566 40.6537 31.6046C40.6537 31.6985 40.6186 31.7613 40.5484 31.7929C40.4783 31.8246 40.3435 31.8404 40.1442 31.8404V31.9911H41.7346V31.8404L41.7488 31.8379L41.7703 31.8404V31.9911H42.9641V31.8404C42.8319 31.8404 42.7236 31.806 42.6392 31.7372C42.5548 31.6685 42.5126 31.5675 42.5126 31.4343C42.5126 31.3098 42.5919 31.0435 42.7505 30.6351L42.8573 30.3535H44.4285L44.7458 31.1755C44.8393 31.4135 44.8861 31.5566 44.8861 31.6046C44.8861 31.6985 44.851 31.7613 44.7809 31.7929C44.7107 31.8246 44.576 31.8404 44.3766 31.8404V31.9911H46.0027V31.8404C45.8583 31.8251 45.75 31.7875 45.6778 31.7274C45.6056 31.6674 45.5481 31.5849 45.5054 31.4801L45.3163 31.0151L43.9343 27.4877H43.8153L42.6133 30.5696C42.5258 30.7902 42.477 30.9168 42.4668 30.9496C42.3407 31.2967 42.2329 31.5244 42.1434 31.6324C42.0563 31.7377 41.9247 31.8062 41.7488 31.8379C41.6151 31.8213 41.514 31.7845 41.4454 31.7274C41.3732 31.6674 41.31Line truncated
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.14677 17.538C8.14677 17.538 10.3838 16.9304 11.9794 15.6683C13.5751 14.4062 15.4448 12.9841 17.3092 13.1962C19.1736 13.4083 19.8767 14.8493 20.0611 15.8954C20.2454 16.9415 20.6438 18.5082 21.5791 19.0045C22.5145 19.5008 23.143 19.5145 23.143 19.5145V20.036C23.143 20.036 20.8891 19.9884 19.9617 18.2911C19.0343 16.5938 19.2216 16.1498 18.6844 15.6683C18.1472 15.1869 17.4334 14.6299 16.327 14.8316C15.2206 15.0334 13.8986 15.7929 12.9228 16.6061C11.947 17.4192 10.6388 18.1393 9.45762 18.5719C8.2764 19.0045 7.1875 19.2289 7.1875 19.2289L8.14677 17.538Z" fill="#3D539E"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.9916 42.9998C22.9916 42.9998 22.6486 42.5607 22.4081 42.3683C21.6318 41.7472 20.9942 41.1623 20.9942 40.4901C20.9942 39.3267 22.1425 39.3243 22.0677 38.7345C21.9929 38.1446 20.1119 37.5482 20.1119 35.8112C20.1119 34.3119 21.9326 33.7941 21.9326 33.1336C21.9326 32.4731 19.5805 31.9959 19.4809 30.3178C19.3714 28.4741 21.8048 27.9755 21.8048 27.5349C21.8048 26.87 17.3652 26.3046 17.3652 23.127C17.3652 21.7545 18.3777 20.9619 19.3595 20.9619C21.4626 20.9619 21.6711 22.3361 22.1444 22.6194C22.3444 22.739 22.6614 22.9048 22.8323 23.127C23.066 23.4309 23.13 23.9395 22.8323 24.2709C22.3169 24.8447 21.4177 24.334 21.3232 24.179C21.2288 24.024 20.999 23.3056 20.7376 23.0223C20.4761 22.739 19.7252 22.5377 19.3595 22.6194C18.9937 22.701 18.6295 23.127 19.0332 24.179C19.493 25.3772 23.1409 26.0546 23.1409 27.4516C23.1409 28.8486 20.5666 29.2169 20.7376 30.3932C20.9086 31.5695 23.1409 32.0379 23.1409 33.1336C23.1409 34.2293 21.2069 34.9776 21.2069 35.8895C21.2069 36.8014 23.1409 37.5954 23.1409 38.7345C23.1409 39.8736 21.9326 39.8736 21.9326 40.4901C21.9326 40.9372 22.4027 41.4877 22.7468 42.126C22.8956 42.402 22.9916 42.9998 22.9916 42.9998Z" fill="#3D539E"/>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

+2 -2
View File
@@ -1,4 +1,4 @@
declare const coherentpdf: typeof import("../../src/types/coherentpdf.global").coherentpdf;
declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface GenerateTOCMessage {
command: 'generate-toc';
@@ -19,4 +19,4 @@ interface TOCErrorResponse {
message: string;
}
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;
type TOCResponse = TOCSuccessResponse | TOCErrorResponse;
+7 -3
View File
@@ -19,7 +19,8 @@ function generateTableOfContentsInWorker(
coherentpdf.deletePdf(pdf);
self.postMessage({
status: 'error',
message: 'This PDF does not have any bookmarks. Please add bookmarks first using the Bookmark tool.',
message:
'This PDF does not have any bookmarks. Please add bookmarks first using the Bookmark tool.',
});
return;
}
@@ -39,7 +40,10 @@ function generateTableOfContentsInWorker(
} catch (error) {
self.postMessage({
status: 'error',
message: error instanceof Error ? error.message : 'Unknown error occurred during table of contents generation.',
message:
error instanceof Error
? error.message
: 'Unknown error occurred during table of contents generation.',
});
}
}
@@ -54,4 +58,4 @@ self.onmessage = (e) => {
e.data.addBookmark
);
}
};
};