{"_id":"coherentpdf","_rev":"2-0ae9a1ee8442af29d322ebb6223a04c4","name":"coherentpdf","dist-tags":{"latest":"2.5.5"},"versions":{"2.5.2":{"name":"coherentpdf","version":"2.5.2","description":"Read, write and modify PDF files","main":"cpdf.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/coherentgraphics/cpdf.js.git"},"keywords":["pdf","cpdf"],"author":{"name":"Coherent Graphics Ltd"},"license":"AGPL-3.0-or-later","bugs":{"url":"https://github.com/coherentgraphics/cpdf.js/issues"},"homepage":"https://github.com/coherentgraphics/cpdf.js#readme","gitHead":"2f80fead3ba465a036fda934ad9210273b7005c6","_id":"coherentpdf@2.5.2","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-u3MAV75gPzf98YfYHyB7dJ3/KxtmrGjE+d/yyM01tXj/iT5TB1XmFIZdTs1uXNeYLssWDHOdFvqLA2nn11mBGA==","shasum":"2e239d1401675bc3f110d4fd516b3b3f4dac31b4","tarball":"https://registry.npmjs.org/coherentpdf/-/coherentpdf-2.5.2.tgz","fileCount":43,"unpackedSize":7754136,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNfrFioj2Pun3nJfm0DPw3BHXRi+7PPX+bTv5N9INnCAiEAg7+uI8FIkVq+T374uzgg9doGnbXoCxQ5wQt/7mboQlk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+7f3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzKw/8D7R7P2FspZi6cyAYEfVVr+KUMgmZSthcnS5tX4R6nsLK0cbz\r\nThkvuloMKlb2SGot3dl1vMSQqSlQJTfcX9YisVh+dOu7hd+unI/NE+I/oPcm\r\nuKEmaKBGJOF4CjjKY3xfVVHGbzFysa9qxBkqLwYNQDxEgsAH6XhCI3v8ta+g\r\nyXs5sZgOyYWhK3WRdKgcskck89qdISuuFiaZt9YAVC1Xeu6fOKE2gMAo2eeO\r\nDPQlKkd90zj/mF/v6Oi+6lydAvuVJmCv1QlU4VnynWWdzNj6f/+5yM9gSslb\r\nBXWzrRyb/vU2As4wepgPkEQpSCzMeLtvyD3r0eAbscidgt3Oc3jdQ9JJEyND\r\niurXCJQI24OVr8ZQUAs85Rxf0NrTa2tRL/Oq4aE6An3KuyNvxhJNdyFjoaJq\r\n1l3LislSU682UcJmOjeHnnxz9hbQqhveMfFSGM0qeKL2vzGt0CXhQhPFIoS7\r\nCETgHHqd+7nxkfetQrvzMO9Mg0UAaPik2SooSAYqHCfvqIi3Zbg8x0lDGkk1\r\nR6EpcW6oZJ9pH0/PUCj+PagzqH8wMsr7tw9/epQWx4HLLNHysGhrSejLsOWi\r\nBvj91V+nEczhkHhFXwmChdhll5nyxMss5oDB2hPxu1lLwK/QsV2RkE5KDdm7\r\ntxnq24QUAiO3GTx036Zl/8Z8w7D0jRIKawo=\r\n=yOvP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"},"directories":{},"maintainers":[{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coherentpdf_2.5.2_1660663798632_0.9884889794322025"},"_hasShrinkwrap":false},"2.5.4":{"name":"coherentpdf","version":"2.5.4","description":"Read, write and modify PDF files","main":"cpdf.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/coherentgraphics/cpdf.js.git"},"keywords":["pdf","cpdf"],"author":{"name":"Coherent Graphics Ltd"},"license":"AGPL-3.0-or-later","bugs":{"url":"https://github.com/coherentgraphics/cpdf.js/issues"},"homepage":"https://github.com/coherentgraphics/cpdf.js#readme","gitHead":"87a98c074aaa44338b0e6825f9f82c280417fedb","_id":"coherentpdf@2.5.4","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-XiyINzh5+g5EICKDKoPsSfiMhRBNlseH0mp0KXgAxOqVsFBVunk0qj3XGKI2o+c266ZTVNOf+ECytd8wjLIVrw==","shasum":"ddc964565b4bc4ec65ff038e00a3c20a2294c488","tarball":"https://registry.npmjs.org/coherentpdf/-/coherentpdf-2.5.4.tgz","fileCount":44,"unpackedSize":8891959,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAwl97zqIS4vNq3xN3hn8c0zTazLH/Dp5bdrd1HYcciAiAmMerf99Bzpzr3xogZvXu2Yw2lhVKAB8WhSNzpuIhnag=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+7kHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo++RAAhSQnkVZgMDhjzj4YhKGy5MlwT+g7UY4Kl/AAXZfjUeFsiaCh\r\nLNCmrRE6jxZTwsLnomz20A7FQpGTS0dlbGxlvUDPEKiVAPr7EejmE10+OVR/\r\nYC16SuKHfLoaMSY7ICg+87MLdw08vCe1svgOwtuvTzov+4YM+wgHMBoL+kbn\r\nEA1xMdWOoAtzO2XsCnkuyUw/LOzEFNzNsSv8udpmqFJ+guF6YC6WA0H8a4E1\r\n5yDQJaKr3mqXJPDlEMHvl+i5SvDsgdjyhWkxJwkbYdAlr675wwXROxg+0I/C\r\nOt57g0wmrsgdrEMwI9EWZ4u0LATtgEvftqKBEl5w7V+2Wzg2m0RS+OXMvBYH\r\n0zx8xnKU18l1zfyLN81DKVbMCf+UK1zZJoE13mwH+1kwG1OEMBzc8heJc7l4\r\nKmhUB6QGrJpNu7drE6pl7isNA5/4Ve/MjaLrzIwzwNs/KhUvp42XPLNUQ2Sg\r\n+so0rBcWv2KwymyWdRTxhYcL/AbUChmv+L+OLLKIOzN4vxqwiJ46nob1wrO+\r\nkSYRTcRxNQHwGMdQ1v+j//a6khfa8HeqUt76j64Q6zdTiANYNAt4TvKYNUJ+\r\nv29gnEbsTDXrNS/Hlb4SonSxg1dCahlE2iAlV4doJyJIjid6O6Amgnspnx+u\r\nTAMPF3tP5UGNaN4laT3d0hf+jRxuzA5jU/Q=\r\n=1sm4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"},"directories":{},"maintainers":[{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coherentpdf_2.5.4_1660664071053_0.5271680748768688"},"_hasShrinkwrap":false},"2.5.5":{"name":"coherentpdf","version":"2.5.5","description":"Read, write and modify PDF files","main":"coherentpdf.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/coherentgraphics/coherentpdf.js.git"},"keywords":["pdf","cpdf"],"author":{"name":"Coherent Graphics Ltd"},"license":"AGPL-3.0-or-later","bugs":{"url":"https://github.com/coherentgraphics/coherentpdf.js/issues"},"homepage":"https://github.com/coherentgraphics/coherentpdf.js#readme","gitHead":"51dbad27345a31d7e5825638b5bdc2be4407fa16","_id":"coherentpdf@2.5.5","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-AAD3RG7lq2n34AtH352sbNDhJ82yfp2vFUp63/+Vu7snAqW0vyvY33XuhZdj6ubZUlFe1DNSSEaYcyc7+jTJ5Q==","shasum":"890f6d20290953e92561a6b732404e37f8ddc97f","tarball":"https://registry.npmjs.org/coherentpdf/-/coherentpdf-2.5.5.tgz","fileCount":45,"unpackedSize":8888328,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE19IDHCpmQ/XcSpmeVsLVd9PDU4h5yCx4pkFjblv5egAiAyvWu6S8dYEuKydp1yFXpXruD+DANohjVLhGDIEJDChg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/lIGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoX/A//U68Ov3BGi9shJsMeF0wnwta2ANaVIlPXXnzjZEfAEKiXcm4z\r\nYvAg4punGgLbX0lTgPblDc1jI8/4f5z8TQ9L4Ih9akWMBT/uHemy6o0Aqx4S\r\n6CldO87Ec2VEdP3KkBEDuDZuxegz1a6liSad+L0j139huH7anpwbccckdWya\r\nqe0jwYTHIDZKN9nMcv8l1k38hXXDBsFd2VLhBw0fm0EQ60I89cETP14bgqFF\r\n0JAac3Zm99mmtREyQYl4bbKBhCUIf1GusqkkvdweVaRl00kwRtW1tEPJeenn\r\nf9G4iPgiUwSmJx4z01KJ4eRmc/WZ6eI2mEJ6KsuJ4IunudzvErmnS71DzMWJ\r\nlufQvDM2bVyUvPGtXH6AyAEDs/zO+/LT3lZwgPsFyJImLjlEpTldj9+y0QUa\r\nyHugK3Pzbp57+LA1aQFLuGBRYARRIM99bdzzeh5kGYXyBGeiip4sx5yDimJJ\r\nn3KBYxT5daWfAQJafsar8M8KwiCml6/t9eo3y098SPh6i93TxHb46cEertKa\r\nTNCH+1tt9o7XHizp+8giYLXB5vO292m6v3cALz0NtsQQYTG7kuEVcKQokGxl\r\nr3h1vzjjby/rkaYzQ097uTgxm9CmBrkxK+Jfhf1y2/s80KvqJ1JYERsu8y45\r\nHaJZhTfqv9U87OjgzKm3kl43SJs21IQJVbY=\r\n=xrJp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"},"directories":{},"maintainers":[{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/coherentpdf_2.5.5_1660834310661_0.4777528889943756"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-16T15:29:58.631Z","2.5.2":"2022-08-16T15:29:58.970Z","modified":"2022-08-18T14:51:51.040Z","2.5.4":"2022-08-16T15:34:31.318Z","2.5.5":"2022-08-18T14:51:50.952Z"},"maintainers":[{"name":"coherentgraphics","email":"contact@coherentgraphics.co.uk"}],"description":"Read, write and modify PDF files","homepage":"https://github.com/coherentgraphics/coherentpdf.js#readme","keywords":["pdf","cpdf"],"repository":{"type":"git","url":"git+https://github.com/coherentgraphics/coherentpdf.js.git"},"author":{"name":"Coherent Graphics Ltd"},"bugs":{"url":"https://github.com/coherentgraphics/coherentpdf.js/issues"},"license":"AGPL-3.0-or-later","readme":"coherentpdf.js\n==============\n\nA JavaScript library for editing PDF files. For example:\n\n- Quality Split and Merge, keeping bookmarks. Extract pages. Split on Bookmarks.\n- Impose files n-up\n- Create new PDFs. Convert text files to PDF\n- Losslessly squeeze files to reduce their size\n- Encrypt and Decrypt (including AES 128 and AES 256 encryption)\n- Read and set info and metadata from a PDF file. Set and read XMP Metadata.\n- Scale, rotate, crop and flip pages. Scale pages to fit.\n- Copy, Remove and Add bookmarks. Build table of contents from bookmarks.\n- Stamp logos, shapes, watermarks, page numbers and multiline text. Transparency.\n- List, copy or remove annotations\n- Add and remove file attachments to document or page. Extract attachments.\n- Thicken hairlines, blacken text, make draft documents\n- Reconstruct malformed files\n- Detect missing fonts, low resolution images. Remove images. Extract images.\n- Add printer's marks\n- Add, modify, remove, or print page labels.\n- Export PDF file to / Import PDF file from JSON.\n- Manipulate optional content groups\n\nThe files in `dist/` are distributed\nunder the AGPL - see LICENSE.md. Check if you need a commercial license.\n\n[https://www.coherentpdf.com/](https://www.coherentpdf.com/)\n\nFor commercial licenses, email\n[contact@coherentgraphics.co.uk](mailto:contact@coherentgraphics.co.uk)\n\nUse\n---\n\ncoherentpdf.js can be used from both node and the browser.\n\nThe file `cpdflibtest.js` uses every function in coherentpdf.js. Call `./run`\nto run it in node.\n\nIn the `dist/` directory:\n\nFor development server-side with node: `coherentpdf.js` (minified version\n`coherentpdf.min.js`). Load with `const coherentpdf = require('coherentpdf')`\nif installed in npm, or `const coherentpdf = require('./coherentpdf.js')` to\nload from current directory.\n\nFor development client-side with the browser : `coherentpdf.browser.js`\n(minified version for deployment : `coherentpdf.browser.min.js`). Load with\n`<script src=\"coherentpdf.browser.js\"></script>` or similar.\n\n\nDocumentation\n-------------\n\n1. `cpdfjsmanual.pdf` contains the API documentation interleaved with the\n   coherentpdf.js API. This is the primary source of documentation:\n\n   [https://coherentpdf.com/cpdfjsmanual.pdf](https://coherentpdf.com/cpdfjsmanual.pdf)\n\n   The command line tools can be found at:\n\n   [https://community.coherentpdf.com/](https://community.coherentpdf.com/)\n\n2. API documentation online at\n\n   [https://www.coherentpdf.com/jscpdf/index.html](https://www.coherentpdf.com/jscpdf/index.html)\n\n\nData types\n----------\n\nArguments are numbers, strings, or arrays (of type UInt8Array for data). Page\nranges are represented by arrays of numbers.\n\n\nMemory Management\n-----------------\n\nA PDF `p` must be explicitly deallocated with `deletePdf(p)`.\n\n\nErrors\n------\n\nAny function may raise an exception, containing a string describing the problem. \n\n\nConcurrency\n-----------\n\ncoherentpdf.js is synchronous and non-re-entrant. In the browser, best used in\na worker.\n\n\nExamples\n--------\n\nServer-side: `cpdflibtest.js` tests every function in coherentpdf.js.\n\nClient-side: `index.html` is an interactive browser example with the worker\n`cpdfworker.js`. You will need to run this from a real server, for example\n`http-server`, rather than just loading `index.html` directly.\n\n\nContact\n-------\n\n[https://www.coherentpdf.com/](https://www.coherentpdf.com/)\n\nFor commercial licenses, email [contact@coherentgraphics.co.uk](mailto:contact@coherentgraphics.co.uk)\n","readmeFilename":"README.md"}