-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparams.json
1 lines (1 loc) · 5.5 KB
/
params.json
1
{"name":"Coherent PDF Command Line Tools Community Release","tagline":"Powerful, free tools to manipulate PDF files","body":"The Coherent PDF Command Line Tools allow you to manipulate existing PDF files in a variety of ways. For example:\r\n\r\n* Merge PDF files together, or split them apart\r\n* Encrypt and decrypt\r\n* Scale, crop and rotate pages\r\n* Read and set document info and metadata\r\n* Copy, add or remove bookmarks\r\n* Stamp logos, text, dates, page numbers\r\n* Add or remove attachments\r\n\r\nThe `cpdf` tool has been available commercially since 2007, and is widely used in industry and government. The same technology is used in the [Proview PDF Editor](http://www.coherentpdf.com/proview.html) for the mac.\r\n\r\nAlso included is the [Coherent Lossless PDF Compressor](http://www.coherentpdf.com/compression.html), `smpdf`, which reduces the size of PDF files by rearranging their internal structure.\r\n\r\nNow we're releasing them for free, under a [special not-for-commercial-use license](https://github.com/coherentgraphics/cpdf-binaries/blob/master/LICENSE) If you like the tools and want to use them commercially, or need support, licenses are available from [Coherent Graphics Ltd](http://www.coherentpdf.com). If you're still not sure if you need a license, [ask us](mailto:[email protected]). \r\n\r\n### Download binaries now for Windows, Mac, or Linux\r\n\r\nPre-built binaries are available for Windows, Mac OS 10.6 and later, Linux 32 bit Intel and Linux 64 bit intel.\r\n\r\n[Download pre-built tools now](https://github.com/coherentgraphics/cpdf-binaries/archive/master.zip)\r\n\r\n### Build from source\r\n\r\nLook at the [source repository](https://github.com/johnwhitington/cpdf-source) README for details. You'll need to install the [OCaml](http://www.ocaml.org/) toolchain, and a couple of simple dependencies, but it's simple to build.\r\n\r\n### User Manual\r\n\r\nA comprehensive user manual can be found as a [PDF document](http://www.coherentpdf.com/cpdfmanual.pdf), or [browsable online](http://www.coherentpdf.com/cpdfmanual/).\r\n\r\n### Examples\r\n\r\n*In all cases, on Microsoft Windows, substitute `cpdf.exe` for `cpdf`.*\r\n\r\nSelect some pages from a file `in.pdf` and write to `out.pdf`:\r\n\r\n```\r\ncpdf in.pdf 1-3,12-end -o out.pdf\r\n```\r\n\r\nMerge some files together:\r\n\r\n```\r\ncpdf one.pdf two.pdf three.pdf -o merged.pdf\r\n```\r\n\r\nSplit a file into single-page files `page001.pdf`, `page002.pdf` etc:\r\n\r\n```\r\ncpdf -split in.pdf -o page%%%.pdf\r\n```\r\n\r\nEncrypt a file with 128 bit AES encryption with an owner password but blank user password:\r\n\r\n```\r\ncpdf -encrypt AES \"pass\" \"\" in.pdf -o out.pdf\r\n```\r\n\r\nOutput some information about a file:\r\n\r\n```\r\ncpdf -info file.pdf\r\n\r\nEncryption: Not encrypted\r\nPermissions: \r\nLinearized: true\r\nVersion: 1.4\r\nPages: 8\r\nTitle: catalogueproduit-UK.qxd\r\nAuthor: James Peterson\r\nSubject: \r\nKeywords: \r\nCreator: QuarkXPress: pictwpstops filter 1.0\r\nProducer: Acrobat Distiller 6.0 for Macintosh\r\nCreated: D:20060926213913+02'00'\r\nModified: D:20060926213913+02'00'\r\n``` \r\n\r\nOutput information about each page:\r\n\r\n```\r\ncpdf -page-info file.pdf\r\n\r\nPage 1:\r\nMediaBox: 0.000000 0.000000 768.000000 1366.000000\r\nCropBox: \r\nBleedBox: 0.000000 0.000000 768.000000 1366.000000\r\nTrimBox: 0.000000 0.000000 768.000000 1366.000000\r\nArtBox: 0.000000 0.000000 768.000000 1366.000000\r\nRotation: 0\r\nPage 2:\r\nMediaBox: 0.000000 0.000000 768.000000 1366.000000\r\nCropBox: \r\nBleedBox: 0.000000 0.000000 768.000000 1366.000000\r\nTrimBox: 0.000000 0.000000 768.000000 1366.000000\r\nArtBox: 0.000000 0.000000 768.000000 1366.000000\r\nRotation: 0\r\n```\r\n\r\nScale pages to A4 paper:\r\n\r\n```\r\ncpdf -scale-to-fit a4portrait in.pdf -o out.pdf\r\n```\r\n\r\nCrop a file:\r\n\r\n```\r\ncpdf -crop \"20mm 20mm 300mm 300mm\" in.pdf -o out.pdf \r\n```\r\n\r\nAdd some text with page numbers:\r\n\r\n```\r\ncpdf -add-text \"Page %Page of %EndPage\" -top 100pt -font \"Times-Roman\" -font-size 20 in.pdf -o out.pdf\r\n```\r\n\r\nStamp one PDF file over each page of another:\r\n\r\n```\r\ncpdf -stamp-on logo.pdf in.pdf -o out.pdf\r\n```\r\n\r\nAttach a file to page 5:\r\n\r\n```\r\ncpdf -attach-file sheet.xls -to-page 5 in.pdf -o out.pdf\r\n```\r\n\r\nCombine several commands together using AND: flip a file vertically and stamp text, then encrypt.\r\n\r\n```\r\ncpdf in.pdf -vflip AND -add-text \"Page %Page\" AND -encrypt 128bit owner \"\" -o out.pdf\r\n```\r\n\r\nCompress a file without loss of information:\r\n\r\n```\r\nsmpdf in.pdf -o out.pdf\r\n```\r\n\r\n### Support\r\n\r\nIf you discover a bug, you can [raise an issue in our issue tracker](https://github.com/johnwhitington/cpdf-source/issues), or [email for support](mailto:[email protected]).\r\n\r\nPlease note, though, that we prioritise support for paying customers.\r\n\r\n### FAQs\r\n\r\n##### Q. The cpdf program prints a message about its non-commercial status every time I run it. How can I stop that?\r\n\r\nA. The message is printed to standard error, so if you're using `cpdf` in an automated system, you can just redirect standard error to null. On Linux and OS X this is done by adding `2>/dev/null` to the end of the command. On Windows, use `2>nul` instead.\r\n\r\n##### Q. My command works, but fails when I put it in a Windows Batch file.\r\n\r\nA. Some `cpdf` commands use `%` as a special character. Use `%%` instead.","google":"UA-43770048-1","note":"Don't delete this file! It's used internally to help with page regeneration."}