pax_global_header00006660000000000000000000000064136332422600014513gustar00rootroot0000000000000052 comment=b1622c9244b3c1ec005bdd458864bf580c7dcd68 pdfarranger-1.4.2/000077500000000000000000000000001363324226000140125ustar00rootroot00000000000000pdfarranger-1.4.2/.github/000077500000000000000000000000001363324226000153525ustar00rootroot00000000000000pdfarranger-1.4.2/.github/workflows/000077500000000000000000000000001363324226000174075ustar00rootroot00000000000000pdfarranger-1.4.2/.github/workflows/install.yml000066400000000000000000000003401363324226000215750ustar00rootroot00000000000000name: pdfarranger on: [push, pull_request] jobs: build: runs-on: ubuntu-latest container: jeromerobert/pdfarranger-docker-ci steps: - uses: actions/checkout@v2 - name: Install run: pip3 install . pdfarranger-1.4.2/.gitignore000066400000000000000000000000221363324226000157740ustar00rootroot00000000000000__pycache__ venv/ pdfarranger-1.4.2/AUTHORS000066400000000000000000000000611363324226000150570ustar00rootroot00000000000000Konstantinos Poulios pdfarranger-1.4.2/COPYING000066400000000000000000001045141363324226000150520ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . pdfarranger-1.4.2/README.md000066400000000000000000000040141363324226000152700ustar00rootroot00000000000000## About [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f30fcd52c2fe4d438542275876221ecd)](https://app.codacy.com/app/jeromerobert/pdfarranger?utm_source=github.com&utm_medium=referral&utm_content=jeromerobert/pdfarranger&utm_campaign=Badge_Grade_Settings) [![pdfarranger](https://github.com/jeromerobert/pdfarranger/workflows/pdfarranger/badge.svg)](https://github.com/jeromerobert/pdfarranger/actions?query=workflow%3Apdfarranger+branch%3Amaster) *pdfarranger* is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. It is a frontend for [pikepdf](https://github.com/pikepdf/pikepdf). *pdfarranger* is a fork of Konstantinos Poulios's pdfshuffler (see [Savannah](https://savannah.nongnu.org/projects/pdfshuffler) or [Sourceforge](http://sourceforge.net/projects/pdfshuffler)). It's a humble attempt to make the project a bit more active. ![screenshot of pdfarranger](http://screenshots.debian.net/screenshots/000/017/031/large.png) ## Binary distribution See this [wiki page](https://github.com/jeromerobert/pdfarranger/wiki/Binary-packages). ## Install from source *pdfarranger* require [pikepdf](https://github.com/pikepdf/pikepdf) >= 1.7.0. Older versions may work but are not supported. **On Debian based distributions** ``` sudo apt-get install python3-distutils-extra python3-wheel python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-poppler-0.18 python3-setuptools ``` **On Arch Linux** ``` sudo pacman -S poppler-glib python-distutils-extra python-pip python-gobject gtk3 python-cairo ``` **On Fedora** ``` sudo dnf install poppler-glib python3-distutils-extra python3-pip python3-gobject gtk3 python3-cairo python3-wheel ``` or `sudo dnf builddep pdfarranger` **Then** ``` pip3 install --user --upgrade https://github.com/jeromerobert/pdfarranger/zipball/master ``` ## For developers From a git clone: ``` ./setup.py build python3 -m pdfarranger ``` For Windows see [Win32.md](Win32.md). pdfarranger-1.4.2/TODO000066400000000000000000000007751363324226000145130ustar00rootroot00000000000000This file is part of PDF-Shuffler which is released under the GNU General Public License version 3 or later. See file COPYING or go to for full license details. TODO list for PDF-Shuffler -------------------------- * Add crop inspection mode. * Add program configuration dialog. * Add an export image option. * Add an import image option. * Add support for encrypted files. * Lazy thumbnails rendering. * Support autoscroll during navigation with the keyboard arrows. pdfarranger-1.4.2/Win32.md000066400000000000000000000026051363324226000152410ustar00rootroot00000000000000# pdfarranger on Windows ## Prerequisites Install [MSYS2](http://www.msys2.org) then upgrade it: ``` pacman -Syu ``` You might need to run it again (it tells you to): ``` pacman -Su ``` Install the required dependencies: ``` pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-python-gobject \ mingw-w64-x86_64-python-cairo mingw-w64-x86_64-poppler \ mingw-w64-x86_64-python-lxml mingw-w64-x86_64-qpdf mingw-w64-x86_64-pybind11 \ mingw-w64-x86_64-gettext mingw-w64-x86_64-gnutls \ mingw-w64-x86_64-python-pip python3-distutils-extra git ``` and ``` /mingw64/bin/python3 -m pip install --user pikepdf https://github.com/jeromerobert/cx_Freeze/zipball/pdfarranger ``` Get the pdfarranger sources from a MSYS2 shell: ``` git clone https://github.com/jeromerobert/pdfarranger.git ``` ## Building distributions ``` cd pdfarranger ./setup.py build /mingw64/bin/python3 setup_win32.py bdist_msi /mingw64/bin/python3 setup_win32.py bdist_zip ``` ## Wine MSYS2 no longer work in Wine (see ). To create a pdfarranger installer in Wine you must first install the required mingw-w64 packages on a real Windows box. Then copy the MSYS2 `/mingw64` to Linux and run installation process with `wine /path/to/mingw64/bin/python3` instead of `/mingw64/bin/python3`. To run the pdfarranger in Wine you may have to: ``` unset $(env |grep ^XDG_ | cut -d= -f1) ``` pdfarranger-1.4.2/data/000077500000000000000000000000001363324226000147235ustar00rootroot00000000000000pdfarranger-1.4.2/data/README000066400000000000000000000004421363324226000156030ustar00rootroot00000000000000# Copyright (C) 2008-2017 Konstantinos Poulios All data files under this directory all any subdirectories are part of PDF-Shuffler which is released under the GNU General Public License version 3 or later. See file COPYING or go to for full license details. pdfarranger-1.4.2/data/icons/000077500000000000000000000000001363324226000160365ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/000077500000000000000000000000001363324226000174755ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/16x16/000077500000000000000000000000001363324226000202625ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/16x16/apps/000077500000000000000000000000001363324226000212255ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/16x16/apps/pdfarranger.png000066400000000000000000000015461363324226000242340ustar00rootroot00000000000000PNG  IHDRasBIT|d pHYsZtEXtSoftwarewww.inkscape.org<IDAT8}Kh\uȼ23w&41DH (AvR  H*E(%4$TP)M[ҤMbɽwBm|#{z )JAP\"âE%/2Vk3?}}O7te=,asjm\3VBy5rI[W}TQ|:! DtB| Gu^'nu_DB@`byhCwӪy)vS靈D|.JAifw=I1P7j(8VlƬ&ffj@SgJ-v^5mk+RR Ь-^K iB)"&RBPBqh^gbpe" T R8Q8VJkBכAH 4VWZPLtEWZC@+\k,$/v65P>M⑬ e 4fjM| ħ> xN*BLS;)koVY "s@ o͚rW(WOFYl Jy%m\EDP`y!E/ a͆a !l`/]QILoѥP<_ J(9&de?r~piKZ0z\-Yt^y%!!1)Q0ްz R(0f tJ$ >QB\iQ(zR5k -/_%,iR~=u8V.:ϚJ̙DIPA2] h pE#TB"CAJBĪMjA O=Vn[퉆mAIۣGA㑖KieJZ@ phnQōBWS*Po2H,y| TyұZ((E$^㠀+v1P&NWdyXt^Z^v4=r.Jx 4FaFPL )o;X42qxʦ1'J$QALt༿~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I{f,Z chvS{ܖ67IVZ;҉+8h#e~TB@L}V?3{P<?GsZ I=#vy"A׊ߥN.Ux^L•Pq_f L[_c)l"3$$F6B}PMvK|0TUikk?f ɗx9OCK`?׏c[@ [BN'3ig_Op5*O/B $h椎>i9De 8Dp) d9k8 x=>?k9\j\cU9>hu,%,7la%?XWp˦4"xg`ŝz -!,rclAwx%@kl-c7m+vve<2fLx8ߟ6 zX$?ߗKl"c^\?p5E*&uB'"߰VQ;tzVDI"R#nq*WpaW-C/l/hZe죂*|3F]c+;\ "u"m{Ο6l~@tYK/0:};0j.L^Iv>Zg(b^{dK\p`1o f8oy!&ZWɩz= ˜g[rjWv g#?] #Գ.3:%@#Ȅ`<~-o:C$& qndlAƗMa Pt4 r0S{-]j.l(S[>zj~݌.9 z;K056&i_v~ \8ib[m gv0Oծp5R0.ei%@2hyfb4Tc+;\ #`}eA|XJ}k B0Wc+;\ #</` ߔ Ef[#2ktOE.p51ko ⾜ڨ)*˘ꐍW]P m~[Pl2 R E@DEaVi !-ǂ+##p!k L%z"6 =%`lB%5Æ}etvd$p,53:]4/;/}?.\pԐC+yIENDB`pdfarranger-1.4.2/data/icons/hicolor/32x32/000077500000000000000000000000001363324226000202565ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/32x32/apps/000077500000000000000000000000001363324226000212215ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/32x32/apps/pdfarranger.png000066400000000000000000000040301363324226000242170ustar00rootroot00000000000000PNG  IHDR szzsBIT|d pHYszz2tEXtSoftwarewww.inkscape.org<IDATXk]U{Ν{g;s;Ӗ`[alDhb)$T&h#@1"1 HFҒ jS[n˫PJ_cyuΝ4h垻o`Xjzss2_6&oPuu^ֶƔ,3QO _jm6&\R~T˘+Z$ 0ppP&Y2Rk985 0SUbmŔKJa?vbmt;@8WP3yEXֆ|p}S(֝@`8 $LZE.kDipu=86Z?@:¹pZ1݅-^ \8j!G$ݩ&UEG}o=V~81 ġLkxc9PwR#)(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X Cq8rUJ<+97Jz(ZcN]3/tM( دWf)V]F,5#C*-2͟q?~[k{]sD1Qw"lGwImE0"#'m~%D-:XJ)ܽy *P |A3M(WZz)(i-R,3'NC%q$ӣ9PK.XrB-3qYvV4X6kQxد^v65% ВGDʇZ77,Z ƄHoƲE 8V?>h$VmZD8Z9nѵ{|Q$8D6_=@el.G]Γϥel|g5C8j BzlV9[~v2t0E 7)+d[=#}C֏\#V"~hY34Mgp%_K"żp/=F=lYpn>z\[EEDcb˜B*Qc|C?MQuɦwגljc3eN c+r_}ɔ3n,/j%P6 (v`*jYRfvK;frԦZӢoA91Z:Oesl 7-+;Ɠ~=oShn ͻk_U޶~~y6d03Nd\ VvC AUF;+? \~vG+bH+O̿ϺQg, 5Mbo_p՞#d: IENDB`pdfarranger-1.4.2/data/icons/hicolor/scalable/000077500000000000000000000000001363324226000212435ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/scalable/apps/000077500000000000000000000000001363324226000222065ustar00rootroot00000000000000pdfarranger-1.4.2/data/icons/hicolor/scalable/apps/pdfarranger.svg000066400000000000000000000054621363324226000252310ustar00rootroot00000000000000PDFPDFpdfarranger-1.4.2/data/pdfarranger.appdata.xml000066400000000000000000000021711363324226000213520ustar00rootroot00000000000000 pdfarranger.desktop CC0-1.0

pdfarranger is a small application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. It is a frontend for pikepdf.

https://github.com/jeromerobert/pdfarranger http://screenshots.debian.net/screenshots/000/017/031/large.png jeromerobert@gmx.com
pdfarranger-1.4.2/data/pdfarranger.desktop000066400000000000000000000007001363324226000206060ustar00rootroot00000000000000[Desktop Entry] Version=1.0 Name=PDF Arranger Comment=PDF Merging, Rearranging, Splitting, Rotating and Cropping Comment[de]=PDFs zusammenfügen, umsortieren, trennen, rotieren und zuschneiden Comment[es]=Mezcle, reordene, divida, rote y recorte documentos PDF Comment[sk]=Grafický nástroj na manipuláciu s PDF Type=Application Exec=pdfarranger %U Icon=pdfarranger MimeType=application/pdf; Categories=Office; Terminal=false StartupNotify=false pdfarranger-1.4.2/data/pdfarranger.ico000066400000000000000000003025361363324226000177230ustar00rootroot00000000000000 hV  00 %f@@ (B; (6}(  MMnC[}UyZfKӣzuosi|ighѲlv[dwIϥ `[o$t%w qptxc}aTGdTF{eRv\aQZ/ك7,ր)|){q:qPо}kbW[PD[L=aK8tQ31އ-ր)|A&wrPwķµ÷uzf_K9}ZU3~1ޅz-ׁ*|&x&sðƾ¯gÔl8v2ؑ-؁*}$wEuŽƻ¶ö}블s9s;x5-׃)|'wztµu`p/V,3/Ī({;r{Xqx}qⳌk,mq#06K9*ɐYXJ3$nU@_K:oZHpYof`j^k!#8;3_2jShU2hM2dH1[@-X?,xSR.QM%&@/+~gK-9kDbSY`Mjr@vEPMQNO''I'&wXx/ llu|yp6 {7O'(R#$cLn\z"!'4i>SY>LbO''X"#J47.&shlqlRfaZoivxzֹwg&!_SGTH=A7.F;0v`LohdZ[Z'rr#s!q o\~u=81zoa50)I?5XI<^Ltµż÷ɿȿ÷żµyq}Umh>5:4Ӡ0݄.ك-ր*~){'y%v#tqwĹƾ¶żö~uܴo'pl=@;70؎.ق-ր*~({'y$v6tv³÷Ĺĺø´xqz{nv@;93.؄,ր+~({'y#vcpq{yqдmop3r1j-560Ȧ,*~({&y0thkt|xpkhnb('',,N42-ΐ*|({%yXmeHkS>ntpv{unhñegk((('4'(8p4/+т({-w[F0!9+ rUd@3(B6+aQAt|eqxtojdaWc((((;%%KKJ/,'{Lkc=+O9'5(pU>@1%tW,#|bL8-#x\lhd^ZWZa((((B%%G:z6-+“yQP.<'C.[A,>-P<+jP;<.!^H5!aJ7{Y\~X~SAQPPP((((J%&70n_-,bb~FsCk@pGuO3\>(_A,eE<+;+pQ7wPyPuLpM QPWQS((((S&&,)dyA)(,t5lDeV^mXSPyL_4!<1'jpjeð_cY~W{RU!s"un`t}$~۹f\Qx?91,'!-' 5,$ebO>aL:oR^Zʭ|UayQ !s$m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_=wR5kK1[ /"bG1eDzQyPwMuKtHJNRPO,OL))''((q''$%+(cuz;+*'&z+r3mAfS_gX}RO|LxLwLvLjDxQ4\?(C.X8uJsGqEoB{FRRPOw QL**%%(({''%%$$sXvrj.*(&$u"u sro m)i4dE^ZXoRN|JvGpCnBm@l?k=l<@LT RPOJM))$$((''%%""`KurrK)('%#s"s!qonlkiheb(^7YLSbKw~Et>m8j@S T RPuO"PJ))((''%%!"L>srnu5('%#{"r!qonljigedba_\Z[#hqz O( R QOPK((..((''%%!"<3orolb~)'%#"s!qonljigec`ah{ wi`[[y Ru7L((((((&&%%""/*hsoklD%%#"!oonljgeht y mfca_Э^,^(())((&&%%##&$}^solhwr/$#"!}mllr{r mhdfԙd\b)` ^`(())((&&%%##!!jQsolifZz%#! xtm*b>TSF~[?pcb`CY++**((&&$$## XErolifh="!~y)pmpnakledfͲhjlnprsrs]IpZGgttrp봐poDm pnkmkjjcknprtvxyuL?3 "]M={cuvsrﴐpoKnnkfitnmnpsvxz|~upua>5,-&r|zxtromRijf_cnrqOsvy|~MB7.'!rbQTH<UH<{j~fovtoli]fha`avu vx|q`<4-osA7.  & ZJ;v^ookgdda[Z~UWzyy;z긚~ULALD:<4-80)fXJK@5  ycOtpkfbȯ^kY^|S]q'Eft|-(# s{k/)#~t zbhs\Hv]GwZc`[ϭ}Vs{S}UU(w pomTx;ẞózm@;4ndXaWKk]OMA6m2)! O<-fJZ~W{SyP "r!s"q"q!tonOluxݹ´µöpi_|ŶzmHA9)$ {fvcR6,#lTM=/&uTY|TyO #t!t$u$t$t"q!q@ pom/oµ÷øĹ寯ø÷IC= NF=\RHB90wfTF9-m_L;Q>-^Z~VQZ(x*w'y&x'y$u $t5"sy"r!q pnm]v´÷ĹŻŽƾžžŽżĺĸjbX#  udzK?4 +#  mQa[~V W(yG*|)|({&x&x*%wl$v$u"s"r!q pn)oµøĻ޶¶µƿŽĺĸ´pfZ]SH{lX& H8+da믃]B^SU#v.ׁ,+~+{)| (z]'y&x%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k. kK^AwV;yS}U|TzRyPwNuKiN RQPn SM))''((''&&#$2-lvxI--,)5Z[nRKyDsBqBpCpErGrHoGiD`>bApK|SwP=, B/ _D.kHzQxOwNvLuJsHwH*QRQPOOI))CC((''&&$$+(aws|~6,,*'$&v+s1o>gQ`dXwRMzJwIuItJvKvLwLuL\vKtIsHrFpDoB^J S RQPOFOD**--((''&&$$%$oVwsr_-+*)'%w$v#u!tsq#n(k2gE`XZlUP|KxIuHsHtHrGmCi@pEqDpCoBm@l>t@#Q T RQPOjM))++((''&&$$!"]JvtquD**)'%%t#t#s"r qonmlki!f(c7^JY_SsN}IuDqBm?k=krtqou{2))'&%ā#s#s"r!q onmlkihgfeca^+Z?TSNgH|zAp;k7tz>Q U S RQoP4OOM)))) ((''&&$$!";2otronX*)'&%#w#s"r!q onmlkihgfdcba`_][WU(Yl o SX T% R QPOO))))((''%%$$"".*htrolq>('&%##r!r!q onmlkihgfdcb`^]_h | tf_ͤ%t RP R((((((''%%$$""'%z\uromjox.'&%#""q!q onmlkihgedbafr shba_^]]((((((''%%$$"#""hPuromjjQ'&%#""w p onmljigefm t l hfdca`Ы^Ea_((((((''%%$$## WDsromjhn9%%#"!!p onljimwvp m m j hgeӑcXb%_ _^^((((((''%%$$## E9oromjhfhu*$#"! mmtzusrng*]?O?Mohcb_]_((((((''%%$$"" 4-kromjifgK$#"! }zywr&i:\NO_Dugem((&&%%$$""!!P?qpmkigecacnizaZV~T|RzPy}Nv{LtzJrxHouFmrClp@in>fl=ek;bi8`h7^f5\ g6]))))C((&&%%$$""!!5-`ifca_\Z}WzTwPtMoJlGhDdAa>];Z8V5U3g=tsCkqAio?gl4 XL@r_zxc{dn{ywvtsqomkiݱgomt,tvxy{}~xhX% paRl80(NA5ybxvusqomkifైeoU uwyz|~nB:2 xgW lYGpusqomkigd걅b`zxz{}*% bWJ}k! OA3pspnljhfda`cxz|~   ("t~xfU# vtrpnligec`^[U {븙}dZOTKBue=4+t`Nxvtqomkifdb_][X|S%|i}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ƾ¶ĸƻǽȾƻŶƾŽĻĹ÷µ}zwtjoljfр3ن(0ك/ڃ.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!q p o'p³µ÷ĹĻŽƿ÷źǼɿȾƼŶƿŽĻĹ÷µ}zwtrolihG6׆0܅f0܅0ۄ/ڄ/ڃ.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!q p ogy´¶øĺżžµĸƻȽȿƼŶƾŽĻĹ÷µ|zwtqoli9 3އU0އ1݆0܅0܅0ۄ/ڄ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!q p#p´öøĺżƾ¶ĹƻȾȾƼŶƾżĺøö´|yvtqnkg43A22߈2߇1އ1݆0܅0܅0ۄ/ڄ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!q pWuµ÷ĹĻŽƿ¶ĹƼȿȾƻĸµžżĺøö´~{yvspnk; 4≶332߈2߇1އ1݆0܅0܅/ۄ/ڄ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!q p~µ÷ĹĻŽƿ¶ĹƼȾɿǼź÷ƿŽŻĹ÷µ³}{xurpmj$5㊳4332߈2߇1އ1݆0܅0܅/ۄ/ڄ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!qFtµ÷ĹĻŽƿ¶ĹƻȾȾƻĸ¶ƾżĺø÷µ}zwtrok44332߈2߇1އ1݆0܅0܅/ۄ/ڄ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q!q{µ÷Ĺĺżƾ¶ĸŻǽɿȾƼŹ÷ƿŽŻĺø¶´|yvtqno4㊼4332߈2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'y&x&w%w%v$u$u#t#t"s"r!r!q6sµöøĺżž÷ŹƼȾȾƼź÷ƾżĺø÷µ~{xuspm|3#4332߈2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'x&x&w%w%v$u$u#t#t"s"r!r!qzx´öøĺŻŽƿ¶ĸźƼȽɿȿǽƻŹ÷µƾŽĻĹ÷µ´|zwtro鱉v 4c332߈2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'x&x&w%w%v$u$u#t#t"s"r!r,r}´µ÷ĹĻżƾƿ¶ĸźƻǼǽȾȾȾȾǽƼźĹ÷ƾŽŻĺøö´~{yvspmg@;J6Ԣ32߈2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'x&x&w%w%v$u$u#t#t"s"r!rju}µöøĺŻŽƾ¶÷ĹźŻƻƻƻŻźĹ÷¶ƾŽŻĺøöµ}zwurn̙fC<<;94ڕ2߈2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'x&x&w%w%v$u$u#t#t"s"r%ry|´¶÷Ĺ忎ƾµ¶÷øĸĸĸ÷÷¶ƿžżĻĺø÷µ³~{yvsqnQC><<;:82މ2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-׀,ր,++~*}*})|)|({(z(z'y'x&x&w%w%v$u$u#t#t"s"rYty|~µöøĹ忎ƾƿµµƿƾŽżĻĹøöµ³|zwuro?f=<<;::6Ž2߇1އ1݆0܅0܅/ۄ/ڃ/ك.ق.؂-ׁ-ր,ր,++~*}*})|)|({(z'z'y'x&x&w%w%v$u$u#t#t"s"ruy{~³µöøĹ寿Žƾƾƿƿ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ր,ր,++~*}*})|){({(z'z'y'x&x&w%w%v$uMocegjlnprtvyz|~~|{ywurpnliЀ++5*;88776554/Ʃ.ق.؂-ׁ-ր,ր,++~*}*})|){({(z'z'y'x&x&w%w%v$uebdfhjmoqsuwy{|~~|zxvtrpnljgE((@((/b87765543/Ґ.؂-ׁ-ր,ր,++~*}*})|){({(z'z'y'x&x&w%w%v>q^`cegikmoqsuwyz|~~}{ywutrpnljg))J((()477655432.׃-ׁ-ր,ր,++~*}*})|){({(z'z'y'x&x&w%w%v|d]_aaegikmoqsuwxz|}~}{zxvusqomkigd3**U((''*=776554330-ׁ-ր,ր,++~*}*})|){({(z'z'y'x&x&w%w3sZ[]`J8) 1&TA1blmoqsuvxy{|~~}|zywutrpnmkigd((`((''''/f76554332-ʙ-ր,ր,+~+~*}*})|){({(z'z'y&x&x&w%wmdXZ\|Y  fjlmoqrtvwyz{|~~}{zywvtsqonljhfd_#))k((''''&)465543320-Ӆ,ր,+~+~*}*})|){({(z'z'y&x&x&w+uW}VXZfK5\G4fhjkmoprsuhxawz{|}~~}|{zywvusrpnmkigfdb))v((''''&&)@65543321/,ր,+~+~*}*})|){({(z'z'y&x&x&w_f{R|U~W~YzZdfhikmnpqs@4)$I<0t_Mj{|}}~~~~~}||{zyxwvtsrpomljhgeca]**((''''&&%%Cx55433211-ç,+~+~*}*})|){({(z'z'y&x&x'wTzQ{S}U]@?/"`bdfgijlmofbQAsz{{|||||||{{zzyyxwvutsqpomljigfdb`^z((((''''&&%%96E54332110-Ό+~+~*}*})|){({(z'z'y&x&xQiwMyOzQ{S8(&YC0|^D~\ceghjkl\I9{cxxyyynpyyxxwwvuutsrqpnmlkihfeca`^幋] ))((''&&&&%%&%64332110.++~*}*})|){({(z'z'y&x&xUvLwNyPmH6)qSdfgih foWXG7 ouvvv8.% 8.%muttsrrqponmljihfecb`_][e))((''&&&&%%$$ja4332110/,+~*}*})|){({(z'z'y&xAnsHuJvLwNS;'  nPdefx]FM<.mnofjVCssse&rrqqp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--,+**)((&%w%v%v$u$u#t#s"s"r!r!q p ponnmmlkkj)fA_XXtQ|JrEqEqErFrFrFrFrFrFrFrFqEqEqEqDpDpDpCoBoBnAn@m@m?l>k=kl=k=kl>l=k=kfm=elfm=el$$#""! ~}|{$t=gWYrJvvGouFntEmsDlrBkqAjp@ho?gn>fm=elfm=elfm=elfm=elfm=elfm=elfm=elfm=elgco?fUl False True False vertical True False False True False _File True True False gtk-add True False True True win.import gtk-save True False True True win.save gtk-save-as True False True True win.save-as _Export selection... True True False win.export-selection True False gtk-quit True False True True win.quit False True False _Edit True True False gtk-undo False False True True win.undo gtk-redo False False True True win.redo False False Rotate left True False False win.rotate -90 Rotate right True False False win.rotate 90 True False Crop True False False win.crop gtk-delete True False True True win.delete Du_plicate True False False True False win.duplicate Reverse Order True False False False win.reverse-order Split pages True False False False win.split Edit properties True False False False win.metadata False True False _View True True False Zoom in True False True True win.zoom 5 Zoom out True False True True win.zoom -5 False True False _Help True True False gtk-about False True False True True False True 0 True False True False True Open a file and append it to the current document Import True gtk-add win.import False True False False False True Save True gtk-save False True True False Save as True gtk-save-as win.save-as False True True False False True True False True Zoom in Zoom in True gtk-zoom-in win.zoom 5 False True True False True Zoom out Zoom out True gtk-zoom-out win.zoom -5 False True True False False True True False True Rotate left Rotate left True object-rotate-left win.rotate -90 False True True False True Rotate right Rotate right True object-rotate-right win.rotate 90 False True True False True Delete Delete True gtk-delete win.delete False True False True 1 True True True True 2 20 True False False True 5 3 Rotate _Left True True False win.rotate -90 _Rotate Right True True False win.rotate 90 C_rop True True False win.crop _Delete True True False win.delete Du_plicate True True False win.duplicate Re_verse Order True True False win.reverse-order _Export selection... True True False win.export-selection pdfarranger-1.4.2/doc/000077500000000000000000000000001363324226000145575ustar00rootroot00000000000000pdfarranger-1.4.2/doc/pdfarranger.1000066400000000000000000000017441363324226000171420ustar00rootroot00000000000000.TH PDFARRANGER 1 "May 2019" "version 1.2" "User Manuals" .SH "NAME" PDF-Arranger \- Application for PDF Merging, Rearranging, Splitting, and Cropping .SH "SYNOPSIS" .B pdfarranger [file1] [file2] ... .SH "DESCRIPTION" .B PDF-Arranger is a small python-gtk application, which helps the user to merge or split pdf documents and rearrange their pages using an interactive and intuitive graphical interface. In the current version, page rotation and cropping is also supported. PDF-Arranger is a frontend for pikepdf. .SH "OPTIONS" Currently PDF-Arranger doesn't receive any options. .SH "FILES" $HOME/.cache/pdfarranger/config.ini .SH "ENVIRONMENT" All gtk related environment variables. .SH "DIAGNOSTICS" Common python and gtk diagnostics. .SH "AUTHOR" Konstantinos Poulios , Jerome Robert .SH COPYRIGHT Copyright \(co 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert .br .SH LICENSE GNU GPL version 3 or later . pdfarranger-1.4.2/flatpak.yaml000066400000000000000000000044671363324226000163330ustar00rootroot00000000000000--- id: com.github.jeromerobert.pdfarranger runtime: org.gnome.Platform runtime-version: '3.34' sdk: org.gnome.Sdk command: pdfarranger modules: - name: intltool cleanup: [ "*" ] sources: - type: archive url: https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz sha256: 67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd - name: openjpeg buildsystem: cmake sources: - url: https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz sha256: 3dc787c1bb6023ba846c2a0d9b1f6e179f1cd255172bde9eb75b01f1e6c7d71a type: archive config-opts: [ "-DBUILD_STATIC_LIBS=OFF" ] - name: poppler buildsystem: cmake sources: - url: https://poppler.freedesktop.org/poppler-0.71.0.tar.xz sha256: badbecd2dddf63352fd85ec08a9c2ed122fdadacf2a34fcb4cc227c4d01f2cf9 type: archive config-opts: [ "-DENABLE_UTILS=OFF", "-DENABLE_CPP=OFF" ] - name: python-distutils-extra buildsystem: simple sources: - url: https://launchpad.net/python-distutils-extra/trunk/2.39/+download/python-distutils-extra-2.39.tar.gz sha256: 723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af type: archive build-commands: - pip3 install --prefix=/app . - name: pikepdf buildsystem: simple build-commands: - pip3 install --no-index --prefix=$FLATPAK_DEST lxml-*.whl pikepdf-*.whl sources: - type: file url: https://files.pythonhosted.org/packages/25/a0/816397f097ec58af4a9959130c0f748861ecf29d71e1f184b868738aa203/pikepdf-1.8.1-cp37-cp37m-manylinux2010_x86_64.whl sha256: ce43742788e5757877b6d83134f8a554aef8fc90990a844075464b757bc57cd8 - type: file url: https://files.pythonhosted.org/packages/95/60/552fc6e027bc1158ba4691cccfdf6eb77f206f2f21d3c1c5f23b89f68a0e/lxml-4.4.2-cp37-cp37m-manylinux1_x86_64.whl sha256: 61409bd745a265a742f2693e4600e4dbd45cc1daebe1d5fad6fcb22912d44145 - name: pdfarranger buildsystem: simple sources: - url: https://github.com/jeromerobert/pdfarranger commit: master type: git build-commands: - pip3 install --prefix=/app . cleanup: - /include - /lib/pkgconfig - /app/lib/openjpeg-2.3 - /app/bin/opj_* finish-args: - --socket=wayland - --socket=x11 - --share=ipc - --filesystem=home - --filesystem=xdg-run/dconf - --filesystem=~/.config/dconf:ro - --talk-name=ca.desrt.dconf - --env=DCONF_USER_CONFIG_DIR=.config/dconf pdfarranger-1.4.2/pdfarranger/000077500000000000000000000000001363324226000163055ustar00rootroot00000000000000pdfarranger-1.4.2/pdfarranger/__init__.py000066400000000000000000000000001363324226000204040ustar00rootroot00000000000000pdfarranger-1.4.2/pdfarranger/__main__.py000066400000000000000000000001301363324226000203710ustar00rootroot00000000000000import sys from pdfarranger import pdfarranger pdfarranger.PdfArranger().run(sys.argv) pdfarranger-1.4.2/pdfarranger/exporter.py000066400000000000000000000064051363324226000205340ustar00rootroot00000000000000# Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import copy import pikepdf import traceback import sys from . import metadata from decimal import Decimal def _mediabox(row, angle, angle0, box): """ Return the cropped media box for a given page """ crop = row[7:11] if crop != [0., 0., 0., 0.]: rotate_times = int(round(((angle + angle0) % 360) / 90) % 4) crop_init = crop if rotate_times != 0: perm = [0, 2, 1, 3] for _ in range(rotate_times): perm.append(perm.pop(0)) perm.insert(1, perm.pop(2)) crop = [crop_init[perm[side]] for side in range(4)] # PyPDF2 FloatObject instances are decimal.Decimal objects x1, y1, x2, y2 = [float(x) for x in box] x1_new = x1 + (x2 - x1) * crop[0] x2_new = x2 - (x2 - x1) * crop[1] y1_new = y1 + (y2 - y1) * crop[3] y2_new = y2 - (y2 - y1) * crop[2] # pikepdf converts float to Decimal in most cases return [Decimal(v) for v in [x1_new, y1_new, x2_new, y2_new]] _report_pikepdf_err = True def export(input_files, pages, file_out, mdata): global _report_pikepdf_err pdf_output = pikepdf.Pdf.new() pdf_input = [pikepdf.open(p.copyname) for p in input_files] for row in pages: current_page = pdf_input[row[2] - 1].pages[row[3] - 1] angle = row[6] angle0 = current_page.Rotate if '/Rotate' in current_page else 0 new_page = pdf_output.copy_foreign(current_page) # Workaround for pikepdf <= 1.10.1 # https://github.com/pikepdf/pikepdf/issues/80#issuecomment-590533474 try: new_page = copy.copy(new_page) except TypeError: if _report_pikepdf_err: _report_pikepdf_err = False traceback.print_exc() print("Current pikepdf version {}, required pikepdf version " "1.7.0 or greater. Continuing but pdfarranger will not " "work properly.".format(pikepdf.__version__), file=sys.stderr) if angle != 0: new_page.Rotate = angle + angle0 cropped = _mediabox(row, angle, angle0, current_page.MediaBox) if cropped: new_page.MediaBox = cropped pdf_output.pages.append(new_page) ppae = metadata.PRODUCER not in mdata with pdf_output.open_metadata(set_pikepdf_as_editor=ppae) as outmeta: outmeta.load_from_docinfo(pdf_input[0].docinfo) for k, v in mdata.items(): outmeta[k] = v pdf_output.save(file_out) pdfarranger-1.4.2/pdfarranger/iconview.py000066400000000000000000000121731363324226000205060ustar00rootroot00000000000000# Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from gi.repository import Gtk from gi.repository import GObject from math import pi class CellRendererImage(Gtk.CellRenderer): __gproperties__ = { "image": (GObject.TYPE_PYOBJECT, "Image", "Image", GObject.PARAM_READWRITE), "width": (GObject.TYPE_FLOAT, "Width", "Width", 0., 1.e4, 0., GObject.PARAM_READWRITE), "height": (GObject.TYPE_FLOAT, "Height", "Height", 0., 1.e4, 0., GObject.PARAM_READWRITE), "rotation": (GObject.TYPE_INT, "Rotation", "Rotation", 0, 360, 0, GObject.PARAM_READWRITE), "scale": (GObject.TYPE_FLOAT, "Scale", "Scale", 0.01, 100., 1., GObject.PARAM_READWRITE), "resample": (GObject.TYPE_FLOAT, "Resample", "Resample Coefficient", 0., 100., 1., GObject.PARAM_READWRITE), "cropL": (GObject.TYPE_FLOAT, "CropL", "CropL", 0., 1., 0., GObject.PARAM_READWRITE), "cropR": (GObject.TYPE_FLOAT, "CropR", "CropR", 0., 1., 0., GObject.PARAM_READWRITE), "cropT": (GObject.TYPE_FLOAT, "CropT", "CropT", 0., 1., 0., GObject.PARAM_READWRITE), "cropB": (GObject.TYPE_FLOAT, "CropB", "CropB", 0., 1., 0., GObject.PARAM_READWRITE), } def __init__(self): Gtk.CellRenderer.__init__(self) self.th1 = 2. # border thickness self.th2 = 3. # shadow thickness def get_geometry(self): rotation = int(self.rotation) % 360 rotation = round(rotation / 90) * 90 if not self.image: w0 = w1 = self.width / self.resample h0 = h1 = self.height / self.resample else: w0 = self.image.get_width() h0 = self.image.get_height() if rotation == 90 or rotation == 270: w1, h1 = h0, w0 else: w1, h1 = w0, h0 scale = self.resample * self.scale w2 = int(scale * (1. - self.cropL - self.cropR) * w1) h2 = int(scale * (1. - self.cropT - self.cropB) * h1) return w0, h0, w1, h1, w2, h2, rotation def do_set_property(self, pspec, value): setattr(self, pspec.name, value) def do_get_property(self, pspec): return getattr(self, pspec.name) def do_render(self, window, _widget, _background_area, cell_area, _expose_area): if not self.image: return w0, h0, w1, h1, w2, h2, rotation = self.get_geometry() th = int(2 * self.th1 + self.th2) w = w2 + th h = h2 + th x = cell_area.x y = cell_area.y if cell_area and w > 0 and h > 0: x += self.get_property('xalign') * ( cell_area.width - w - self.get_property('xpad')) y += self.get_property('yalign') * ( cell_area.height - h - self.get_property('ypad')) window.translate(x, y) x = self.cropL * w1 y = self.cropT * h1 # shadow window.set_source_rgb(0.5, 0.5, 0.5) window.rectangle(th, th, w2, h2) window.fill() # border window.set_source_rgb(0, 0, 0) window.rectangle(0, 0, w2 + 2 * self.th1, h2 + 2 * self.th1) window.fill() # image window.set_source_rgb(1, 1, 1) window.rectangle(self.th1, self.th1, w2, h2) window.fill_preserve() window.clip() window.translate(self.th1, self.th1) scale = self.resample * self.scale window.scale(scale, scale) window.translate(-x, -y) if rotation > 0: window.translate(w1 / 2, h1 / 2) window.rotate(rotation * pi / 180) window.translate(-w0 / 2, -h0 / 2) window.set_source_surface(self.image) window.paint() def do_get_size(self, _widget, cell_area=None): x = y = 0 _w0, _h0, _w1, _h1, w2, h2, _rotation = self.get_geometry() th = int(2 * self.th1 + self.th2) w = w2 + th h = h2 + th if cell_area and w > 0 and h > 0: x = self.get_property('xalign') * ( cell_area.width - w - self.get_property('xpad')) y = self.get_property('yalign') * ( cell_area.height - h - self.get_property('ypad')) w += 2 * self.get_property('xpad') h += 2 * self.get_property('ypad') return int(x), int(y), w, h pdfarranger-1.4.2/pdfarranger/metadata.py000066400000000000000000000145321363324226000204440ustar00rootroot00000000000000# Copyright (C) 2020 Jerome Robert # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """ PDF meta data edition """ import pikepdf import gettext import re import json from gi.repository import Gtk _ = gettext.gettext # The producer property can be overriden by pikepdf PRODUCER = '{http://ns.adobe.com/pdf/1.3/}Producer' # Currently the only property which support lists as values. If you add more # please implement a generic mecanism. _CREATOR = '{http://purl.org/dc/elements/1.1/}creator' # List of supported meta data with their user representation # see https://wwwimages2.adobe.com/content/dam/acom/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart1.pdf # if you want to add more _LABELS = { '{http://purl.org/dc/elements/1.1/}title': _('Title'), _CREATOR: _('Creator'), PRODUCER: _('Producer'), '{http://ns.adobe.com/xap/1.0/}CreatorTool': _('Creator tool') } def _pikepdf_meta_is_valid(meta): """ Return true if m is a valid PikePDF meta data value. PikePDF pass meta data to re.sub which only accept str or byte-like object. """ if not isinstance(meta, list): meta = [meta] for s in meta: try: re.sub('', '', s) except TypeError: return False return True def merge(metadata, input_files): """ Merge current global metadata and each imported files meta data """ r = metadata.copy() for p in input_files: doc = pikepdf.open(p.copyname) with doc.open_metadata() as meta: meta.load_from_docinfo(doc.docinfo) for k, v in meta.items(): if not _pikepdf_meta_is_valid(v): # workaround for https://github.com/pikepdf/pikepdf/issues/84 del meta[k] elif k not in metadata: r[k] = v return r def _metatostr(value, name): """ Convert a meta data value from list to string if it's not a string """ if isinstance(value, str) and len(value) > 0: return value elif isinstance(value, list) and len(value) > 0 and name == _CREATOR: if len(value) == 1: return _metatostr(value[0], name) else: return json.dumps(value) return None def _strtometa(value, name): if value is None or len(value) == 0: return None try: r = json.loads(value) if name == _CREATOR else value if isinstance(r, list): return None if len(r) == 0 else r else: # r is a dict which is not supported so we revert back # to a plain string return value except json.decoder.JSONDecodeError: return value class _EditedEventHandler(object): """ Callbacks to save the data entered into the "Edit properties" fields. For basic saving just the edited method would be needed. The rest is a workaround for Gtk interpreting a lost focus (including clicking "Apply") as a cancelled edit and therefore discarding the edit currently in progress. To avoid that, we need to save the text on each changed event to self.new_text and then save it to the liststore on canceled. We can not save it directly to the liststore since that stops editing after each keypress. """ def __init__(self, liststore): self.liststore = liststore self.path = None self.new_text = None def started(self, _renderer, editable, path): self.path = path editable.connect("changed", self.editable_changed) def editable_changed(self, editable): self.new_text = editable.get_text() def edited(self, _renderer, path, new_text): self.liststore[path][1] = new_text def canceled(self, _renderer): if self.new_text is not None: self.liststore[self.path][1] = self.new_text def edit(metadata, pdffiles, parent): """ Edit the current meta data :param metadata: The dictionnary of meta data to modify :param pdffiles: A list of PDF from witch to take the initial meta data :param parent: The parent window """ dialog = Gtk.Dialog(title=_('Edit properties'), parent=parent, flags=Gtk.DialogFlags.MODAL, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OK, Gtk.ResponseType.OK)) dialog.set_default_response(Gtk.ResponseType.OK) # Property, Value, XMP name (hidden) liststore = Gtk.ListStore(str, str, str) mergedmetadata = merge(metadata, pdffiles) for xlabel, label in _LABELS.items(): metastr = _metatostr(mergedmetadata.get(xlabel, ''), xlabel) liststore.append([label, metastr, xlabel]) treeview = Gtk.TreeView.new_with_model(liststore) for i, v in enumerate([(_("Property"), False), (_("Value")+" "*30, True)]): title, editable = v renderer = Gtk.CellRendererText() if editable: renderer.set_property("editable", True) handler = _EditedEventHandler(liststore) renderer.connect("editing-started", handler.started) renderer.connect("edited", handler.edited) renderer.connect("editing-canceled", handler.canceled) column = Gtk.TreeViewColumn(title, renderer, text=i) treeview.append_column(column) treeview.props.margin = 12 dialog.vbox.pack_start(treeview, True, True, 0) dialog.show_all() result = dialog.run() r = result == Gtk.ResponseType.OK dialog.destroy() if r: for row in liststore: value = _strtometa(row[1], row[2]) if value is None: if row[2] in metadata: del metadata[row[2]] else: metadata[row[2]] = value return r pdfarranger-1.4.2/pdfarranger/pdfarranger.py000066400000000000000000001574021363324226000211630ustar00rootroot00000000000000# Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import os import shutil # for file operations like whole directory deletion import sys # for processing of command line args import threading import tempfile import signal import pathlib import platform import configparser import warnings import traceback import locale # for multilanguage support import gettext from urllib.request import url2pathname sharedir = os.path.join(sys.prefix, 'share') basedir = '.' if getattr(sys, 'frozen', False): basedir = os.path.dirname(sys.executable) sharedir = os.path.join(basedir, 'share') elif sys.argv[0]: execdir = os.path.dirname(os.path.realpath(sys.argv[0])) basedir = os.path.dirname(execdir) sharedir = os.path.join(basedir, 'share') if not os.path.exists(sharedir): sharedir = basedir localedir = os.path.join(sharedir, 'locale') if not os.path.exists(localedir): # Assume we are in development mode localedir = os.path.join(basedir, 'build', 'mo') locale.setlocale(locale.LC_ALL, '') DOMAIN = 'pdfarranger' if os.name == 'nt': from ctypes import cdll libintl = cdll['libintl-8'] libintl.bindtextdomain(DOMAIN.encode(), localedir.encode(sys.getfilesystemencoding())) libintl.bind_textdomain_codeset(DOMAIN.encode(), 'UTF-8'.encode()) del libintl else: locale.bindtextdomain(DOMAIN, localedir) try: locale.bind_textdomain_codeset(DOMAIN, 'UTF-8') except AttributeError: pass APPNAME = 'PDF Arranger' VERSION = '1.4.2' WEBSITE = 'https://github.com/jeromerobert/pdfarranger' LICENSE = 'GNU General Public License (GPL) Version 3.' import gi # check that we don't need GObject.threads_init() gi.check_version('3.10.2') gi.require_version('Gtk', '3.0') from gi.repository import Gtk if Gtk.check_version(3, 4, 0): raise Exception('You do not have the required version of GTK+ installed. ' + 'Installed GTK+ version is ' + '.'.join([str(Gtk.get_major_version()), str(Gtk.get_minor_version()), str(Gtk.get_micro_version())]) + '. Required GTK+ version is 3.4 or higher.') from gi.repository import Gdk from gi.repository import GObject # for using custom signals from gi.repository import Gio # for inquiring mime types information from gi.repository import GLib from gi.repository import Pango gi.require_version('Poppler', '0.18') from gi.repository import Poppler # for the rendering of pdf pages import cairo if os.name == 'nt' and GLib.get_language_names(): os.environ['LANG'] = GLib.get_language_names()[0] gettext.bindtextdomain(DOMAIN, localedir) gettext.textdomain(DOMAIN) _ = gettext.gettext from . import undo from . import exporter from . import metadata from .iconview import CellRendererImage GObject.type_register(CellRendererImage) def _install_workaround_bug29(): """ Install a workaround for https://gitlab.gnome.org/GNOME/pygobject/issues/29 """ try: gi.check_version('3.29.2') except ValueError: def func(self, entries): # simplified version of https://gitlab.gnome.org/GNOME/pygobject/commit/d0b219c for d in entries: param_type = None if len(d) < 3 else GLib.VariantType.new(d[2]) action = Gio.SimpleAction(name=d[0], parameter_type=param_type) action.connect("activate", d[1], None) self.add_action(action) Gtk.ApplicationWindow.add_action_entries = func _install_workaround_bug29() class Config(object): """ Wrap a ConfigParser object for PDFArranger """ @staticmethod def _config_file(): """ Return the location of the configuration file """ home = os.path.expanduser("~") if platform.system() == 'Darwin': p = os.path.join(home, 'Library', 'Caches') elif 'LOCALAPPDATA' in os.environ: p = os.getenv('LOCALAPPDATA') elif 'XDG_CACHE_HOME' in os.environ: p = os.getenv('XDG_CACHE_HOME') else: p = os.path.join(home, '.cache') p = os.path.join(p, DOMAIN) os.makedirs(p, exist_ok=True) return os.path.join(p, 'config.ini') def __init__(self): self.data = configparser.ConfigParser() self.data.add_section('window') self.data.read(Config._config_file()) def window_size(self): ds = Gdk.Screen.get_default() return self.data.getint('window', 'width', fallback=int(min(700, ds.get_width() / 2))), \ self.data.getint('window', 'height', fallback=int(min(600, ds.get_height() - 50))) def set_window_size(self, size): self.data.set('window', 'width', str(size[0])) self.data.set('window', 'height', str(size[1])) def maximized(self): return self.data.getboolean('window', 'maximized', fallback=False) def set_maximized(self, m): self.data.set('window', 'maximized', str(m)) def zoom_level(self): return self.data.getint('DEFAULT', 'zoom-level', fallback=0) def set_zoom_level(self, l): self.data.set('DEFAULT', 'zoom-level', str(l)) def save(self): conffile = Config._config_file() os.makedirs(os.path.dirname(conffile), exist_ok=True) with open(conffile, 'w') as f: self.data.write(f) def warn_dialog(func): """ Decorator which redirect warnings module messages to a gkt MessageDialog """ class ShowWarning(object): def __init__(self): self.buffer = "" def __call__(self, message, category, filename, lineno, f=None, line=None): s = warnings.formatwarning(message, category, filename, lineno, line) sys.stderr.write(s + '\n') self.buffer += str(message) + '\n' def wrapper(*args, **kwargs): self = args[0] backup_showwarning = warnings.showwarning warnings.showwarning = ShowWarning() try: func(*args, **kwargs) if len(warnings.showwarning.buffer) > 0: self.error_message_dialog(warnings.showwarning.buffer, Gtk.MessageType.WARNING) finally: warnings.showwarning = backup_showwarning return wrapper def get_file_path_from_dnd_dropped_uri(uri): """Extracts the path from an uri""" path = url2pathname(uri) # escape special chars path = path.strip('\r\n\x00') # remove \r\n and NULL # get the path to file if path.startswith('file:\\\\\\'): # windows path = path[8:] # 8 is len('file:///') elif path.startswith('file://'): # nautilus, rox path = path[7:] # 7 is len('file://') elif path.startswith('file:'): # xffm path = path[5:] # 5 is len('file:') return path class PdfArranger(Gtk.Application): # Drag and drop ID for pages coming from the same pdfarranger instance MODEL_ROW_INTERN = 1001 # Drag and drop ID for pages coming from an other pdfarranger instance MODEL_ROW_EXTERN = 1002 # Drag and drop ID for pages coming from a non-pdfarranger application TEXT_URI_LIST = 1003 TARGETS_IV = [Gtk.TargetEntry.new('MODEL_ROW_INTERN', Gtk.TargetFlags.SAME_WIDGET, MODEL_ROW_INTERN), Gtk.TargetEntry.new('MODEL_ROW_EXTERN', Gtk.TargetFlags.OTHER_APP, MODEL_ROW_EXTERN)] TARGETS_SW = [Gtk.TargetEntry.new('text/uri-list', 0, TEXT_URI_LIST), Gtk.TargetEntry.new('MODEL_ROW_EXTERN', Gtk.TargetFlags.OTHER_APP, MODEL_ROW_EXTERN)] def __init__(self, *args, **kwargs): super().__init__(*args, application_id="com.github.jeromerobert.pdfarranger", flags=Gio.ApplicationFlags.HANDLES_OPEN | Gio.ApplicationFlags.NON_UNIQUE, **kwargs) # Create the temporary directory self.tmp_dir = tempfile.mkdtemp(DOMAIN) os.chmod(self.tmp_dir, 0o700) # Defining instance attributes # The None values will be set later in do_activate self.config = Config() self.uiXML = None self.window = None self.sw = None self.model = None self.undomanager = None self.iconview = None self.cellthmb = None self.progress_bar = None self.progress_bar_timeout_id = None self.popup = None self.is_unsaved = False self.zoom_level = None self.zoom_scale = None self.export_directory = os.path.expanduser('~') self.import_directory = self.export_directory self.nfile = 0 self.iv_auto_scroll_direction = 0 self.iv_auto_scroll_timer = None self.pdfqueue = [] self.metadata = {} self.pressed_button = None self.rendering_thread = None self.export_file = None def do_open(self, files, _n, _hints): """ https://lazka.github.io/pgi-docs/Gio-2.0/classes/Application.html#Gio.Application.do_open """ self.activate() # Importing documents passed as command line arguments a = PageAdder(self) for f in files: a.addpages(f.get_path()) a.commit() if len(files) == 1: self.set_unsaved(False) def __create_actions(self): # Both Gtk.ApplicationWindow and Gtk.Application are Gio.ActionMap. Some action are window # related some other are application related. As pdfarrager is a single window app does not # matter that much. self.window.add_action_entries([ ('rotate', self.rotate_page_action, 'i'), ('delete', self.clear_selected), ('duplicate', self.duplicate), ('crop', self.crop_page_dialog), ('export-selection', self.choose_export_selection_pdf_name), ('reverse-order', self.reverse_order), ('save', self.on_action_save), ('save-as', self.on_action_save_as), ('import', self.on_action_add_doc_activate), ('zoom', self.zoom_change, 'i'), ('quit', self.on_quit), ('undo', self.undomanager.undo), ('redo', self.undomanager.redo), ('split', self.split_pages), ('metadata', self.edit_metadata), ]) accels = [ ('delete', 'Delete'), ('crop', 'c'), ('rotate(90)', 'Right'), ('rotate(-90)', 'Left'), ('save', 's'), ('save-as', 's'), ('export-selection', 'e'), ('quit', 'q'), ('import', 'Insert'), ('zoom(5)', 'plus'), ('zoom(-5)', 'minus'), ('undo', 'z'), ('redo', 'y'), ] for a, k in accels: self.set_accels_for_action("win." + a, [k]) # Disable actions self.iv_selection_changed_event() # Display accelerators in the menus for o in self.uiXML.get_objects(): if isinstance(o, Gtk.MenuItem) and o.get_action_name() is not None: an = Gio.Action.print_detailed_name(o.get_action_name(), o.get_action_target_value()) a = self.get_accels_for_action(an) if len(a) > 0: o.get_child().set_accel(*Gtk.accelerator_parse(a[0])) self.undomanager.set_actions(self.window.lookup_action('undo'), self.window.lookup_action('redo')) def do_activate(self): """ https://lazka.github.io/pgi-docs/Gio-2.0/classes/Application.html#Gio.Application.do_activate """ # TODO: huge method that should be splitted iconsdir = os.path.join(sharedir, 'icons') if not os.path.exists(iconsdir): iconsdir = os.path.join(sharedir, 'data', 'icons') Gtk.IconTheme.get_default().append_search_path(iconsdir) Gtk.Window.set_default_icon_name(DOMAIN) # Import the user interface file, trying different possible locations ui_path = os.path.join(basedir, 'share', DOMAIN, DOMAIN + '.ui') if not os.path.exists(ui_path): ui_path = os.path.join(basedir, 'data', DOMAIN + '.ui') if not os.path.exists(ui_path): ui_path = '/usr/share/{}/{}.ui'.format(DOMAIN, DOMAIN) if not os.path.exists(ui_path): ui_path = '/usr/local/share/{}/{}.ui'.format(DOMAIN, DOMAIN) self.uiXML = Gtk.Builder() self.uiXML.set_translation_domain(DOMAIN) self.uiXML.add_from_file(ui_path) self.uiXML.connect_signals(self) # Create the main window, and attach delete_event signal to terminating # the application self.window = self.uiXML.get_object('main_window') self.window.set_title(APPNAME) self.window.set_border_width(0) self.window.set_application(self) if self.config.maximized(): self.window.maximize() self.window.set_default_size(*self.config.window_size()) self.window.connect('delete_event', self.close_application) if hasattr(GLib, "unix_signal_add"): GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, self.close_application) # Create a scrolled window to hold the thumbnails-container self.sw = self.uiXML.get_object('scrolledwindow') self.sw.drag_dest_set(Gtk.DestDefaults.MOTION | Gtk.DestDefaults.HIGHLIGHT | Gtk.DestDefaults.DROP | Gtk.DestDefaults.MOTION, self.TARGETS_SW, Gdk.DragAction.COPY | Gdk.DragAction.MOVE) self.sw.connect('drag_data_received', self.sw_dnd_received_data) self.sw.connect('button_press_event', self.sw_button_press_event) self.sw.connect('scroll_event', self.sw_scroll_event) # Create ListStore model and IconView self.model = Gtk.ListStore(str, # 0.Text descriptor GObject.TYPE_PYOBJECT, # 1.Cached page image int, # 2.Document number int, # 3.Page number float, # 4.Scale str, # 5.Document filename int, # 6.Rotation angle float, # 7.Crop left float, # 8.Crop right float, # 9.Crop top float, # 10.Crop bottom float, # 11.Page width float, # 12.Page height float) # 13.Resampling factor self.undomanager = undo.Manager(self) self.zoom_set(self.config.zoom_level()) self.iconview = Gtk.IconView(self.model) self.iconview.clear() self.iconview.set_item_width(-1) self.cellthmb = CellRendererImage() self.iconview.pack_start(self.cellthmb, False) self.iconview.set_cell_data_func(self.cellthmb, self.set_cellrenderer_data, None) self.iconview.set_text_column(0) cell_text_renderer = self.iconview.get_cells()[1] cell_text_renderer.props.ellipsize = Pango.EllipsizeMode.MIDDLE self.iconview.set_selection_mode(Gtk.SelectionMode.MULTIPLE) self.iconview.enable_model_drag_source(Gdk.ModifierType.BUTTON1_MASK, self.TARGETS_IV, Gdk.DragAction.COPY | Gdk.DragAction.MOVE) self.iconview.enable_model_drag_dest(self.TARGETS_IV, Gdk.DragAction.DEFAULT) self.iconview.connect('drag_begin', self.iv_drag_begin) self.iconview.connect('drag_data_get', self.iv_dnd_get_data) self.iconview.connect('drag_data_received', self.iv_dnd_received_data) self.iconview.connect('drag_data_delete', self.iv_dnd_data_delete) self.iconview.connect('drag_motion', self.iv_dnd_motion) self.iconview.connect('drag_leave', self.iv_dnd_leave_end) self.iconview.connect('drag_end', self.iv_dnd_leave_end) self.iconview.connect('button_press_event', self.iv_button_press_event) self.iconview.connect('motion_notify_event', self.iv_motion) self.iconview.connect('button_release_event', self.iv_button_release_event) self.iconview.connect('selection_changed', self.iv_selection_changed_event) self.sw.add_with_viewport(self.iconview) # Progress bar self.progress_bar = self.uiXML.get_object('progressbar') # Define window callback function and show window self.window.connect('check_resize', self.on_window_size_request) self.window.show_all() self.progress_bar.hide() # Change iconview color background style_context_sw = self.sw.get_style_context() color_selected = self.iconview.get_style_context() \ .get_background_color(Gtk.StateFlags.SELECTED) color_prelight = color_selected.copy() color_prelight.alpha = 0.3 for state in (Gtk.StateFlags.NORMAL, Gtk.StateFlags.ACTIVE): self.iconview.override_background_color( state, style_context_sw.get_background_color(state)) self.iconview.override_background_color(Gtk.StateFlags.SELECTED, color_selected) self.iconview.override_background_color(Gtk.StateFlags.PRELIGHT, color_prelight) self.popup = self.uiXML.get_object('popup_menu') self.popup.attach_to_widget(self.window, None) GObject.type_register(PDFRenderer) GObject.signal_new('update_thumbnail', PDFRenderer, GObject.SignalFlags.RUN_FIRST, None, [GObject.TYPE_INT, GObject.TYPE_PYOBJECT, GObject.TYPE_FLOAT]) self.set_unsaved(False) self.__create_actions() @staticmethod def set_cellrenderer_data(_column, cell, model, it, _data=None): cell.set_property('image', model.get_value(it, 1)) cell.set_property('scale', model.get_value(it, 4)) cell.set_property('rotation', model.get_value(it, 6)) cell.set_property('cropL', model.get_value(it, 7)) cell.set_property('cropR', model.get_value(it, 8)) cell.set_property('cropT', model.get_value(it, 9)) cell.set_property('cropB', model.get_value(it, 10)) cell.set_property('width', model.get_value(it, 11)) cell.set_property('height', model.get_value(it, 12)) cell.set_property('resample', model.get_value(it, 13)) def render(self): if self.rendering_thread: self.rendering_thread.quit = True self.rendering_thread.join() self.rendering_thread = PDFRenderer(self.model, self.pdfqueue, 1 / self.zoom_scale) self.rendering_thread.connect('update_thumbnail', self.update_thumbnail) self.rendering_thread.start() if self.progress_bar_timeout_id is not None: GObject.source_remove(self.progress_bar_timeout_id) self.progress_bar_timeout_id = \ GObject.timeout_add(50, self.progress_bar_timeout) def set_unsaved(self, flag): self.is_unsaved = flag GObject.idle_add(self.retitle) def retitle(self): all_files = self.active_file_names() title = '' if len(all_files) == 1: title += all_files.pop() elif len(all_files) == 0: title += _("No document") else: title += _("Several documents") if self.is_unsaved: title += '*' title += ' - ' + APPNAME self.window.set_title(title) return False def progress_bar_timeout(self): cnt_finished = 0 cnt_all = 0 for row in self.model: cnt_all += 1 if row[1]: cnt_finished += 1 fraction = 1 if cnt_all == 0 else cnt_finished / cnt_all self.progress_bar.set_fraction(fraction) self.progress_bar.set_text(_('Rendering thumbnails... [%(i1)s/%(i2)s]') % {'i1': cnt_finished, 'i2': cnt_all}) if fraction >= 0.999: self.progress_bar.hide() self.progress_bar_timeout_id = None return False elif not self.progress_bar.get_visible(): self.progress_bar.show() return True def update_thumbnail(self, _obj, num, thumbnail, resample): row = self.model[num] row[13] = resample row[4] = self.zoom_scale row[1] = thumbnail def on_window_size_request(self, window): """Main Window resize - workaround for autosetting of iconview cols no.""" if len(self.model) > 0: # scale*page_width*(1-crop_left-crop_right) item_width = int(max(row[4] * row[11] * (1. - row[7] - row[8]) for row in self.model)) # FIXME: those are magic number found with my current GTK # style. This might not be portable. min_col_spacing = 19 min_margin = 14 iw_width = window.get_size()[0] # 2 * min_margin + col_num * item_width # + min_col_spacing * (col_num-1) = iw_width # min_margin+margin = min_col_spacing+col_spacing # = (iw_width - col_num * item_width) / (col_num+1) col_num = (iw_width - 2 * min_margin - min_col_spacing) //\ (item_width + min_col_spacing) spacing = (iw_width - col_num * item_width) // (col_num + 1) if col_num == 0: col_num = 1 spacing = min_margin self.iconview.set_columns(col_num) self.iconview.set_column_spacing(spacing - min_col_spacing) self.iconview.set_margin_left(spacing - min_margin) def update_geometry(self, treeiter): """Recomputes the width and height of the rotated page and saves the result in the ListStore""" if not self.model.iter_is_valid(treeiter): return nfile, npage, rotation = self.model.get(treeiter, 2, 3, 6) page = self.pdfqueue[nfile - 1].document.get_page(npage - 1) w0, h0 = page.get_size() rotation = int(rotation) % 360 rotation = round(rotation / 90) * 90 if rotation == 90 or rotation == 270: w1, h1 = h0, w0 else: w1, h1 = w0, h0 self.model.set(treeiter, 11, w1, 12, h1) def on_quit(self, _action, _param, _unknown): self.close_application() def close_application(self, _widget=None, _event=None, _data=None): """Termination""" # Prevent gtk errors when closing with everything selected self.iconview.unselect_all() if self.rendering_thread: self.rendering_thread.quit = True self.rendering_thread.join() self.rendering_thread.pdfqueue = [] # Release Poppler.Document instances to unlock all temporay files self.pdfqueue = [] self.config.set_window_size(self.window.get_size()) self.config.set_maximized(self.window.is_maximized()) self.config.set_zoom_level(self.zoom_level) self.config.save() if os.path.isdir(self.tmp_dir): shutil.rmtree(self.tmp_dir) self.quit() def choose_export_pdf_name(self, only_selected=False): """Handles choosing a name for exporting """ chooser = Gtk.FileChooserDialog(title=_('Export ...'), parent=self.window, action=Gtk.FileChooserAction.SAVE, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_SAVE, Gtk.ResponseType.ACCEPT)) chooser.set_do_overwrite_confirmation(True) if len(self.pdfqueue) > 0: chooser.set_filename(self.pdfqueue[0].filename) chooser.set_current_folder(self.export_directory) filter_pdf = Gtk.FileFilter() filter_pdf.set_name(_('PDF files')) filter_pdf.add_pattern('*.pdf') filter_pdf.add_mime_type('application/pdf') chooser.add_filter(filter_pdf) filter_all = Gtk.FileFilter() filter_all.set_name(_('All files')) filter_all.add_pattern('*') chooser.add_filter(filter_all) while True: response = chooser.run() if response == Gtk.ResponseType.ACCEPT: file_out = chooser.get_filename() try: self.save(only_selected, file_out) except Exception as e: traceback.print_exc() chooser.destroy() self.error_message_dialog(e) return break chooser.destroy() def active_file_names(self): """Returns the file names currently associated with pages in the model.""" all_files = set() for row in self.model: nfile = row[2] f = self.pdfqueue[nfile - 1] all_files.add(f.filename) return all_files def on_action_save(self, _action, _param, _unknown): try: if self.export_file: self.save(False, self.export_file) else: self.choose_export_pdf_name() except Exception as e: self.error_message_dialog(e) def on_action_save_as(self, _action, _param, _unknown): self.choose_export_pdf_name() @warn_dialog def save(self, only_selected, file_out): """Saves to the specified file. May throw exceptions.""" (path, shortname) = os.path.split(file_out) (shortname, ext) = os.path.splitext(shortname) if ext.lower() != '.pdf': file_out = file_out + '.pdf' to_export = self.model if only_selected: selection = self.iconview.get_selected_items() to_export = [row for row in self.model if row.path in selection] else: self.export_directory = path self.export_file = file_out self.set_unsaved(False) m = metadata.merge(self.metadata, self.pdfqueue) exporter.export(self.pdfqueue, to_export, file_out, m) def choose_export_selection_pdf_name(self, _action, _target, _unknown): self.choose_export_pdf_name(True) def on_action_add_doc_activate(self, _action, _param, _unknown): """Import doc""" chooser = Gtk.FileChooserDialog(title=_('Import...'), parent=self.window, action=Gtk.FileChooserAction.OPEN, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT)) chooser.set_current_folder(self.import_directory) chooser.set_select_multiple(True) # TODO: Factorize, file filters are the same in choose_export_pdf_name filter_all = Gtk.FileFilter() filter_all.set_name(_('All files')) filter_all.add_pattern('*') chooser.add_filter(filter_all) filter_pdf = Gtk.FileFilter() filter_pdf.set_name(_('PDF files')) filter_pdf.add_pattern('*.pdf') filter_pdf.add_mime_type('application/pdf') chooser.add_filter(filter_pdf) chooser.set_filter(filter_pdf) response = chooser.run() if response == Gtk.ResponseType.ACCEPT: adder = PageAdder(self) for filename in chooser.get_filenames(): try: adder.addpages(filename) except Exception as e: traceback.print_exc() chooser.destroy() self.error_message_dialog(e) return adder.commit() chooser.destroy() def clear_selected(self, _action, _parameter, _unknown): """Removes the selected elements in the IconView""" self.undomanager.commit("Delete") model = self.iconview.get_model() selection = self.iconview.get_selected_items() selection.sort(reverse=True) self.set_unsaved(True) for path in selection: model.remove(model.get_iter(path)) path = selection[-1] self.iconview.select_path(path) if not self.iconview.path_is_selected(path): if len(model) > 0: # select the last row row = model[-1] path = row.path self.iconview.select_path(path) self.iconview.grab_focus() @staticmethod def iv_drag_begin(iconview, context): """Sets custom icon on drag begin for multiple items selected""" if len(iconview.get_selected_items()) > 1: iconview.stop_emission('drag_begin') Gtk.drag_set_icon_name(context, "gtk-dnd-multiple", 0, 0) def iv_dnd_get_data(self, iconview, _context, selection_data, _target_id, _etime): """Handles requests for data by drag and drop in iconview""" model = iconview.get_model() selection = self.iconview.get_selected_items() selection.sort(key=lambda x: x.get_indices()[0]) data = [] for path in selection: target = str(selection_data.get_target()) if target == 'MODEL_ROW_INTERN': data.append(str(path[0])) elif target == 'MODEL_ROW_EXTERN': it = model.get_iter(path) nfile, npage, angle = model.get(it, 2, 3, 6) crop = model.get(it, 7, 8, 9, 10) pdfdoc = self.pdfqueue[nfile - 1] data.append('\n'.join([pdfdoc.filename, str(npage), str(angle)] + [str(side) for side in crop])) if data: data = '\n;\n'.join(data) selection_data.set(selection_data.get_target(), 8, data.encode()) def iv_dnd_received_data(self, iconview, context, x, y, selection_data, _target_id, etime): """Handles received data by drag and drop in iconview""" model = iconview.get_model() data = selection_data.get_data() if data: data = data.decode().split('\n;\n') item = iconview.get_dest_item_at_pos(x, y) if item: path, position = item ref_to = Gtk.TreeRowReference.new(model, path) else: ref_to = None position = Gtk.IconViewDropPosition.DROP_RIGHT if len(model) > 0: # find the iterator of the last row row = model[-1] ref_to = Gtk.TreeRowReference.new(model, row.path) if ref_to: before = (position == Gtk.IconViewDropPosition.DROP_LEFT or position == Gtk.IconViewDropPosition.DROP_ABOVE) target = selection_data.get_target().name() if target == 'MODEL_ROW_INTERN': move = context.get_actions() & Gdk.DragAction.MOVE self.undomanager.commit("Move" if move else "Copy") self.set_unsaved(True) data.sort(key=int, reverse=not before) ref_from_list = [Gtk.TreeRowReference.new(model, Gtk.TreePath(p)) for p in data] iter_to = self.model.get_iter(ref_to.get_path()) for ref_from in ref_from_list: row = model[model.get_iter(ref_from.get_path())] if before: model.insert_before(iter_to, row[:]) else: model.insert_after(iter_to, row[:]) if move: for ref_from in ref_from_list: model.remove(model.get_iter(ref_from.get_path())) elif target == 'MODEL_ROW_EXTERN': pageadder = PageAdder(self) pageadder.move(ref_to, before) if not before: data.reverse() while data: tmp = data.pop(0).split('\n') filename = tmp[0] npage, angle = [int(k) for k in tmp[1:3]] crop = [float(side) for side in tmp[3:7]] pageadder.addpages(filename, npage, angle, crop) if pageadder.commit() and context.get_actions() & Gdk.DragAction.MOVE: context.finish(True, True, etime) def iv_dnd_data_delete(self, _widget, _context): """Delete pages from a pdfarranger instance after they have been moved to another instance.""" selection = self.iconview.get_selected_items() if len(selection) == 0: # On Windows this method is triggered even for drag & drop within the same # pdfarranger instance return self.undomanager.commit("Move") self.set_unsaved(True) model = self.iconview.get_model() ref_del_list = [Gtk.TreeRowReference.new(model, path) for path in selection] for ref_del in ref_del_list: path = ref_del.get_path() model.remove(model.get_iter(path)) def iv_dnd_motion(self, _iconview, _context, _x, y, _etime): """Handles the drag-motion signal in order to auto-scroll the view""" autoscroll_area = 40 sw_vadj = self.sw.get_vadjustment() sw_height = self.sw.get_allocation().height if y - sw_vadj.get_value() < autoscroll_area: if not self.iv_auto_scroll_timer: self.iv_auto_scroll_direction = Gtk.DirectionType.UP self.iv_auto_scroll_timer = GObject.timeout_add(150, self.iv_auto_scroll) elif y - sw_vadj.get_value() > sw_height - autoscroll_area: if not self.iv_auto_scroll_timer: self.iv_auto_scroll_direction = Gtk.DirectionType.DOWN self.iv_auto_scroll_timer = GObject.timeout_add(150, self.iv_auto_scroll) elif self.iv_auto_scroll_timer: GObject.source_remove(self.iv_auto_scroll_timer) self.iv_auto_scroll_timer = None def iv_dnd_leave_end(self, _widget, _context, _ignored=None): """Ends the auto-scroll during DND""" if self.iv_auto_scroll_timer: GObject.source_remove(self.iv_auto_scroll_timer) self.iv_auto_scroll_timer = None def iv_auto_scroll(self): """Timeout routine for auto-scroll""" sw_vadj = self.sw.get_vadjustment() sw_vpos = sw_vadj.get_value() if self.iv_auto_scroll_direction == Gtk.DirectionType.UP: sw_vpos -= sw_vadj.get_step_increment() sw_vadj.set_value(max(sw_vpos, sw_vadj.get_lower())) elif self.iv_auto_scroll_direction == Gtk.DirectionType.DOWN: sw_vpos += sw_vadj.get_step_increment() sw_vadj.set_value(min(sw_vpos, sw_vadj.get_upper() - sw_vadj.get_page_size())) return True # call me again def iv_motion(self, iconview, event): """Manages mouse movement on the iconview to detect drag and drop events""" if self.pressed_button: if iconview.drag_check_threshold(self.pressed_button.x, self.pressed_button.y, event.x, event.y): iconview.drag_begin_with_coordinates(Gtk.TargetList.new(self.TARGETS_IV), Gdk.DragAction.COPY | Gdk.DragAction.MOVE, self.pressed_button.button, event, -1, -1) self.pressed_button = None def iv_button_release_event(self, iconview, event): """Manages mouse releases on the iconview""" if self.pressed_button: # Button was pressed and released on a previously selected item # without causing a drag and drop: Deselect everything except # the clicked item. iconview.unselect_all() path = iconview.get_path_at_pos(event.x, event.y) iconview.select_path(path) iconview.set_cursor(path, None, False) # for consistent shift+click selection self.pressed_button = None def iv_button_press_event(self, iconview, event): """Manages mouse clicks on the iconview""" x = int(event.x) y = int(event.y) click_path = iconview.get_path_at_pos(x, y) # On shift-click, select (or, with the Control key, toggle) items # from the item after the cursor up to the shift-clicked item, # inclusive, where 'after' means towards the shift-clicked item. # # IconView's built-in multiple-selection mode performs rubber-band # (rectangular) selection, which is not what we want. We override # it by handling the shift-click here. if event.button == 1 and event.state & Gdk.ModifierType.SHIFT_MASK: cursor_path = iconview.get_cursor()[1] click_path = iconview.get_path_at_pos(x, y) if cursor_path and click_path: i_cursor = cursor_path[0] i_click = click_path[0] step = 1 if i_cursor <= i_click else -1 for i in range(i_cursor + step, i_click + step, step): path = Gtk.TreePath.new_from_indices([i]) if (event.state & Gdk.ModifierType.CONTROL_MASK and iconview.path_is_selected(path)): iconview.unselect_path(path) else: iconview.select_path(path) return 1 # Do not deselect when clicking an already selected item for drag and drop if event.button == 1: selection = iconview.get_selected_items() if click_path and click_path in selection: self.pressed_button = event return 1 # prevent propagation i.e. (de-)selection # Display right click menu if event.button == 3: selection = iconview.get_selected_items() if click_path: if click_path not in selection: iconview.unselect_all() iconview.select_path(click_path) iconview.grab_focus() self.popup.popup(None, None, None, None, event.button, event.time) return 1 def iv_selection_changed_event(self, _user_data=None): selection = self.iconview.get_selected_items() ne = len(selection) > 0 for a, e in [("reverse-order", self.reverse_order_available(selection)), ("delete", ne), ("duplicate", ne), ("crop", ne), ("rotate", ne), ("export-selection", ne), ("split", ne)]: self.window.lookup_action(a).set_enabled(e) def sw_dnd_received_data(self, _scrolledwindow, _context, _x, _y, selection_data, target_id, _etime): """Handles received data by drag and drop in scrolledwindow""" if target_id == self.TEXT_URI_LIST: pageadder = PageAdder(self) for uri in selection_data.get_uris(): filename = get_file_path_from_dnd_dropped_uri(uri) pageadder.addpages(filename) pageadder.commit() def sw_button_press_event(self, _scrolledwindow, event): """Unselects all items in iconview on mouse click in scrolledwindow""" # TODO most likely unreachable code if event.button == 1: self.iconview.unselect_all() def sw_scroll_event(self, _scrolledwindow, event): """Manages mouse scroll events in scrolledwindow""" if event.get_state() & Gdk.ModifierType.CONTROL_MASK: zoom_delta = 0 if event.direction == Gdk.ScrollDirection.SMOOTH: dy = event.get_scroll_deltas()[2] if dy > 0: zoom_delta = -1 elif dy < 0: zoom_delta = 1 elif event.direction == Gdk.ScrollDirection.UP: zoom_delta = 1 elif event.direction == Gdk.ScrollDirection.DOWN: zoom_delta = -1 if zoom_delta != 0: self.zoom_set(self.zoom_level + zoom_delta) return 1 def zoom_set(self, level): """Sets the zoom level""" self.zoom_level = max(min(level, 40), -10) self.zoom_scale = 0.2 * (1.1 ** self.zoom_level) for row in self.model: row[4] = self.zoom_scale if len(self.model) > 0: GObject.idle_add(self.render) def zoom_change(self, _action, step, _unknown): """ Action handle for zoom change """ self.zoom_set(self.zoom_level + step.get_int32()) def rotate_page_action(self, _action, angle, _unknown): """Rotates the selected page in the IconView""" self.undomanager.commit("Rotate") angle = angle.get_int32() selection = self.iconview.get_selected_items() if self.rotate_page(selection, angle): self.set_unsaved(True) def rotate_page(self, selection, angle): rotate_times = int(round(((-angle) % 360) / 90) % 4) model = self.iconview.get_model() for path in selection: treeiter = model.get_iter(path) perm = [0, 2, 1, 3] for __ in range(rotate_times): perm.append(perm.pop(0)) perm.insert(1, perm.pop(2)) crop = [model.get_value(treeiter, 7 + perm[side]) for side in range(4)] for side in range(4): model.set_value(treeiter, 7 + side, crop[side]) new_angle = model.get_value(treeiter, 6) + int(angle) new_angle = new_angle % 360 model.set_value(treeiter, 6, new_angle) self.update_geometry(treeiter) return rotate_times != 0 and len(selection) > 0 def split_pages(self, _action, _parameter, _unknown): """ Split selected pages """ model = self.iconview.get_model() selection = self.iconview.get_selected_items() self.set_unsaved(True) self.undomanager.commit("Split") # selection is a list of 1-tuples, not in order selection = self.iconview.get_selected_items() selection.sort(key=lambda x: x.get_indices()[0]) ref_list = [Gtk.TreeRowReference.new(model, path) for path in selection] for ref in ref_list: iterator = model.get_iter(ref.get_path()) newit = model.insert_after(iterator, model[iterator][:]) left = model.get_value(iterator, 7) right = model.get_value(iterator, 8) newcrop = (1 + left - right) / 2 model.set_value(newit, 7, newcrop) model.set_value(iterator, 8, 1 - newcrop) def edit_metadata(self, _action, _parameter, _unknown): if metadata.edit(self.metadata, self.pdfqueue, self.window): self.set_unsaved(True) def crop_page_dialog(self, _action, _parameter, _unknown): """Opens a dialog box to define margins for page cropping""" sides = ('L', 'R', 'T', 'B') side_names = {'L': _('Left'), 'R': _('Right'), 'T': _('Top'), 'B': _('Bottom')} opposite_sides = {'L': 'R', 'R': 'L', 'T': 'B', 'B': 'T'} def set_crop_value(spinbutton, side): opp_side = opposite_sides[side] adjustment = spin_list[sides.index(opp_side)].get_adjustment() adjustment.set_upper(99.0 - spinbutton.get_value()) model = self.iconview.get_model() selection = self.iconview.get_selected_items() crop = [0., 0., 0., 0.] if selection: path = selection[0] pos = model.get_iter(path) crop = [model.get_value(pos, 7 + side) for side in range(4)] dialog = Gtk.Dialog(title=(_('Crop Selected Pages')), parent=self.window, flags=Gtk.DialogFlags.MODAL, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OK, Gtk.ResponseType.OK)) dialog.set_default_response(Gtk.ResponseType.OK) dialog.set_resizable(False) margin = 12 label = Gtk.Label(label=_('Cropping does not remove any content\n' 'from the PDF file, it only hides it.')) dialog.vbox.pack_start(label, False, False, 0) frame = Gtk.Frame(label=_('Crop Margins')) frame.props.margin = margin dialog.vbox.pack_start(frame, True, True, 0) grid = Gtk.Grid() grid.set_column_spacing(margin) grid.set_row_spacing(margin) grid.props.margin = margin frame.add(grid) spin_list = [] units = 2 * [_('% of width')] + 2 * [_('% of height')] for row, side in enumerate(sides): label = Gtk.Label(label=side_names[side]) label.set_alignment(0, 0) grid.attach(label, 0, row, 1, 1) adj = Gtk.Adjustment(value=100. * crop.pop(0), lower=0.0, upper=99.0, step_increment=1.0, page_increment=5.0, page_size=0.0) spin = Gtk.SpinButton(adjustment=adj, climb_rate=0, digits=1) spin.set_activates_default(True) spin.connect('value-changed', set_crop_value, side) spin_list.append(spin) grid.attach(spin, 1, row, 1, 1) label = Gtk.Label(label=units.pop(0)) label.set_alignment(0, 0) grid.attach(label, 2, row, 1, 1) dialog.show_all() result = dialog.run() if result == Gtk.ResponseType.OK: crop = [spin.get_value() / 100. for spin in spin_list] crop = [crop] * len(selection) self.undomanager.commit("Crop") oldcrop = self.crop(selection, crop) if oldcrop != crop: self.set_unsaved(True) dialog.destroy() def crop(self, selection, newcrop): oldcrop = [[0] * 4 for __ in range(len(selection))] model = self.iconview.get_model() for id_sel, path in enumerate(selection): pos = model.get_iter(path) for it in range(4): oldcrop[id_sel][it] = model.get_value(pos, 7 + it) model.set_value(pos, 7 + it, newcrop[id_sel][it]) self.update_geometry(pos) return oldcrop def duplicate(self, _action, _parameter, _unknown): """Duplicates the selected elements""" self.set_unsaved(True) self.undomanager.commit("Duplicate") model = self.iconview.get_model() # selection is a list of 1-tuples, not in order selection = self.iconview.get_selected_items() selection.sort(key=lambda x: x.get_indices()[0]) ref_list = [Gtk.TreeRowReference.new(model, path) for path in selection] for ref in ref_list: iterator = model.get_iter(ref.get_path()) model.insert_after(iterator, model[iterator][:]) @staticmethod def reverse_order_available(selection): """Determine whether the selection is suitable for the reverse-order command: the selection must be a multiple and contiguous range of pages. """ if len(selection) < 2: return False # selection is a list of 1-tuples, not in order indices = sorted([i[0] for i in selection]) first = indices[0] last = indices[-1] contiguous = (len(indices) == last - first + 1) if not contiguous: return False return True def reverse_order(self, _action, _parameter, _unknown): """Reverses the selected elements in the IconView""" model = self.iconview.get_model() selection = self.iconview.get_selected_items() if not self.reverse_order_available(selection): return # selection is a list of 1-tuples, not in order indices = sorted([i[0] for i in selection]) first = indices[0] last = indices[-1] self.set_unsaved(True) indices.reverse() new_order = list(range(first)) + indices + list(range(last + 1, len(model))) self.undomanager.commit("Reorder") model.reorder(new_order) def about_dialog(self, _widget, _data=None): about_dialog = Gtk.AboutDialog() about_dialog.set_transient_for(self.window) about_dialog.set_modal(True) about_dialog.set_name(APPNAME) about_dialog.set_program_name(APPNAME) about_dialog.set_version(VERSION) about_dialog.set_comments(_( '%s is a tool for rearranging and modifying PDF files. ' 'Developed using GTK+ and Python') % APPNAME) about_dialog.set_authors(['Konstantinos Poulios']) about_dialog.add_credit_section('Maintainers and contributors', [ 'https://github.com/jeromerobert/pdfarranger/graphs/contributors']) about_dialog.set_website_label(WEBSITE) about_dialog.set_logo_icon_name(DOMAIN) about_dialog.set_license(LICENSE) about_dialog.connect('response', lambda w, *args: w.destroy()) about_dialog.connect('delete_event', lambda w, *args: w.destroy()) about_dialog.show_all() def error_message_dialog(self, msg, msg_type=Gtk.MessageType.ERROR): error_msg_dlg = Gtk.MessageDialog(flags=Gtk.DialogFlags.MODAL, type=msg_type, parent=self.window, message_format=str(msg), buttons=Gtk.ButtonsType.OK) response = error_msg_dlg.run() if response == Gtk.ResponseType.OK: error_msg_dlg.destroy() class PDFDoc: """Class handling PDF documents""" def __init__(self, filename, tmp_dir): self.filename = os.path.abspath(filename) self.shortname = os.path.splitext(os.path.split(self.filename)[1])[0] self.mtime = os.path.getmtime(filename) fd, self.copyname = tempfile.mkstemp(dir=tmp_dir) os.close(fd) shutil.copy(self.filename, self.copyname) uri = pathlib.Path(self.copyname).as_uri() self.document = Poppler.Document.new_from_file(uri, None) class PageAdder(object): """ Helper class to add pages to the current model """ def __init__(self, app): #: A PdfArranger instance self.app = app #: The pages which will be added by the commit method self.pages = [] #: Where to insert pages relatively to treerowref self.before = False #: Where to insert pages. If None pages are inserted at the end self.treerowref = None def move(self, treerowref, before): """ Insert pages at the given location """ self.before = before self.treerowref = treerowref def addpages(self, filename, page=-1, angle=0, crop=None): crop = [0] * 4 if crop is None else crop pdfdoc = None nfile = None for i, it_pdfdoc in enumerate(self.app.pdfqueue): if os.path.isfile(it_pdfdoc.filename) and \ os.path.samefile(filename, it_pdfdoc.filename) and \ os.path.getmtime(filename) is it_pdfdoc.mtime: pdfdoc = it_pdfdoc nfile = i + 1 break if not pdfdoc: pdfdoc = PDFDoc(filename, self.app.tmp_dir) self.app.import_directory = os.path.split(filename)[0] self.app.export_directory = self.app.import_directory self.app.pdfqueue.append(pdfdoc) nfile = len(self.app.pdfqueue) n_end = pdfdoc.document.get_n_pages() n_start = min(n_end, max(1, page)) if page != -1: n_end = max(n_start, min(n_end, page)) for npage in range(n_start, n_end + 1): descriptor = ''.join([pdfdoc.shortname, '\n', _('page'), ' ', str(npage)]) page = pdfdoc.document.get_page(npage - 1) w, h = page.get_size() self.pages.append((descriptor, # 0 None, # 1 nfile, # 2 npage, # 3 self.app.zoom_scale, # 4 pdfdoc.filename, # 5 angle, # 6 crop[0], crop[1], # 7-8 crop[2], crop[3], # 9-10 w, h, # 11-12 2.)) # 13 FIXME def commit(self): if len(self.pages) == 0: return False self.app.undomanager.commit("Add") self.app.set_unsaved(True) for p in self.pages: it = self.app.model.append(p) if self.treerowref: iter_to = self.app.model.get_iter(self.treerowref.get_path()) if self.before: self.app.model.move_before(it, iter_to) else: self.app.model.move_after(it, iter_to) self.app.update_geometry(it) GObject.idle_add(self.app.retitle) GObject.idle_add(self.app.render) return True class PDFRenderer(threading.Thread, GObject.GObject): def __init__(self, model, pdfqueue, resample): threading.Thread.__init__(self) GObject.GObject.__init__(self) self.model = model self.pdfqueue = pdfqueue self.resample = resample self.quit = False def run(self): for idx, row in enumerate(self.model): if self.quit: return nfile = row[2] npage = row[3] pdfdoc = self.pdfqueue[nfile - 1] page = pdfdoc.document.get_page(npage - 1) w, h = page.get_size() thumbnail = cairo.ImageSurface(cairo.FORMAT_ARGB32, int(w / self.resample), int(h / self.resample)) cr = cairo.Context(thumbnail) if self.resample != 1.: cr.scale(1. / self.resample, 1. / self.resample) page.render(cr) GObject.idle_add(self.emit, 'update_thumbnail', idx, thumbnail, self.resample, priority=GObject.PRIORITY_LOW) def main(): PdfArranger().run(sys.argv) pdfarranger-1.4.2/pdfarranger/undo.py000066400000000000000000000057541363324226000176370ustar00rootroot00000000000000# Copyright (C) 2018-2019 Jerome Robert # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """ undo/redo implemented with the memento design pattern. The memento pattern is simpler than the command pattern. Here the memory cost of memento is affordable because we only store snapshots of the GtkListStore object, not of the whole PDF files. """ class Manager(object): """ Stack of GtkListStore models (Memento design pattern) """ def __init__(self, app): self.app = app self.model = app.model self.states = [] #: label of the previous undoable action self.label = None #: id of the current state self.current = 0 self.undoaction = None self.redoaction = None def commit(self, label): """ Must be called *BEFORE* each undoable actions :param label: label of the action """ self.states = self.states[:self.current] self.states.append(([list(row) for row in self.model], self.label,)) self.current += 1 self.label = label self.__refresh() def undo(self, _action, _param, _unused): if self.current == len(self.states): self.states.append(([list(row) for row in self.model], self.label,)) state, self.label = self.states[self.current - 1] self.__set_state(state) self.current -= 1 self.__refresh() def redo(self, _action, _param, _unused): state, self.label = self.states[self.current + 1] self.__set_state(state) self.current += 1 self.__refresh() def set_actions(self, undo, redo): self.undoaction = undo self.redoaction = redo self.__refresh() def __set_state(self, state): self.model.clear() for row in state: # Do not reset the zoom level row[4] = self.app.zoom_scale self.model.append(row) def __refresh(self): if self.undoaction: self.undoaction.set_enabled(self.current >= 1) if self.redoaction: self.redoaction.set_enabled(self.current + 1 < len(self.states)) # TODO: This is where to update the undo/redo menu items label to # show which action is going to be undone/redone. Because GtkImageMenuItem # will leads to many changes in translations this is currently postponed. pdfarranger-1.4.2/po/000077500000000000000000000000001363324226000144305ustar00rootroot00000000000000pdfarranger-1.4.2/po/POTFILES.in000066400000000000000000000001071363324226000162030ustar00rootroot00000000000000pdfarranger/pdfarranger.py pdfarranger/metadata.py data/pdfarranger.ui pdfarranger-1.4.2/po/ca@valencia.po000066400000000000000000000110511363324226000171540ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Pilar Embid Giner , 2014. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2018-10-10 09:09+0200\n" "Last-Translator: Pilar Embid Giner \n" "Language-Team: LliureX\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.0.6\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Cap document" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Diversos documents" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "S'estan renderitzant les miniatures... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exporta..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Fitxers PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Tots els fitxers" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importa..." # Netscape_4.7->Dialog Box Control:EDITOR32.DLL #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Esquerra" # Netscape_4.7->Dialog Box Control:EDITOR32.DLL #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Dreta" # Netscape_4.7->String:RESDLL.DLL #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Dalt" # Netscape_4.7->Dialog Box Control:EDITOR32.DLL #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Baix" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Retalla les pàgines seleccionades" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Retalla els marges" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% d'amplària" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% d'alçària" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "El %s és una ferramenta per a organitzar i modificar fitxers PDF. S'ha " "realitzat utilitzant GTK+ i Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "pàgina" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Fitxer" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Exporta la selecció..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Edita" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Gira cap a l'esquerra" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Gira cap a la dreta" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Retalla" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Visualitza" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Amplia" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Redueïx" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "A_juda" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Obri un fitxer i afig-lo al document actual" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importa" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Guarda" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Guarda com" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Esborra" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Gira a _l'esquerra" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Gi_ra a la dreta" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "_Retalla..." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "_Esborra" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/cleanuppo.sh000077500000000000000000000017261363324226000167630ustar00rootroot00000000000000#!/bin/sh # # pdfarranger - GTK+ based utility for splitting, rearrangement and # modification of PDF documents. # Copyright (C) 2008-2017 Konstantinos Poulios # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Update translation files find ./po -type f -iname "*.po" -exec msgattrib --output-file={} --no-obsolete {} \; pdfarranger-1.4.2/po/cs.po000066400000000000000000000110331363324226000153730ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # fri, 2015 # Miro Hrončok, 2014 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2017-02-26 16:16+0000\n" "Last-Translator: fri\n" "Language-Team: Czech (http://www.transifex.com/logari81/pdfshuffler/language/" "cs/)\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Žádný dokument" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Několik dokumentů" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Vykreslují se náhledy... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Vyvést..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Soubory PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Všechny soubory" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Zavést..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Levý" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Pravý" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Horní" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Dolní" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Oříznout vybrané stránky" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Oříznout okraje" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% šířky" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% výšky" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s je nástroj na přeuspořádání a měnění souborů PDF. Vyvíjeno za použití GTK" "+ a Pythonu" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "stránka" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "So_ubor" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Vyvést výběr..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "Ú_pravy" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Otočit vlevo" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Otočit vpravo" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Ořezat" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "Po_hled" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Přiblížit" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Oddálit" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Nápověda" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Otevřít soubor a připojit jej k nynějšímu dokumentu" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Zavést" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Uložit" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Uložit jako" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Smazat" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Otočit _vlevo" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "_Otočit vpravo" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "Oř_ezat..." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "_Smazat" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/de.po000066400000000000000000000115321363324226000153620ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Konstantinos Poulios, 2008-2017 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2019-07-18 20:51+0200\n" "Last-Translator: O. Giesmann \n" "Language-Team: German (http://www.transifex.com/logari81/pdfshuffler/" "language/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.2.3\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "Titel" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "Ersteller" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "Hersteller" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "Erstellungswerkzeug" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "Eigenschaften ändern" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "Eigenschaft" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "Wert" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Keine Datei" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Mehrere Dateien" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Vorschauen werden erstellt... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exportieren ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF-Dateien" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Alle Dateien" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importieren..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Links" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Rechts" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Oben" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Unten" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Markierte Seiten zuschneiden" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" "Das Zuschneiden entfernt keinen Inhalt\n" "aus der PDF-Datei, es blendet ihn nur aus." #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Seitenränder zuschneiden" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% der Breite" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% der Höhe" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s ist ein Programm zum Umsortieren und Modifizieren von PDF-Dokumenten. " "Geschrieben in GTK+ und Python." #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "Seite" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Datei" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "Markierte Seiten _exportieren ..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "Bearbeiten" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Nach links drehen" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Nach rechts drehen" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Zuschneiden" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "Duplizieren" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "Reihenfolge umkehren" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "Seiten teilen" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "Ansicht" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Vergrössern" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Verkleinern" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Hilfe" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Eine Datei öffnen und zum bereits geöffneten Dokument hinzufügen" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importieren" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Speichern" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Speichern als" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Löschen" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Nach _links drehen" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Nach _rechts drehen" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "_Zuschneiden..." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "Entfernen" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "Reihenfolge _umkehren" pdfarranger-1.4.2/po/el.po000066400000000000000000000120361363324226000153720ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Konstantinos Poulios, 2008-2017 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2017-02-26 16:16+0000\n" "Last-Translator: Konstantinos Poulios \n" "Language-Team: Greek (http://www.transifex.com/logari81/pdfshuffler/language/" "el/)\n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Κανένα έγγραφο" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Διάφορα έγγραφα" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Απεικόνιση μικρογραφιών... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Εξαγωγή ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Αρχεία PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Όλα τα αρχεία" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Εισαγωγή ..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Αριστερά" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Δεξιά" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Πάνω" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Κάτω" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Περικοπή επιλεγμένων σελίδων" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Αποκοπή περιθωρίων" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% του πλάτους" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% του ύψους" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "Το %s είναι ένα εργαλείο για αναδιάταξη και τροποποίηση αρχείων PDF. Είναι " "γραμμένο σε GTK+ και Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "σελίδα" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Αρχείο" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "Εξαγωγή επιλεγμένων..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Επεξεργασία" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Περιστροφή αριστερά" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Περιστροφή δεξιά" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Περικοπή" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Προβολή" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Μεγέθυνση" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Σμίκρυνση" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Βοήθεια" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Άνοιγμα ενός αρχείου και προσάρτηση στο τρέχον έγγραφο" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Εισαγωγή" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Αποθήκευση" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Αποθήκευση ως" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Διαγραφή" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Περιστροφή _Αριστερά" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Περιστροφή _Δεξιά" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "_Περικοπή" #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "Διαγραφή" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/es.po000066400000000000000000000112101363324226000153720ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Konstantinos Poulios, 2008-2017 # Rafael Jesús García Perdigón, 2012 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2017-02-26 16:16+0000\n" "Last-Translator: Konstantinos Poulios \n" "Language-Team: Spanish (http://www.transifex.com/logari81/pdfshuffler/" "language/es/)\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "No hay documento seleccionado" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Varios documentos" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Renderizando las miniaturas... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exportar ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Archivos PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Todos los archivos" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importar..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Izquierdo" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Derecho" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Superior" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Inferior" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Recortar las páginas seleccionadas" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Recortar los márgenes" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% de la anchura" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% de la altura" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s es una herramienta para reordenar y modificar ficheros PDF. Desarrollado " "usando GTK+ y Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "página" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Fichero" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "E_xportar las páginas seleccionadas..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Editar" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Rotar a la izquierda" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Rotar a la derecha" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Recortar" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Acercar" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Alejar" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Ayuda" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Abrir un fichero y añadirlo al documento actual" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importar" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Guardar" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Guardar como" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Borrar" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Rotar a la _izquierda" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "_Rotar a la derecha" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "R_ecortar.." #: data/pdfarranger.ui.h:23 #, fuzzy msgid "_Delete" msgstr "Borrar" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/fr.po000066400000000000000000000116501363324226000154020ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # David VANTYGHEM , 2014. # Jérôme Robert , 2019. # Charles Monzat , 2019. # msgid "" msgstr "" "Project-Id-Version: unnamed project\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2020-01-12 10:30+0100\n" "Last-Translator: Charles Monzat \n" "Language-Team: French - France <>\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-SourceCharset: utf-8\n" "X-Generator: Poedit 2.2.4\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "Titre" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "Auteur" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "Producteur" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "Outil" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "Éditer les propriétés" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "Propriété" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "Valeur" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Aucun document" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Plusieurs documents" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Création des miniatures… [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exporter…" #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Fichiers PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Tous les fichiers" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importer…" #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "À gauche" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "À droite" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "En haut" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "En bas" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Rogner les pages sélectionnées" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" "Le contenu rogné reste présent dans le\n" "fichier PDF. Il est simplement caché." #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Rogner les marges" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% de la largeur" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% de la hauteur" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s est un outil pour réorganiser et modifier les fichiers PDF. Développé " "avec GTK+ et Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "page" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Fichier" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Exporter la sélection…" #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "É_dition" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Rotation vers la gauche" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Rotation vers la droite" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Rogner" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "Dupliquer" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "Inverser l’ordre" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "Séparer les pages" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Affichage" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Zoom avant" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Zoom arrière" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "Aid_e" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Ouvrir un fichier et l’ajouter au document actuel" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importer" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Enregistrer" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Enregistrer sous" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Supprimer" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Rotation vers la _gauche" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Rotation vers la _droite" #: data/pdfarranger.ui.h:22 msgid "C_rop" msgstr "_Rogner" #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "_Supprimer" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "In_verser l’ordre" pdfarranger-1.4.2/po/genpot.sh000077500000000000000000000020571363324226000162670ustar00rootroot00000000000000#!/bin/sh # # pdfarranger - GTK+ based utility for splitting, rearrangement and # modification of PDF documents. # Copyright (C) 2008-2017 Konstantinos Poulios # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Make translation files intltool-extract --type=gettext/glade data/pdfarranger.ui xgettext --language=Python --keyword=_ --keyword=N_ --output=po/pdfarranger.pot pdfarranger/*.py data/pdfarranger.ui.h pdfarranger-1.4.2/po/hu.po000066400000000000000000000111341363324226000154040ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Peter Bojtos , 2011 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.6.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2011-11-25 18:26+0100\n" "Last-Translator: Peter Bojtos \n" "Language-Team: SuliX Support Team \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Hungarian\n" "X-Poedit-Country: HUNGARY\n" "X-Poedit-SourceCharset: utf-8\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Nincs dokumentum" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Néhány dokumentum" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Bélyegképek előállítása... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exportálás..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF fájlok" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Minden fájl" #: pdfarranger/pdfarranger.py:693 #, fuzzy msgid "Import..." msgstr "_Importálás..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Balra" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Jobbra" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Fent" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Lent" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "A kiválasztott oldalak levágása" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Margók levágása" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% szélesség" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% magasság" #: pdfarranger/pdfarranger.py:1218 #, fuzzy, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "A %s egy olyan eszköz, mellyel átrendezhetők és módosíthatóak a PDF fájlok. " "GTK+ és Python segítségével írták" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "oldal" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Fájl" #: data/pdfarranger.ui.h:2 #, fuzzy msgid "_Export selection..." msgstr "Exportálás..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Szerkesztés" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Forgatás balra" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Forgatás jobbra" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Levágás" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Nézet" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Nagyítás" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Kicsinyítés" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Súgó" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "" #: data/pdfarranger.ui.h:16 #, fuzzy msgid "Import" msgstr "_Importálás..." #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Mentés" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Mentés másként" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Törlés" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Forgatás _Balra" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Forgatás _Jobbra" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "_Vágás..." #: data/pdfarranger.ui.h:23 #, fuzzy msgid "_Delete" msgstr "Törlés" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/id.po000066400000000000000000000106521363324226000153700ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2019-09-06 14:54+0700\n" "Last-Translator: Abdul Munif Hanafi \n" "Language-Team: \n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.2.1\n" "Plural-Forms: nplurals=1; plural=0;\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Tidak ada dokumen" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Beberapa dokumen" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Merender thumbnail... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Ekspor ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Berkas PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Semua berkas" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Impor..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Kiri" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Kanan" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Atas" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Bawah" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Pangkas Halaman Terpilih" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" "Pemangkasan tidak menghapus konten apa pun\n" "dari berkas PDF, melainkan hanya menyembunyikannya." #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Pangkas Margin" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% dari lebar" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% dari tinggi" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s adalah alat untuk menata ulang dan memodifikasi berkas PDF. Dikembangkan " "menggunakan GTK+ dan Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "halaman" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Berkas" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Ekspor terpilih..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Sunting" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Putar ke kiri" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Putar ke kanan" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Pangkas" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "Balikkan Urutan" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Tampilan" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Zoom masuk" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Zoom keluar" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "Ba_ntuan" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Buka berkas dan tambahkan ke dokumen saat ini" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Impor" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Simpan" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Simpan sebagai" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Hapus" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Putar ke K_iri" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Putar ke K_anan" #: data/pdfarranger.ui.h:22 msgid "C_rop" msgstr "Pang_kas" #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "_Hapus" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "_Balikkan Urutan" pdfarranger-1.4.2/po/it.po000066400000000000000000000102011363324226000153760ustar00rootroot00000000000000msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.4\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2015-12-04 12:00+0100\n" "Last-Translator: Marco Ciampa\n" "Language-Team: Italian\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Italian\n" "X-Poedit-Country: ITALY\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Nessun documento" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Diversi documenti" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Disegno miniature... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Esporta ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "File PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Tutti i file" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importa..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Sinistra" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Destra" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Alto" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Basso" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Taglia pagine selezionate" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Taglia margini" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% in larghezza" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% in altezza" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s è uno strumento per riordinare e modificare file PDF. Sviluppato usando " "GTK+ e Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "pagina" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_File" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Esporta selezione..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Modifica" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Routa a sinistra" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Ruota a destra" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Ritaglia" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Visualizza" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Ingrandisci" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Rimpicciolisci" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Aiuto" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Apri un file e accodalo al documento corrente" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importa" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Salva" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Salva con nome" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Cancella" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Ruota a _sinistra" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "_Ruota a destra" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "_Ritaglia..." #: data/pdfarranger.ui.h:23 #, fuzzy msgid "_Delete" msgstr "Cancella" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/ja.po000077500000000000000000000116141363324226000153700ustar00rootroot00000000000000# Japanese translation for pdfarranger. # Copyright (C) 2008-2017 Konstantinos Poulios # Copyright (C) 2018-2020 pdfarranger's COPYRIGHT HOLDER # This file is distributed under the same license as the pdfarranger package. # Toshiharu Kudoh , 2010. # sicklylife , 2019-2020. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2020-01-13 18:00+0900\n" "Last-Translator: sicklylife \n" "Language-Team: Japanese\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "タイトル" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "作成" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "変換" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "作成ツール" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "プロパティを編集" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "プロパティ" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "値" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "ドキュメントなし" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "複数のドキュメント" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "サムネイルを描画中... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "エクスポート ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF ファイル" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "すべてのファイル" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "インポート..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "左" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "右" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "上" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "下" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "選択したページのトリミング" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" "トリミングは PDF ファイルから内容自体は\n" "削除せずに、指定部分を見えなくします。" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "余白のトリミング" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% (幅)" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% (高さ)" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s は PDF ファイルの内容の追加や削除、順序の入れ替えやその他のちょっとした変" "更を行うための、GTK+ と Python で作成されたツールです" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "ページ" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "ファイル(_F)" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "選択したものをエクスポート(_E)..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "編集(_E)" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "左に回転" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "右に回転" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "トリミング" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "複製(_P)" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "逆順" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "ページを分割" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "表示(_V)" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "拡大" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "縮小" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "ヘルプ(_H)" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "ファイルを開いて現在のドキュメントに追加します" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "インポート" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "保存" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "名前を付けて保存" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "削除" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "左に回転(_L)" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "右に回転(_R)" #: data/pdfarranger.ui.h:22 msgid "C_rop" msgstr "トリミング(_R)" #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "削除(_D)" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "逆順(_V)" pdfarranger-1.4.2/po/nl.po000066400000000000000000000112001363324226000153730ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Heimen Stoffels , 2016 # Thomas De Rocker, 2011 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2017-02-26 16:16+0000\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: Dutch (http://www.transifex.com/logari81/pdfshuffler/language/" "nl/)\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Geen document" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Meerdere documenten" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Bezig met laden van miniaturen... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exporteren..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF-bestanden" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Alle bestanden" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importeren..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Links" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Rechts" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Boven" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Onder" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Geselecteerde pagina's bijsnijden" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Marges bijsnijden" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% van breedte" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% van hoogte" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s is een hulpprogramma voor het herordenen en bewerken van PDF-bestanden, " "ontwikkeld in GTK+ en Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "pagina" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Bestand" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "Selectie _exporteren..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Bewerken" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Naar links draaien" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Naar rechts draaien" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Bijsnijden" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Beeld" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Inzoomen" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Uitzoomen" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Hulp" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Open een bestand en wijs het toe aan het huidige document" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importeren" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Opslaan" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Opslaan als" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Verwijderen" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Naar _links draaien" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Naar rechts _draaien" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "Bij_snijden..." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "_Verwijderen" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/pdfarranger.pot000066400000000000000000000073471363324226000174620ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "" #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "" #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "" #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "" #: data/pdfarranger.ui.h:22 msgid "C_rop" msgstr "" #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/pl_PL.po000066400000000000000000000112631363324226000160010ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Toratora , 2014 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2017-02-26 16:16+0000\n" "Last-Translator: Toratora \n" "Language-Team: Polish (Poland) (http://www.transifex.com/logari81/" "pdfshuffler/language/pl_PL/)\n" "Language: pl_PL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" "%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" "%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Brak dokumentu" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Kilka dokumentów" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Podgląd miniaturek... [%(i1)s/%(i2)s] " #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Zapisz ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Pliki PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Wszystkie pliki" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Zaimportuj... " #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Lewo" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Prawo" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Górę " #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Dół" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Przytnij wybrane strony" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Przytnij margines" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% szerokość" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% wysokości" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s jest narzędziem do układania i modyfikowania plików PDF. Opracowanym przy " "użyciu GTK i Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "strona" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Plik" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Zapisz wybrany/wybrane " #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Edytuj " #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Obróć w lewo" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Obróć w prawo" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Przytnij " #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Widok" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Powiększ " #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Pomniejsz" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Pomoc" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Otwórz plik i dołączyć go do bieżącego dokumentu" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Zaimportuj " #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Zapisz" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Zapisz jako" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Usuń" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Obróć w_lewo" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "_Obróć w prawo" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "P_rzytnij..." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "_Usuń..." #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/pt_BR.po000066400000000000000000000110751363324226000160020ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Rogênio Belém , 2013 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2013-03-28 10:48-0300\n" "Last-Translator: Rogênio L. Belém \n" "Language-Team: Rogênio L. Belém \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "Nenhum documento" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Vários documentos" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Gerando miniaturas... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Exportar ..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "Arquivos PDF" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Todos os arquivos" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "Importar..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Esquerda" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Direita" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Superior" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Inferior" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Recortar as páginas selecionadas" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Recortar as márgens" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of width" msgstr "% da largura" #: pdfarranger/pdfarranger.py:1111 #, python-format msgid "% of height" msgstr "% da altura" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s é uma ferramenta que rearranja e modifica arquivos PDF. Desenvolvido " "utilizando GTK+ e Python" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "página" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "_Arquivo" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "_Exportar as páginas selecionadas..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "_Editar" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Rotacionar à esquerda" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Rotacionar à direita" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Recortar" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "_Ver" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Ampliar" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Reduzir" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "_Ajuda" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Abrir um arquivo e adicioná-lo ao documento atual" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "Importar" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Salvar" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Salvar como" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Remover" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Rotacionar à _esquerda" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Rotacionar à _direita" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "_Recortar.." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "Remover" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/tr.po000066400000000000000000000105361363324226000154220ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , 2018. # msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.5\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: \n" "Last-Translator: Murathan BOSTANCI \n" "Language-Team: Turkish\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.2\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "belge yok" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "Çeşitli belgeler" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "Küçük resimler işleniyor… [% (I2) s/% (I2) s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "Dışa Aktar …" #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF dosyaları" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "Tüm dosyalar" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "İçe Aktar.." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "Sol" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "Sağ" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "Üst" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "Alt" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "Seçilen sayfaları kırp" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "Kenar boşluklarını kırp" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% genişlik" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% yükseklik" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "" "%s PDF dosyalarını değiştirme ve yeniden ayarlama aracıdır. GTK+ and Python " "kullanılarak geliştirilmiştir" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "sayfa" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "Dosya" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "Seçimi dışa aktar" #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "Düzenle" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "Sola döndür" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "Sağa döndür" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "Kırp" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "Görünüm" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "Yakınlaştır" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "Uzaklaş" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "Yardım" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "Bir dosya açın ve mevcut dokümana ekleyin" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "İçe aktar" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "Kaydet" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "Farklı kaydet" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "Sil" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "Sola Döndür" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "Sağa Döndür" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "Kırp" #: data/pdfarranger.ui.h:23 #, fuzzy msgid "_Delete" msgstr "Sil" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/updatepo.sh000077500000000000000000000017131363324226000166120ustar00rootroot00000000000000#!/bin/sh # # pdfarranger - GTK+ based utility for splitting, rearrangement and # modification of PDF documents. # Copyright (C) 2008-2017 Konstantinos Poulios # # pdfarranger is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Update translation files find ./po -type f -iname "*.po" -exec msgmerge -U {} po/pdfarranger.pot \; pdfarranger-1.4.2/po/zh_CN.po000066400000000000000000000107461363324226000160010ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: # Dean Lee , 2011,2014 msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2014-11-05 07:31+0000\n" "Last-Translator: Dean Lee \n" "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/" "pdfshuffler/language/zh_CN/)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "无文档" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "多个文档" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "正在渲染缩略图... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "导出..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF 文件" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "所有文件" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "导入..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "左边" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "右边" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "顶部" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "底部" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "裁剪所选页面" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "裁剪边距" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% 的宽度" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% 的高度" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "%s 是用于重排及修改 PDF 文件的工具。采用 GTK+ 及 Python 开发" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "页面" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "文件(_F)" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "导出所选(_E)..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "编辑(_E)" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "向左旋转" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "向右旋转" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "裁剪" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "查看(_V)" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "放大" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "缩小" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "帮助(_H)" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "打开文件,并将其追加到当前文件末尾" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "导入" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "保存" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "另存为" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "删除" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "向左旋转(_L)" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "向右旋转(_R)" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "裁剪(_R)..." #: data/pdfarranger.ui.h:23 msgid "_Delete" msgstr "删除(_D)" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/po/zh_TW.po000066400000000000000000000106021363324226000160220ustar00rootroot00000000000000# PDF-Shuffler translation files. # Copyright (C) 2008-2017 Konstantinos Poulios # This file is part of PDF-Shuffler which is released under the GNU General # Public License version 3 or later. # See file COPYING or go to for full license details. # Translators: msgid "" msgstr "" "Project-Id-Version: PDF-Shuffler 0.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-01-12 10:16+0100\n" "PO-Revision-Date: 2013-11-12 08:38+0800\n" "Last-Translator: Franklin Weng \n" "Language-Team: Chinese Traditional \n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: pdfarranger/metadata.py:30 msgid "Title" msgstr "" #: pdfarranger/metadata.py:31 msgid "Creator" msgstr "" #: pdfarranger/metadata.py:32 msgid "Producer" msgstr "" #: pdfarranger/metadata.py:33 msgid "Creator tool" msgstr "" #: pdfarranger/metadata.py:91 data/pdfarranger.ui.h:10 msgid "Edit properties" msgstr "" #: pdfarranger/metadata.py:104 msgid "Property" msgstr "" #: pdfarranger/metadata.py:104 msgid "Value" msgstr "" #: pdfarranger/pdfarranger.py:506 msgid "No document" msgstr "沒有文件" #: pdfarranger/pdfarranger.py:508 msgid "Several documents" msgstr "一些文件" #: pdfarranger/pdfarranger.py:525 #, python-format msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" msgstr "縮圖成像中... [%(i1)s/%(i2)s]" #: pdfarranger/pdfarranger.py:614 msgid "Export ..." msgstr "匯出..." #: pdfarranger/pdfarranger.py:626 pdfarranger/pdfarranger.py:709 msgid "PDF files" msgstr "PDF 檔案" #: pdfarranger/pdfarranger.py:632 pdfarranger/pdfarranger.py:704 msgid "All files" msgstr "所有檔案" #: pdfarranger/pdfarranger.py:693 msgid "Import..." msgstr "匯入..." #: pdfarranger/pdfarranger.py:1072 msgid "Left" msgstr "左側" #: pdfarranger/pdfarranger.py:1072 msgid "Right" msgstr "右側" #: pdfarranger/pdfarranger.py:1073 msgid "Top" msgstr "頂部" #: pdfarranger/pdfarranger.py:1073 msgid "Bottom" msgstr "底部" #: pdfarranger/pdfarranger.py:1090 msgid "Crop Selected Pages" msgstr "裁剪選取的頁面" #: pdfarranger/pdfarranger.py:1098 msgid "" "Cropping does not remove any content\n" "from the PDF file, it only hides it." msgstr "" #: pdfarranger/pdfarranger.py:1101 msgid "Crop Margins" msgstr "裁剪邊緣" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of width" msgstr "% 的寬度" #: pdfarranger/pdfarranger.py:1111 #, fuzzy, python-format msgid "% of height" msgstr "% 的高度" #: pdfarranger/pdfarranger.py:1218 #, python-format msgid "" "%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " "and Python" msgstr "%s 是個變更重新編排 PDF 檔的工具。用 GTK+ 與 Python 開發" #: pdfarranger/pdfarranger.py:1298 msgid "page" msgstr "頁面" #: data/pdfarranger.ui.h:1 msgid "_File" msgstr "檔案(_F)" #: data/pdfarranger.ui.h:2 msgid "_Export selection..." msgstr "匯出選取項目(_E)..." #: data/pdfarranger.ui.h:3 msgid "_Edit" msgstr "編輯(_E)" #: data/pdfarranger.ui.h:4 msgid "Rotate left" msgstr "向左旋轉" #: data/pdfarranger.ui.h:5 msgid "Rotate right" msgstr "向右旋轉" #: data/pdfarranger.ui.h:6 msgid "Crop" msgstr "裁剪" #: data/pdfarranger.ui.h:7 msgid "Du_plicate" msgstr "" #: data/pdfarranger.ui.h:8 msgid "Reverse Order" msgstr "" #: data/pdfarranger.ui.h:9 msgid "Split pages" msgstr "" #: data/pdfarranger.ui.h:11 msgid "_View" msgstr "檢視(_V)" #: data/pdfarranger.ui.h:12 msgid "Zoom in" msgstr "放大" #: data/pdfarranger.ui.h:13 msgid "Zoom out" msgstr "縮小" #: data/pdfarranger.ui.h:14 msgid "_Help" msgstr "說明(_H)" #: data/pdfarranger.ui.h:15 msgid "Open a file and append it to the current document" msgstr "開啟檔案並將它附加到現有文件之後" #: data/pdfarranger.ui.h:16 msgid "Import" msgstr "匯入" #: data/pdfarranger.ui.h:17 msgid "Save" msgstr "儲存" #: data/pdfarranger.ui.h:18 msgid "Save as" msgstr "另存新檔" #: data/pdfarranger.ui.h:19 msgid "Delete" msgstr "刪除" #: data/pdfarranger.ui.h:20 msgid "Rotate _Left" msgstr "向左旋轉(_L)" #: data/pdfarranger.ui.h:21 msgid "_Rotate Right" msgstr "向右旋轉(_R)" #: data/pdfarranger.ui.h:22 #, fuzzy msgid "C_rop" msgstr "裁剪(_R)" #: data/pdfarranger.ui.h:23 #, fuzzy msgid "_Delete" msgstr "刪除" #: data/pdfarranger.ui.h:24 msgid "Re_verse Order" msgstr "" pdfarranger-1.4.2/setup.cfg000066400000000000000000000000521363324226000156300ustar00rootroot00000000000000[build_icons] icon-dir=data/icons/hicolor pdfarranger-1.4.2/setup.py000077500000000000000000000036171363324226000155360ustar00rootroot00000000000000#!/usr/bin/env python3 # # pdfarranger - GTK+ based utility for splitting, rearrangement and # modification of PDF documents. # Copyright (C) 2008-2017 Konstantinos Poulios # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # from setuptools import setup from DistUtilsExtra.command import ( build_i18n, clean_i18n, build_extra, build_icons) data_files = [ ('share/applications', ['data/pdfarranger.desktop']), ('share/pdfarranger', ['data/pdfarranger.ui']), ('share/man/man1', ['doc/pdfarranger.1']), ('share/metainfo', ['data/pdfarranger.appdata.xml']), ] setup( name='pdfarranger', version='1.4.2', author='Jerome Robert', author_email='jeromerobert@gmx.com', description='A simple application for PDF Merging, Rearranging, and Splitting', url='https://github.com/jeromerobert/pdfarranger', license='GNU GPL-3', packages=['pdfarranger'], data_files=data_files, zip_safe=False, cmdclass={ "build": build_extra.build_extra, "build_i18n": build_i18n.build_i18n, "clean_i18n": clean_i18n.clean_i18n, "build_icons": build_icons.build_icons, }, entry_points={ 'console_scripts': ['pdfarranger=pdfarranger.pdfarranger:main'] }, install_requires=['pikepdf'], ) pdfarranger-1.4.2/setup_win32.py000066400000000000000000000111161363324226000165460ustar00rootroot00000000000000from cx_Freeze import setup, Executable import os import sys import distutils import shutil import glob include_files = [ ('data/pdfarranger.ui', 'share/pdfarranger/pdfarranger.ui'), ('data/icons/hicolor/scalable', 'share/icons/hicolor/scalable'), ('build/mo', 'share/locale'), ] def addfile(relpath, warn_missing=False): global include_files f = os.path.join(sys.prefix, relpath) if warn_missing and not os.path.isfile(f): print("{} cannot be found.".format(f), file=sys.stderr) else: include_files.append((f, relpath)) def addlocale(name): for path in glob.glob(os.path.join(sys.prefix, "share/locale/*/LC_MESSAGES/{}.mo".format(name))): addfile(os.path.relpath(path, sys.prefix)) addlocale("gtk30") def addicons(): addfile("share/icons/hicolor/index.theme") addfile("share/icons/Adwaita/index.theme") for i in ['places/folder', 'mimetypes/text-x-generic', 'status/image-missing']: addfile(os.path.join('share/icons/Adwaita/16x16/', i + '.png')) icons = [ 'places/user-desktop', 'places/user-home', 'actions/bookmark-new', 'actions/document-open-recent', 'actions/list-add', 'actions/list-remove', 'actions/media-eject', 'ui/pan-down', 'ui/pan-end', 'ui/pan-start', 'ui/pan-up', 'devices/drive-harddisk', 'devices/drive-optical', 'places/folder-documents', 'places/folder-download', 'places/folder-music', 'places/folder-pictures', 'places/folder-videos', 'places/user-trash', ] for i in icons: addfile(os.path.join('share/icons/Adwaita/16x16/', i + '-symbolic.symbolic.png')) icons24 = ['document-save-as', 'edit-delete', 'list-add', 'object-rotate-left', 'object-rotate-right', 'zoom-in', 'zoom-out'] for i in icons24: addfile(os.path.join('share/icons/Adwaita/24x24/legacy', i + '.png')) required_dlls = [ 'gtk-3-0', 'gdk-3-0', 'epoxy-0', 'gdk_pixbuf-2.0-0', 'pango-1.0-0', 'pangocairo-1.0-0', 'pangoft2-1.0-0', 'pangowin32-1.0-0', 'atk-1.0-0', 'poppler-glib-8', 'xml2-2', 'rsvg-2-2', ] for dll in required_dlls: fn = 'lib' + dll + '.dll' include_files.append((os.path.join(sys.prefix, 'bin', fn), fn)) required_gi_namespaces = [ "Gtk-3.0", "Gdk-3.0", "cairo-1.0", "Pango-1.0", "GObject-2.0", "GLib-2.0", "Gio-2.0", "GdkPixbuf-2.0", "GModule-2.0", "Atk-1.0", "Poppler-0.18" ] for ns in required_gi_namespaces: addfile("lib/girepository-1.0/{}.typelib".format(ns)) addfile("lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll") addfile("lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dll") addfile("lib/gdk-pixbuf-2.0/2.10.0/loaders.cache") addfile("share/glib-2.0/schemas/gschemas.compiled") addicons() build_options = dict( packages=['gi', 'packaging', 'pikepdf'], excludes=['tkinter', 'test', 'distutils'], include_files=include_files, ) msi_options = dict( initial_target_dir=os.environ['ProgramW6432'] + '\\pdfarranger' ) class bdist_zip(distutils.cmd.Command): """ Minimalist command to create a Windows portable .zip distribution """ description = "create a \"zip\" distribution" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): build_base = self.get_finalized_command('build').build_base build_exe = self.get_finalized_command('build_exe') fullname = self.distribution.get_fullname() build_exe.build_exe = os.path.join(build_base, fullname) build_exe.run() dist_dir = self.get_finalized_command('bdist').dist_dir archname = os.path.join(dist_dir, fullname + '-mingw') self.make_archive(archname, 'zip', root_dir=build_base, base_dir=fullname) shutil.rmtree(build_exe.build_exe) setup(name='pdfarranger', version='1.4.2', description='A simple application for PDF Merging, Rearranging, and Splitting', options=dict(build_exe=build_options, bdist_msi=msi_options), cmdclass={'bdist_zip': bdist_zip}, executables=[Executable('pdfarranger/__main__.py', base='Win32GUI' if sys.platform == 'win32' else None, targetName='pdfarranger.exe', icon='data/pdfarranger.ico', shortcutName='PDF Arranger', shortcutDir='StartMenuFolder' )])