Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b44e036be3 | ||
|
|
7ac6e9d37b | ||
|
|
6854e96fb8 | ||
|
|
2df3a386ad | ||
|
|
187b47eddd | ||
|
|
763aeb5fae | ||
|
|
3cad43006a | ||
|
|
8e4cdb78a0 | ||
|
|
9d80458250 | ||
|
|
d601c2ae64 | ||
|
|
87cd6dfb54 | ||
|
|
3dea1b3d7c | ||
|
|
f882c166cd | ||
|
|
9be0acd75b | ||
|
|
0901683880 | ||
|
|
216f3045db | ||
|
|
ce544adb62 | ||
|
|
107d299822 | ||
|
|
d577a34135 | ||
|
|
394c3412e5 | ||
|
|
b53920ddc5 |
@@ -1,5 +1,5 @@
|
|||||||
# Build jbig2enc in a separate stage
|
# Build jbig2enc in a separate stage
|
||||||
FROM frooodle/stirling-pdf-base:beta2
|
FROM frooodle/stirling-pdf-base:beta3
|
||||||
|
|
||||||
# Create scripts folder and copy local scripts
|
# Create scripts folder and copy local scripts
|
||||||
RUN mkdir /scripts
|
RUN mkdir /scripts
|
||||||
|
|||||||
@@ -1,27 +1,3 @@
|
|||||||
# Build jbig2enc in a separate stage
|
|
||||||
FROM debian:bullseye-slim as jbig2enc_builder
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
git \
|
|
||||||
automake \
|
|
||||||
autoconf \
|
|
||||||
libtool \
|
|
||||||
libleptonica-dev \
|
|
||||||
pkg-config \
|
|
||||||
ca-certificates \
|
|
||||||
zlib1g-dev \
|
|
||||||
make \
|
|
||||||
g++
|
|
||||||
|
|
||||||
RUN git clone https://github.com/agl/jbig2enc && \
|
|
||||||
cd jbig2enc && \
|
|
||||||
./autogen.sh && \
|
|
||||||
./configure && \
|
|
||||||
make && \
|
|
||||||
make install
|
|
||||||
|
|
||||||
|
|
||||||
# Main stage
|
# Main stage
|
||||||
FROM openjdk:17-jdk-slim AS base
|
FROM openjdk:17-jdk-slim AS base
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
@@ -59,4 +35,3 @@ RUN apt-get update && \
|
|||||||
# Final stage: Copy necessary files from the previous stage
|
# Final stage: Copy necessary files from the previous stage
|
||||||
FROM base
|
FROM base
|
||||||
COPY --from=python-packages /usr/local /usr/local
|
COPY --from=python-packages /usr/local /usr/local
|
||||||
COPY --from=jbig2enc_builder /usr/local/bin/jbig2 /usr/local/bin/jbig2
|
|
||||||
809
LICENSE
809
LICENSE
@@ -1,201 +1,674 @@
|
|||||||
Apache License
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 2.0, January 2004
|
Version 3, 29 June 2007
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
1. Definitions.
|
Preamble
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
The GNU General Public License is a free, copyleft license for
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
software and other kinds of works.
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
The licenses for most software and other practical works are designed
|
||||||
the copyright owner that is granting the License.
|
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.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
When we speak of free software, we are referring to freedom, not
|
||||||
other entities that control, are controlled by, or are under common
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
control with that entity. For the purposes of this definition,
|
have the freedom to distribute copies of free software (and charge for
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
them if you wish), that you receive source code or can get it if you
|
||||||
direction or management of such entity, whether by contract or
|
want it, that you can change the software or use pieces of it in new
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
free programs, and that you know you can do these things.
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
To protect your rights, we need to prevent others from denying you
|
||||||
exercising permissions granted by this License.
|
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.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
For example, if you distribute copies of such a program, whether
|
||||||
including but not limited to software source code, documentation
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
source, and configuration files.
|
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.
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
transformation or translation of a Source form, including but
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
not limited to compiled object code, generated documentation,
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
Object form, made available under the License, as indicated by a
|
that there is no warranty for this free software. For both users' and
|
||||||
copyright notice that is included in or attached to the work
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
(an example is provided in the Appendix below).
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
Some devices are designed to deny users access to install or run
|
||||||
form, that is based on (or derived from) the Work and for which the
|
modified versions of the software inside them, although the manufacturer
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
protecting users' freedom to change the software. The systematic
|
||||||
of this License, Derivative Works shall not include works that remain
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
the Work and Derivative Works thereof.
|
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.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
Finally, every program is threatened constantly by software patents.
|
||||||
the original version of the Work and any modifications or additions
|
States should not allow patents to restrict development and use of
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
avoid the special danger that patents applied to a free program could
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
patents cannot be used to render the program non-free.
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
The precise terms and conditions for copying, distribution and
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
modification follow.
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
TERMS AND CONDITIONS
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
0. Definitions.
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
Derivative Works a copy of this License; and
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
stating that You changed the files; and
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
that You distribute, all copyright, patent, trademark, and
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
attribution notices from the Source form of the Work,
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
excluding those notices that do not pertain to any part of
|
earlier work or a work "based on" the earlier work.
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
A "covered work" means either the unmodified Program or a work based
|
||||||
distribution, then any Derivative Works that You distribute must
|
on the Program.
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
To "propagate" a work means to do anything with it that, without
|
||||||
may provide additional or different license terms and conditions
|
permission, would make you directly or secondarily liable for
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
infringement under applicable copyright law, except executing it on a
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
distribution (with or without modification), making available to the
|
||||||
the conditions stated in this License.
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
To "convey" a work means any kind of propagation that enables other
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
to the extent that it includes a convenient and prominently visible
|
||||||
except as required for reasonable and customary use in describing the
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
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.
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
1. Source Code.
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
The "source code" for a work means the preferred form of the work
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
for making modifications to it. "Object code" means any non-source
|
||||||
unless required by applicable law (such as deliberate and grossly
|
form of a work.
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
A "Standard Interface" means an interface that either is an official
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
standard defined by a recognized standards body, or, in the case of
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
interfaces specified for a particular programming language, one that
|
||||||
or other liability obligations and/or rights consistent with this
|
is widely used among developers working in that language.
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
The "System Libraries" of an executable work include anything, other
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
defend, and hold each Contributor harmless for any liability
|
packaging a Major Component, but which is not part of that Major
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
Component, and (b) serves only to enable use of the work with that
|
||||||
of your accepting any such warranty or additional liability.
|
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
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
If you develop a new program, and you want it to be of the greatest
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
possible use to the public, the best way to achieve this is to make it
|
||||||
replaced with your own identifying information. (Don't include
|
free software which everyone can redistribute and change under these terms.
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
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.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
you may not use this file except in compliance with the License.
|
Copyright (C) <year> <name of author>
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
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.
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
This program is distributed in the hope that it will be useful,
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
See the License for the specific language governing permissions and
|
GNU General Public License for more details.
|
||||||
limitations under the License.
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
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
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
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
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -117,9 +117,9 @@ Stirling PDF currently supports
|
|||||||
- German (Deutsch) (de_DE)
|
- German (Deutsch) (de_DE)
|
||||||
- French (Français) (fr_FR)
|
- French (Français) (fr_FR)
|
||||||
- Spanish (Español) (es_ES)
|
- Spanish (Español) (es_ES)
|
||||||
- Chinese (简体中文) (it_IT)
|
- Chinese (简体中文) (zh_CN)
|
||||||
- Catalan (Català) (zh_CN)
|
- Catalan (Català) (ca_CA)
|
||||||
- Italian (Italiano) (ca_CA)
|
- Italian (Italiano) (it_IT)
|
||||||
- Swedish (Svenska) (sv_SE)
|
- Swedish (Svenska) (sv_SE)
|
||||||
- Polish (Polski) (pl_PL)
|
- Polish (Polski) (pl_PL)
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ Using the same method you can also change
|
|||||||
- The default language by providing APP_LOCALE with values like de-DE fr-FR or ar-AR (Note the - character not _ ) to select your default language (Will always default to English on invalid locale) Current accepted locales can be seen above in the Want to add your own language section
|
- The default language by providing APP_LOCALE with values like de-DE fr-FR or ar-AR (Note the - character not _ ) to select your default language (Will always default to English on invalid locale) Current accepted locales can be seen above in the Want to add your own language section
|
||||||
- Enable/Disable search engine visiblility with ALLOW_GOOGLE_VISIBILITY with true / false values. Default disable visiblility.
|
- Enable/Disable search engine visiblility with ALLOW_GOOGLE_VISIBILITY with true / false values. Default disable visiblility.
|
||||||
- Change root URI for Stirling-PDF ie change server.com/ to server.com/pdf-app by running APP_ROOT_PATH as pdf-app
|
- Change root URI for Stirling-PDF ie change server.com/ to server.com/pdf-app by running APP_ROOT_PATH as pdf-app
|
||||||
- Disable and remove endpoints and functionality from Stirling-PDF. Currently the endpoints ENDPOINTS_TO_REMOVE and GROUPS_TO_REMOVE can include comma seperated lists of endpoints and groups to disable as example ENDPOINTS_TO_REMOVE=img-to-pdf,remove-pages would disable both image to pdf and remove pages, GROUPS_TO_REMOVE=LibreOffice Would disable all things that use LibreOffice. You can see a list of all endpoints and groups [here](https://github.com/Frooodle/Stirling-PDF/blob/main/Groups.md)
|
- Disable and remove endpoints and functionality from Stirling-PDF. Currently the endpoints ENDPOINTS_TO_REMOVE and GROUPS_TO_REMOVE can include comma seperated lists of endpoints and groups to disable as example ENDPOINTS_TO_REMOVE=img-to-pdf,remove-pages would disable both image to pdf and remove pages, GROUPS_TO_REMOVE=LibreOffice Would disable all things that use LibreOffice. You can see a list of all endpoints and groups [here](https://github.com/Frooodle/Stirling-PDF/blob/main/groups.md)
|
||||||
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
@@ -155,20 +155,19 @@ For those wanting to use Stirling-PDFs backend API to link with their own custom
|
|||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
### Q1: Where is the authentication for Stirling PDF
|
### Q1: Can you add authentication in Stirling PDF?
|
||||||
There is no Auth within Stirling PDF and there is none planned. This feature will not be added. Instead its recommended to use trusted and secure auth software like Authentik or Authelia.
|
There is no Auth within Stirling PDF and there is none planned. This feature will not be added. Instead we recommended you use trusted and secure authentication software like Authentik or Authelia.
|
||||||
|
|
||||||
### Q2: What are your planned features
|
### Q2: What are your planned features?
|
||||||
- Crop
|
- Crop
|
||||||
- Progress bar/Tracking
|
- Progress bar/Tracking
|
||||||
- Annotations (Sign/draw logic directly on page)
|
|
||||||
- Full custom logic pipelines to combine multiple operations together.
|
- Full custom logic pipelines to combine multiple operations together.
|
||||||
- Folder support with auto scanning to perform operations on
|
- Folder support with auto scanning to perform operations on
|
||||||
- Redact text
|
- Redact sections of pages
|
||||||
- Add page numbers
|
- Add page numbers
|
||||||
- Auto rename (Renames file based on file title text)
|
- Auto rename (Renames file based on file title text)
|
||||||
- URL to PDF
|
- URL to PDF
|
||||||
- Change contrast
|
- Change contrast
|
||||||
|
|
||||||
### Q3: Why is my application download .htm files
|
### Q3: Why is my application downloading .htm files?
|
||||||
This is a issue caused commonly by your NGINX congifuration. The default file upload size for NGINX is 1MB, you need to add the following in your Nginx sites-available file. client_max_body_size SIZE; Where "SIZE" is 50M for example for 50MB files.
|
This is a issue caused commonly by your NGINX congifuration. The default file upload size for NGINX is 1MB, you need to add the following in your Nginx sites-available file. client_max_body_size SIZE; Where "SIZE" is 50M for example for 50MB files.
|
||||||
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'stirling.software'
|
group = 'stirling.software'
|
||||||
version = '0.8.3'
|
version = '0.9.0'
|
||||||
sourceCompatibility = '17'
|
sourceCompatibility = '17'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -24,8 +24,9 @@ dependencies {
|
|||||||
|
|
||||||
//general PDF
|
//general PDF
|
||||||
implementation 'org.apache.pdfbox:pdfbox:2.0.28'
|
implementation 'org.apache.pdfbox:pdfbox:2.0.28'
|
||||||
|
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
|
||||||
|
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
|
||||||
|
implementation 'com.itextpdf:itext7-core:7.2.5'
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||||
implementation 'io.micrometer:micrometer-core'
|
implementation 'io.micrometer:micrometer-core'
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
package stirling.software.SPDF.config;
|
package stirling.software.SPDF.config;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.slf4j.Logger;
|
|
||||||
@Service
|
@Service
|
||||||
public class EndpointConfiguration {
|
public class EndpointConfiguration {
|
||||||
private static final Logger logger = LoggerFactory.getLogger(EndpointConfiguration.class);
|
private static final Logger logger = LoggerFactory.getLogger(EndpointConfiguration.class);
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
package stirling.software.SPDF.config;
|
package stirling.software.SPDF.config;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.web.filter.OncePerRequestFilter;
|
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Counter;
|
|
||||||
import io.micrometer.core.instrument.Meter;
|
import io.micrometer.core.instrument.Meter;
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
|
||||||
import io.micrometer.core.instrument.config.MeterFilter;
|
import io.micrometer.core.instrument.config.MeterFilter;
|
||||||
import io.micrometer.core.instrument.config.MeterFilterReply;
|
import io.micrometer.core.instrument.config.MeterFilterReply;
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,11 @@ package stirling.software.SPDF.config;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.web.filter.OncePerRequestFilter;
|
import org.springframework.web.filter.OncePerRequestFilter;
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Counter;
|
import io.micrometer.core.instrument.Counter;
|
||||||
import io.micrometer.core.instrument.Meter;
|
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
import io.micrometer.core.instrument.MeterRegistry;
|
||||||
import io.micrometer.core.instrument.config.MeterFilter;
|
|
||||||
import io.micrometer.core.instrument.config.MeterFilterReply;
|
|
||||||
import jakarta.servlet.FilterChain;
|
import jakarta.servlet.FilterChain;
|
||||||
import jakarta.servlet.ServletException;
|
import jakarta.servlet.ServletException;
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
|||||||
@@ -1,11 +1,24 @@
|
|||||||
package stirling.software.SPDF.controller.api.other;
|
package stirling.software.SPDF.controller.api.other;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.awt.Image;
|
||||||
|
import java.awt.image.BufferedImage;
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.File;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
|
|
||||||
|
import org.apache.commons.io.FileUtils;
|
||||||
|
import org.apache.pdfbox.cos.COSName;
|
||||||
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
|
import org.apache.pdfbox.pdmodel.PDPage;
|
||||||
|
import org.apache.pdfbox.pdmodel.PDResources;
|
||||||
|
import org.apache.pdfbox.pdmodel.graphics.PDXObject;
|
||||||
|
import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
@@ -17,67 +30,190 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import stirling.software.SPDF.utils.PdfUtils;
|
import stirling.software.SPDF.utils.PdfUtils;
|
||||||
import stirling.software.SPDF.utils.ProcessExecutor;
|
import stirling.software.SPDF.utils.ProcessExecutor;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
@RestController
|
@RestController
|
||||||
public class CompressController {
|
public class CompressController {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(CompressController.class);
|
private static final Logger logger = LoggerFactory.getLogger(CompressController.class);
|
||||||
|
|
||||||
@PostMapping(consumes = "multipart/form-data", value = "/compress-pdf")
|
@PostMapping(consumes = "multipart/form-data", value = "/compress-pdf")
|
||||||
@Operation(
|
@Operation(summary = "Optimize PDF file", description = "This endpoint accepts a PDF file and optimizes it based on the provided parameters.")
|
||||||
summary = "Optimize PDF file",
|
|
||||||
description = "This endpoint accepts a PDF file and optimizes it based on the provided parameters."
|
|
||||||
)
|
|
||||||
public ResponseEntity<byte[]> optimizePdf(
|
public ResponseEntity<byte[]> optimizePdf(
|
||||||
@RequestPart(required = true, value = "fileInput")
|
@RequestPart(value = "fileInput") @Parameter(description = "The input PDF file to be optimized.", required = true) MultipartFile inputFile,
|
||||||
@Parameter(description = "The input PDF file to be optimized.", required = true)
|
@RequestParam(required = false, value = "optimizeLevel") @Parameter(description = "The level of optimization to apply to the PDF file. Higher values indicate greater compression but may reduce quality.", schema = @Schema(allowableValues = {
|
||||||
MultipartFile inputFile,
|
"1", "2", "3", "4", "5" })) Integer optimizeLevel,
|
||||||
@RequestParam("optimizeLevel")
|
@RequestParam(value = "expectedOutputSize", required = false) @Parameter(description = "The expected output size, e.g. '100MB', '25KB', etc.", required = false) String expectedOutputSizeString)
|
||||||
@Parameter(description = "The level of optimization to apply to the PDF file. Higher values indicate greater compression but may reduce quality.",
|
throws Exception {
|
||||||
schema = @Schema(allowableValues = {"0", "1", "2", "3"}), example = "1")
|
|
||||||
int optimizeLevel,
|
if(expectedOutputSizeString == null && optimizeLevel == null) {
|
||||||
@RequestParam(name = "fastWebView", required = false)
|
throw new Exception("Both expected output size and optimize level are not specified");
|
||||||
@Parameter(description = "If true, optimize the PDF for fast web view. This increases the file size by about 25%.", example = "false")
|
}
|
||||||
Boolean fastWebView,
|
|
||||||
@RequestParam(name = "jbig2Lossy", required = false)
|
Long expectedOutputSize = 0L;
|
||||||
@Parameter(description = "If true, apply lossy JB2 compression to the PDF file.", example = "false")
|
boolean autoMode = false;
|
||||||
Boolean jbig2Lossy)
|
if (expectedOutputSizeString != null && expectedOutputSizeString.length() > 1 ) {
|
||||||
throws IOException, InterruptedException {
|
expectedOutputSize = PdfUtils.convertSizeToBytes(expectedOutputSizeString);
|
||||||
|
autoMode = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Save the uploaded file to a temporary location
|
// Save the uploaded file to a temporary location
|
||||||
Path tempInputFile = Files.createTempFile("input_", ".pdf");
|
Path tempInputFile = Files.createTempFile("input_", ".pdf");
|
||||||
inputFile.transferTo(tempInputFile.toFile());
|
inputFile.transferTo(tempInputFile.toFile());
|
||||||
|
|
||||||
|
long inputFileSize = Files.size(tempInputFile);
|
||||||
|
|
||||||
// Prepare the output file path
|
// Prepare the output file path
|
||||||
Path tempOutputFile = Files.createTempFile("output_", ".pdf");
|
Path tempOutputFile = Files.createTempFile("output_", ".pdf");
|
||||||
|
|
||||||
// Prepare the OCRmyPDF command
|
// Determine initial optimization level based on expected size reduction, only if in autoMode
|
||||||
|
if(autoMode) {
|
||||||
|
double sizeReductionRatio = expectedOutputSize / (double) inputFileSize;
|
||||||
|
if (sizeReductionRatio > 0.7) {
|
||||||
|
optimizeLevel = 1;
|
||||||
|
} else if (sizeReductionRatio > 0.5) {
|
||||||
|
optimizeLevel = 2;
|
||||||
|
} else if (sizeReductionRatio > 0.35) {
|
||||||
|
optimizeLevel = 3;
|
||||||
|
} else {
|
||||||
|
optimizeLevel = 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean sizeMet = false;
|
||||||
|
while (!sizeMet && optimizeLevel <= 4) {
|
||||||
|
// Prepare the Ghostscript command
|
||||||
List<String> command = new ArrayList<>();
|
List<String> command = new ArrayList<>();
|
||||||
command.add("ocrmypdf");
|
command.add("gs");
|
||||||
command.add("--skip-text");
|
command.add("-sDEVICE=pdfwrite");
|
||||||
command.add("--tesseract-timeout=0");
|
command.add("-dCompatibilityLevel=1.4");
|
||||||
command.add("--optimize");
|
|
||||||
command.add(String.valueOf(optimizeLevel));
|
|
||||||
command.add("--output-type");
|
|
||||||
command.add("pdf");
|
|
||||||
|
|
||||||
if (fastWebView != null && fastWebView) {
|
switch (optimizeLevel) {
|
||||||
long fileSize = inputFile.getSize();
|
case 1:
|
||||||
long fastWebViewSize = (long) (fileSize * 1.25); // 25% higher than file size
|
command.add("-dPDFSETTINGS=/prepress");
|
||||||
command.add("--fast-web-view");
|
break;
|
||||||
command.add(String.valueOf(fastWebViewSize));
|
case 2:
|
||||||
}
|
command.add("-dPDFSETTINGS=/printer");
|
||||||
|
break;
|
||||||
if (jbig2Lossy != null && jbig2Lossy) {
|
case 3:
|
||||||
command.add("--jbig2-lossy");
|
command.add("-dPDFSETTINGS=/ebook");
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
command.add("-dPDFSETTINGS=/screen");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
command.add("-dPDFSETTINGS=/default");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
command.add("-dNOPAUSE");
|
||||||
|
command.add("-dQUIET");
|
||||||
|
command.add("-dBATCH");
|
||||||
|
command.add("-sOutputFile=" + tempOutputFile.toString());
|
||||||
command.add(tempInputFile.toString());
|
command.add(tempInputFile.toString());
|
||||||
command.add(tempOutputFile.toString());
|
|
||||||
|
|
||||||
int returnCode = ProcessExecutor.getInstance(ProcessExecutor.Processes.OCR_MY_PDF).runCommandWithOutputHandling(command);
|
int returnCode = ProcessExecutor.getInstance(ProcessExecutor.Processes.GHOSTSCRIPT).runCommandWithOutputHandling(command);
|
||||||
|
|
||||||
|
// Check if file size is within expected size or not auto mode so instantly finish
|
||||||
|
long outputFileSize = Files.size(tempOutputFile);
|
||||||
|
if (outputFileSize <= expectedOutputSize || !autoMode) {
|
||||||
|
sizeMet = true;
|
||||||
|
} else {
|
||||||
|
// Increase optimization level for next iteration
|
||||||
|
optimizeLevel++;
|
||||||
|
if(autoMode && optimizeLevel > 3) {
|
||||||
|
System.out.println("Skipping level 4 due to bad results in auto mode");
|
||||||
|
sizeMet = true;
|
||||||
|
} else if(optimizeLevel == 5) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
System.out.println("Increasing ghostscript optimisation level to " + optimizeLevel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (expectedOutputSize != null && autoMode) {
|
||||||
|
long outputFileSize = Files.size(tempOutputFile);
|
||||||
|
if (outputFileSize > expectedOutputSize) {
|
||||||
|
try (PDDocument doc = PDDocument.load(new File(tempOutputFile.toString()))) {
|
||||||
|
long previousFileSize = 0;
|
||||||
|
double scaleFactor = 1.0;
|
||||||
|
while (true) {
|
||||||
|
for (PDPage page : doc.getPages()) {
|
||||||
|
PDResources res = page.getResources();
|
||||||
|
|
||||||
|
for (COSName name : res.getXObjectNames()) {
|
||||||
|
PDXObject xobj = res.getXObject(name);
|
||||||
|
if (xobj instanceof PDImageXObject) {
|
||||||
|
PDImageXObject image = (PDImageXObject) xobj;
|
||||||
|
|
||||||
|
// Get the image in BufferedImage format
|
||||||
|
BufferedImage bufferedImage = image.getImage();
|
||||||
|
|
||||||
|
// Calculate the new dimensions
|
||||||
|
int newWidth = (int)(bufferedImage.getWidth() * scaleFactor);
|
||||||
|
int newHeight = (int)(bufferedImage.getHeight() * scaleFactor);
|
||||||
|
|
||||||
|
// If the new dimensions are zero, skip this iteration
|
||||||
|
if (newWidth == 0 || newHeight == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Otherwise, proceed with the scaling
|
||||||
|
Image scaledImage = bufferedImage.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);
|
||||||
|
|
||||||
|
// Convert the scaled image back to a BufferedImage
|
||||||
|
BufferedImage scaledBufferedImage = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB);
|
||||||
|
scaledBufferedImage.getGraphics().drawImage(scaledImage, 0, 0, null);
|
||||||
|
|
||||||
|
// Compress the scaled image
|
||||||
|
ByteArrayOutputStream compressedImageStream = new ByteArrayOutputStream();
|
||||||
|
ImageIO.write(scaledBufferedImage, "jpeg", compressedImageStream);
|
||||||
|
byte[] imageBytes = compressedImageStream.toByteArray();
|
||||||
|
compressedImageStream.close();
|
||||||
|
|
||||||
|
// Convert compressed image back to PDImageXObject
|
||||||
|
ByteArrayInputStream bais = new ByteArrayInputStream(imageBytes);
|
||||||
|
PDImageXObject compressedImage = PDImageXObject.createFromByteArray(doc, imageBytes, image.getCOSObject().toString());
|
||||||
|
|
||||||
|
// Replace the image in the resources with the compressed version
|
||||||
|
res.put(name, compressedImage);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// save the document to tempOutputFile again
|
||||||
|
doc.save(tempOutputFile.toString());
|
||||||
|
|
||||||
|
long currentSize = Files.size(tempOutputFile);
|
||||||
|
// Check if the overall PDF size is still larger than expectedOutputSize
|
||||||
|
if (currentSize > expectedOutputSize) {
|
||||||
|
// Log the current file size and scaleFactor
|
||||||
|
|
||||||
|
System.out.println("Current file size: " + FileUtils.byteCountToDisplaySize(currentSize));
|
||||||
|
System.out.println("Current scale factor: " + scaleFactor);
|
||||||
|
|
||||||
|
// The file is still too large, reduce scaleFactor and try again
|
||||||
|
scaleFactor *= 0.9; // reduce scaleFactor by 10%
|
||||||
|
// Avoid scaleFactor being too small, causing the image to shrink to 0
|
||||||
|
if(scaleFactor < 0.2 || previousFileSize == currentSize){
|
||||||
|
throw new RuntimeException("Could not reach the desired size without excessively degrading image quality, lowest size recommended is " + FileUtils.byteCountToDisplaySize(currentSize) + ", " + currentSize + " bytes");
|
||||||
|
}
|
||||||
|
previousFileSize = currentSize;
|
||||||
|
} else {
|
||||||
|
// The file is small enough, break the loop
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Read the optimized PDF file
|
// Read the optimized PDF file
|
||||||
byte[] pdfBytes = Files.readAllBytes(tempOutputFile);
|
byte[] pdfBytes = Files.readAllBytes(tempOutputFile);
|
||||||
|
|||||||
@@ -0,0 +1,285 @@
|
|||||||
|
package stirling.software.SPDF.controller.api.security;
|
||||||
|
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
import java.security.KeyFactory;
|
||||||
|
import java.security.KeyStore;
|
||||||
|
import java.security.Principal;
|
||||||
|
import java.security.PrivateKey;
|
||||||
|
import java.security.Security;
|
||||||
|
import java.security.cert.Certificate;
|
||||||
|
import java.security.cert.CertificateFactory;
|
||||||
|
import java.security.cert.X509Certificate;
|
||||||
|
import java.security.spec.PKCS8EncodedKeySpec;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||||
|
import org.bouncycastle.util.io.pem.PemReader;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RequestPart;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import com.itextpdf.io.font.constants.StandardFonts;
|
||||||
|
import com.itextpdf.kernel.font.PdfFont;
|
||||||
|
import com.itextpdf.kernel.font.PdfFontFactory;
|
||||||
|
import com.itextpdf.kernel.geom.Rectangle;
|
||||||
|
import com.itextpdf.kernel.pdf.PdfDocument;
|
||||||
|
import com.itextpdf.kernel.pdf.PdfPage;
|
||||||
|
import com.itextpdf.kernel.pdf.PdfReader;
|
||||||
|
import com.itextpdf.kernel.pdf.StampingProperties;
|
||||||
|
import com.itextpdf.signatures.BouncyCastleDigest;
|
||||||
|
import com.itextpdf.signatures.DigestAlgorithms;
|
||||||
|
import com.itextpdf.signatures.IExternalDigest;
|
||||||
|
import com.itextpdf.signatures.IExternalSignature;
|
||||||
|
import com.itextpdf.signatures.PdfPKCS7;
|
||||||
|
import com.itextpdf.signatures.PdfSignatureAppearance;
|
||||||
|
import com.itextpdf.signatures.PdfSigner;
|
||||||
|
import com.itextpdf.signatures.PrivateKeySignature;
|
||||||
|
import com.itextpdf.signatures.SignatureUtil;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import stirling.software.SPDF.utils.PdfUtils;
|
||||||
|
@RestController
|
||||||
|
public class CertSignController {
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(CertSignController.class);
|
||||||
|
|
||||||
|
static {
|
||||||
|
Security.addProvider(new BouncyCastleProvider());
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping(consumes = "multipart/form-data", value = "/cert-sign")
|
||||||
|
@Operation(summary = "Sign PDF with a Digital Certificate",
|
||||||
|
description = "This endpoint accepts a PDF file, a digital certificate and related information to sign the PDF. It then returns the digitally signed PDF file.")
|
||||||
|
public ResponseEntity<byte[]> signPDF(
|
||||||
|
@RequestPart(required = true, value = "fileInput")
|
||||||
|
@Parameter(description = "The input PDF file to be signed")
|
||||||
|
MultipartFile pdf,
|
||||||
|
|
||||||
|
@RequestParam(value = "certType", required = false)
|
||||||
|
@Parameter(description = "The type of the digital certificate", schema = @Schema(allowableValues = {"PKCS12", "PEM"}))
|
||||||
|
String certType,
|
||||||
|
|
||||||
|
@RequestParam(value = "key", required = false)
|
||||||
|
@Parameter(description = "The private key for the digital certificate (required for PEM type certificates)")
|
||||||
|
MultipartFile privateKeyFile,
|
||||||
|
|
||||||
|
@RequestParam(value = "cert", required = false)
|
||||||
|
@Parameter(description = "The digital certificate (required for PEM type certificates)")
|
||||||
|
MultipartFile certFile,
|
||||||
|
|
||||||
|
@RequestParam(value = "p12", required = false)
|
||||||
|
@Parameter(description = "The PKCS12 keystore file (required for PKCS12 type certificates)")
|
||||||
|
MultipartFile p12File,
|
||||||
|
|
||||||
|
@RequestParam(value = "password", required = false)
|
||||||
|
@Parameter(description = "The password for the keystore or the private key")
|
||||||
|
String password,
|
||||||
|
|
||||||
|
@RequestParam(value = "showSignature", required = false)
|
||||||
|
@Parameter(description = "Whether to visually show the signature in the PDF file")
|
||||||
|
Boolean showSignature,
|
||||||
|
|
||||||
|
@RequestParam(value = "reason", required = false)
|
||||||
|
@Parameter(description = "The reason for signing the PDF")
|
||||||
|
String reason,
|
||||||
|
|
||||||
|
@RequestParam(value = "location", required = false)
|
||||||
|
@Parameter(description = "The location where the PDF is signed")
|
||||||
|
String location,
|
||||||
|
|
||||||
|
@RequestParam(value = "name", required = false)
|
||||||
|
@Parameter(description = "The name of the signer")
|
||||||
|
String name,
|
||||||
|
|
||||||
|
@RequestParam(value = "pageNumber", required = false)
|
||||||
|
@Parameter(description = "The page number where the signature should be visible. This is required if showSignature is set to true")
|
||||||
|
Integer pageNumber) throws Exception {
|
||||||
|
|
||||||
|
BouncyCastleProvider provider = new BouncyCastleProvider();
|
||||||
|
Security.addProvider(provider);
|
||||||
|
|
||||||
|
PrivateKey privateKey = null;
|
||||||
|
X509Certificate cert = null;
|
||||||
|
|
||||||
|
if (certType != null) {
|
||||||
|
switch (certType) {
|
||||||
|
case "PKCS12":
|
||||||
|
if (p12File != null) {
|
||||||
|
KeyStore ks = KeyStore.getInstance("PKCS12");
|
||||||
|
ks.load(new ByteArrayInputStream(p12File.getBytes()), password.toCharArray());
|
||||||
|
String alias = ks.aliases().nextElement();
|
||||||
|
privateKey = (PrivateKey) ks.getKey(alias, password.toCharArray());
|
||||||
|
cert = (X509Certificate) ks.getCertificate(alias);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "PEM":
|
||||||
|
if (privateKeyFile != null && certFile != null) {
|
||||||
|
// Load private key
|
||||||
|
KeyFactory keyFactory = KeyFactory.getInstance("RSA", provider);
|
||||||
|
if (isPEM(privateKeyFile.getBytes())) {
|
||||||
|
privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(parsePEM(privateKeyFile.getBytes())));
|
||||||
|
} else {
|
||||||
|
privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(privateKeyFile.getBytes()));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load certificate
|
||||||
|
CertificateFactory certFactory = CertificateFactory.getInstance("X.509", provider);
|
||||||
|
if (isPEM(certFile.getBytes())) {
|
||||||
|
cert = (X509Certificate) certFactory.generateCertificate(new ByteArrayInputStream(parsePEM(certFile.getBytes())));
|
||||||
|
} else {
|
||||||
|
cert = (X509Certificate) certFactory.generateCertificate(new ByteArrayInputStream(certFile.getBytes()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Principal principal = cert.getSubjectDN();
|
||||||
|
String dn = principal.getName();
|
||||||
|
|
||||||
|
// Extract the "CN" (Common Name) field from the distinguished name (if it's present)
|
||||||
|
String cn = null;
|
||||||
|
for (String part : dn.split(",")) {
|
||||||
|
if (part.trim().startsWith("CN=")) {
|
||||||
|
cn = part.trim().substring("CN=".length());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set up the PDF reader and stamper
|
||||||
|
PdfReader reader = new PdfReader(new ByteArrayInputStream(pdf.getBytes()));
|
||||||
|
ByteArrayOutputStream signedPdf = new ByteArrayOutputStream();
|
||||||
|
PdfSigner signer = new PdfSigner(reader, signedPdf, new StampingProperties());
|
||||||
|
|
||||||
|
// Set up the signing appearance
|
||||||
|
PdfSignatureAppearance appearance = signer.getSignatureAppearance()
|
||||||
|
.setReason("Test")
|
||||||
|
.setLocation("TestLocation");
|
||||||
|
|
||||||
|
if (showSignature != null && showSignature) {
|
||||||
|
float fontSize = 4; // the font size of the signature
|
||||||
|
float marginRight = 36; // Margin from the right
|
||||||
|
float marginBottom = 36; // Margin from the bottom
|
||||||
|
String signingDate = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss z").format(new Date());
|
||||||
|
|
||||||
|
// Prepare the text for the digital signature
|
||||||
|
String layer2Text = String.format("Digitally signed by: %s\nDate: %s\nReason: %s\nLocation: %s", name, signingDate, reason, location);
|
||||||
|
|
||||||
|
// Get the PDF font and measure the width and height of the text block
|
||||||
|
PdfFont font = PdfFontFactory.createFont(StandardFonts.HELVETICA_BOLD);
|
||||||
|
float textWidth = Arrays.stream(layer2Text.split("\n"))
|
||||||
|
.map(line -> font.getWidth(line, fontSize))
|
||||||
|
.max(Float::compare)
|
||||||
|
.orElse(0f);
|
||||||
|
int numLines = layer2Text.split("\n").length;
|
||||||
|
float textHeight = numLines * fontSize;
|
||||||
|
|
||||||
|
// Calculate the signature rectangle size
|
||||||
|
float sigWidth = textWidth + marginRight * 2;
|
||||||
|
float sigHeight = textHeight + marginBottom * 2;
|
||||||
|
|
||||||
|
// Get the page size
|
||||||
|
PdfPage page = signer.getDocument().getPage(1);
|
||||||
|
Rectangle pageSize = page.getPageSize();
|
||||||
|
|
||||||
|
// Define the position and dimension of the signature field
|
||||||
|
Rectangle rect = new Rectangle(
|
||||||
|
pageSize.getRight() - sigWidth - marginRight,
|
||||||
|
pageSize.getBottom() + marginBottom,
|
||||||
|
sigWidth,
|
||||||
|
sigHeight
|
||||||
|
);
|
||||||
|
|
||||||
|
// Configure the appearance of the digital signature
|
||||||
|
appearance.setPageRect(rect)
|
||||||
|
.setContact(name)
|
||||||
|
.setPageNumber(pageNumber)
|
||||||
|
.setReason(reason)
|
||||||
|
.setLocation(location)
|
||||||
|
.setReuseAppearance(false)
|
||||||
|
.setLayer2Text(layer2Text);
|
||||||
|
|
||||||
|
signer.setFieldName("sig");
|
||||||
|
} else {
|
||||||
|
appearance.setRenderingMode(PdfSignatureAppearance.RenderingMode.DESCRIPTION);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set up the signer
|
||||||
|
PrivateKeySignature pks = new PrivateKeySignature(privateKey, DigestAlgorithms.SHA256, provider.getName());
|
||||||
|
IExternalSignature pss = new PrivateKeySignature(privateKey, DigestAlgorithms.SHA256, provider.getName());
|
||||||
|
IExternalDigest digest = new BouncyCastleDigest();
|
||||||
|
|
||||||
|
// Call iTex7 to sign the PDF
|
||||||
|
signer.signDetached(digest, pks, new Certificate[] {cert}, null, null, null, 0, PdfSigner.CryptoStandard.CMS);
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println("Signed PDF size: " + signedPdf.size());
|
||||||
|
|
||||||
|
System.out.println("PDF signed = " + isPdfSigned(signedPdf.toByteArray()));
|
||||||
|
return PdfUtils.bytesToWebResponse(signedPdf.toByteArray(), "example.pdf");
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPdfSigned(byte[] pdfData) throws IOException {
|
||||||
|
InputStream pdfStream = new ByteArrayInputStream(pdfData);
|
||||||
|
PdfDocument pdfDoc = new PdfDocument(new PdfReader(pdfStream));
|
||||||
|
SignatureUtil signatureUtil = new SignatureUtil(pdfDoc);
|
||||||
|
List<String> names = signatureUtil.getSignatureNames();
|
||||||
|
|
||||||
|
boolean isSigned = false;
|
||||||
|
|
||||||
|
for (String name : names) {
|
||||||
|
PdfPKCS7 pkcs7 = signatureUtil.readSignatureData(name);
|
||||||
|
if (pkcs7 != null) {
|
||||||
|
System.out.println("Signature found.");
|
||||||
|
|
||||||
|
// Log certificate details
|
||||||
|
Certificate[] signChain = pkcs7.getSignCertificateChain();
|
||||||
|
for (Certificate cert : signChain) {
|
||||||
|
if (cert instanceof X509Certificate) {
|
||||||
|
X509Certificate x509 = (X509Certificate) cert;
|
||||||
|
System.out.println("Certificate Details:");
|
||||||
|
System.out.println("Subject: " + x509.getSubjectDN());
|
||||||
|
System.out.println("Issuer: " + x509.getIssuerDN());
|
||||||
|
System.out.println("Serial: " + x509.getSerialNumber());
|
||||||
|
System.out.println("Not Before: " + x509.getNotBefore());
|
||||||
|
System.out.println("Not After: " + x509.getNotAfter());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
isSigned = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pdfDoc.close();
|
||||||
|
|
||||||
|
return isSigned;
|
||||||
|
}
|
||||||
|
private byte[] parsePEM(byte[] content) throws IOException {
|
||||||
|
PemReader pemReader = new PemReader(new InputStreamReader(new ByteArrayInputStream(content)));
|
||||||
|
return pemReader.readPemObject().getContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean isPEM(byte[] content) {
|
||||||
|
String contentStr = new String(content);
|
||||||
|
return contentStr.contains("-----BEGIN") && contentStr.contains("-----END");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -16,8 +16,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import stirling.software.SPDF.utils.PdfUtils;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import stirling.software.SPDF.utils.PdfUtils;
|
||||||
@RestController
|
@RestController
|
||||||
public class PasswordController {
|
public class PasswordController {
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
package stirling.software.SPDF.controller.web;
|
package stirling.software.SPDF.controller.web;
|
||||||
import io.micrometer.core.instrument.Counter;
|
|
||||||
import io.micrometer.core.instrument.Meter;
|
|
||||||
import io.micrometer.core.instrument.MeterRegistry;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
@@ -13,6 +8,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import io.micrometer.core.instrument.Counter;
|
||||||
|
import io.micrometer.core.instrument.Meter;
|
||||||
|
import io.micrometer.core.instrument.MeterRegistry;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v1")
|
@RequestMapping("/api/v1")
|
||||||
public class MetricsController {
|
public class MetricsController {
|
||||||
|
|||||||
@@ -34,4 +34,11 @@ public class SecurityWebController {
|
|||||||
model.addAttribute("currentPage", "add-watermark");
|
model.addAttribute("currentPage", "add-watermark");
|
||||||
return "security/add-watermark";
|
return "security/add-watermark";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/cert-sign")
|
||||||
|
@Hidden
|
||||||
|
public String certSignForm(Model model) {
|
||||||
|
model.addAttribute("currentPage", "cert-sign");
|
||||||
|
return "security/cert-sign";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ package stirling.software.SPDF.utils;
|
|||||||
|
|
||||||
import java.awt.Graphics;
|
import java.awt.Graphics;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.awt.image.BufferedImageOp;
|
|
||||||
import java.awt.image.ColorConvertOp;
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@@ -287,4 +285,31 @@ public class PdfUtils {
|
|||||||
|
|
||||||
return PdfUtils.boasToWebResponse(baos, docName);
|
return PdfUtils.boasToWebResponse(baos, docName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Long convertSizeToBytes(String sizeStr) {
|
||||||
|
if (sizeStr == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
sizeStr = sizeStr.trim().toUpperCase();
|
||||||
|
try {
|
||||||
|
if (sizeStr.endsWith("KB")) {
|
||||||
|
return (long) (Double.parseDouble(sizeStr.substring(0, sizeStr.length() - 2)) * 1024);
|
||||||
|
} else if (sizeStr.endsWith("MB")) {
|
||||||
|
return (long) (Double.parseDouble(sizeStr.substring(0, sizeStr.length() - 2)) * 1024 * 1024);
|
||||||
|
} else if (sizeStr.endsWith("GB")) {
|
||||||
|
return (long) (Double.parseDouble(sizeStr.substring(0, sizeStr.length() - 2)) * 1024 * 1024 * 1024);
|
||||||
|
} else if (sizeStr.endsWith("B")) {
|
||||||
|
return Long.parseLong(sizeStr.substring(0, sizeStr.length() - 1));
|
||||||
|
} else {
|
||||||
|
// Input string does not have a valid format, handle this case
|
||||||
|
}
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
// The numeric part of the input string cannot be parsed, handle this case
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,6 +135,22 @@ home.compare.desc = يقارن ويظهر الاختلافات بين 2 من م
|
|||||||
downloadPdf = تنزيل PDF
|
downloadPdf = تنزيل PDF
|
||||||
text=نص
|
text=نص
|
||||||
font=الخط
|
font=الخط
|
||||||
|
selectFillter = - حدد -
|
||||||
|
pageNum = رقم الصفحة
|
||||||
|
|
||||||
|
certSign.title = توقيع الشهادة
|
||||||
|
certSign.header = قم بتوقيع ملف PDF بشهادتك (العمل قيد التقدم)
|
||||||
|
certSign.selectPDF = حدد ملف PDF للتوقيع:
|
||||||
|
certSign.selectKey = حدد ملف المفتاح الخاص (تنسيق PKCS # 8 ، يمكن أن يكون .pem أو .der):
|
||||||
|
certSign.selectCert = حدد ملف الشهادة الخاص بك (تنسيق X.509 ، يمكن أن يكون .pem أو .der):
|
||||||
|
certSign.selectP12 = حدد ملف تخزين المفاتيح PKCS # 12 (.p12 أو .pfx) (اختياري ، إذا تم توفيره ، يجب أن يحتوي على مفتاحك الخاص وشهادتك):
|
||||||
|
certSign.certType = نوع الشهادة
|
||||||
|
certSign.password = أدخل ملف تخزين المفاتيح أو كلمة المرور الخاصة (إن وجدت):
|
||||||
|
certSign.showSig = إظهار التوقيع
|
||||||
|
certSign.reason = السبب
|
||||||
|
certSign.location = الموقع
|
||||||
|
certSign.name = الاسم
|
||||||
|
certSign.submit = تسجيل PDF
|
||||||
|
|
||||||
removeBlanks.title = إزالة الفراغات
|
removeBlanks.title = إزالة الفراغات
|
||||||
removeBlanks.header = إزالة الصفحات الفارغة
|
removeBlanks.header = إزالة الصفحات الفارغة
|
||||||
@@ -230,16 +246,14 @@ addImage.submit=إضافة صورة
|
|||||||
|
|
||||||
#compress
|
#compress
|
||||||
compress.title = ضغط
|
compress.title = ضغط
|
||||||
compress.header=\u0636\u063A\u0637 PDF
|
compress.header = ضغط ملف PDF
|
||||||
compress.credit=\u062A\u0633\u062A\u062E\u062F\u0645 \u0647\u0630\u0647 \u0627\u0644\u062E\u062F\u0645\u0629 OCRmyPDF \u0644\u0636\u063A\u0637 / \u062A\u062D\u0633\u064A\u0646 PDF.
|
compress.credit = تستخدم هذه الخدمة OCRmyPDF لضغط / تحسين PDF.
|
||||||
compress.selectText.1=\u0645\u0633\u062A\u0648\u0649 \u0627\u0644\u062A\u062D\u0633\u064A\u0646:
|
compress.selectText.1 = الوضع اليدوي - من 1 إلى 4
|
||||||
compress.selectText.2=0 (\u0628\u062F\u0648\u0646 \u062A\u062D\u0633\u064A\u0646)
|
compress.selectText.2 = مستوى التحسين:
|
||||||
compress.selectText.3=1 (\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u060C \u062A\u062D\u0633\u064A\u0646 \u0628\u062F\u0648\u0646 \u0641\u0642\u062F\u0627\u0646)
|
compress.selectText.3 = 4 (رهيب للصور النصية)
|
||||||
compress.selectText.4=2 (\u062A\u062D\u0633\u064A\u0646 \u0636\u064A\u0627\u0639)
|
compress.selectText.4 = الوضع التلقائي - يضبط الجودة تلقائيًا للحصول على ملف PDF بالحجم المحدد
|
||||||
compress.selectText.5=3 (\u062A\u062D\u0633\u064A\u0646 \u0636\u064A\u0627\u0639 \u060C \u0623\u0643\u062B\u0631 \u0639\u062F\u0648\u0627\u0646\u064A\u0629)
|
compress.selectText.5 = حجم PDF المتوقع (على سبيل المثال 25 ميجا بايت ، 10.8 ميجا بايت ، 25 كيلو بايت)
|
||||||
compress.selectText.6=\u062A\u0645\u0643\u064A\u0646 \u0639\u0631\u0636 \u0627\u0644\u0648\u064A\u0628 \u0627\u0644\u0633\u0631\u064A\u0639 (\u062E\u0637\u064A PDF)
|
compress.submit = ضغطضغط
|
||||||
compress.selectText.7=\u062A\u0645\u0643\u064A\u0646 \u062A\u0631\u0645\u064A\u0632 JBIG2 \u0627\u0644\u0645\u0641\u0642\u0648\u062F
|
|
||||||
compress.submit=ضغط
|
|
||||||
|
|
||||||
|
|
||||||
#merge
|
#merge
|
||||||
|
|||||||
@@ -128,6 +128,22 @@ home.compare.desc=Compara i mostra les diferències entre 2 documents PDF
|
|||||||
downloadPdf=Descarregueu PDF
|
downloadPdf=Descarregueu PDF
|
||||||
text=Text
|
text=Text
|
||||||
font=Tipus de lletra
|
font=Tipus de lletra
|
||||||
|
selectFillter=-- Selecciona --
|
||||||
|
pageNum=Número de pàgina
|
||||||
|
|
||||||
|
certSign.title=Significació del certificat
|
||||||
|
certSign.header=Firmar un PDF amb el vostre certificat (Treball en curs)
|
||||||
|
certSign.selectPDF=Seleccioneu un fitxer PDF per signar:
|
||||||
|
certSign.selectKey=Seleccioneu el vostre fitxer de clau privada (format PKCS#8, podria ser .pem o .der):
|
||||||
|
certSign.selectCert=Seleccioneu el vostre fitxer de certificat (format X.509, podria ser .pem o .der):
|
||||||
|
certSign.selectP12=Seleccioneu el vostre fitxer de magatzem de claus PKCS#12 (.p12 o .pfx) (Opcional, si es proporciona, hauria de contenir la vostra clau privada i certificat):
|
||||||
|
certSign.certType=Tipus de certificat
|
||||||
|
certSign.password=Introduïu el vostre magatzem de claus o contrasenya de clau privada (si n'hi ha):
|
||||||
|
certSign.showSig=Mostra la signatura
|
||||||
|
certSign.reason=Motiu
|
||||||
|
certSign.location=Ubicació
|
||||||
|
certSign.name=Nom
|
||||||
|
certSign.submit=Firma PDF
|
||||||
|
|
||||||
removeBlanks.title=Elimina els espais en blanc
|
removeBlanks.title=Elimina els espais en blanc
|
||||||
removeBlanks.header=Elimina les pàgines en blanc
|
removeBlanks.header=Elimina les pàgines en blanc
|
||||||
@@ -220,18 +236,15 @@ fileToPDF.submit=Converteix a PDF
|
|||||||
|
|
||||||
|
|
||||||
#compress
|
#compress
|
||||||
compress.title=Comprimeix
|
compress.title=Comprimir
|
||||||
compress.header=Comprimeix PDF
|
compress.header=Comprimir PDF
|
||||||
compress.credit=Utilitza OCRmyPDF per Compressió/Optimització de PDF.
|
compress.credit=Aquest servei utilitza Ghostscript per a la compressió/optimització de PDF.
|
||||||
compress.selectText.1=Nivell Optimització:
|
compress.selectText.1=Mode manual: de l'1 al 4
|
||||||
compress.selectText.2=0 (Sense Optimització)
|
compress.selectText.2=Nivell d'optimització:
|
||||||
compress.selectText.3=1 (Defecte, sense pèrdua Optimització)
|
compress.selectText.3=4 (terrible per a imatges de text)
|
||||||
compress.selectText.4=2 (Pèrdua Optimització)
|
compress.selectText.4=Mode automàtic: ajusta automàticament la qualitat per tal que el PDF tingui la mida exacta
|
||||||
compress.selectText.5=3 (Pèrdua Optimització, més agressiu)
|
compress.selectText.5=Mida esperada del PDF (p. ex. 25 MB, 10,8 MB, 25 KB)
|
||||||
compress.selectText.6=Activa la visualització web ràpida (linealitza PDF)
|
compress.submit=Comprimir
|
||||||
compress.selectText.7=Activa pèrdua codificació JBIG2
|
|
||||||
compress.submit=Comprimeix
|
|
||||||
|
|
||||||
|
|
||||||
#Add image
|
#Add image
|
||||||
addImage.title=Afegir Imatge
|
addImage.title=Afegir Imatge
|
||||||
|
|||||||
@@ -127,6 +127,22 @@ home.compare.desc=Vergleicht und zeigt die Unterschiede zwischen zwei PDF-Dokume
|
|||||||
downloadPdf=PDF herunterladen
|
downloadPdf=PDF herunterladen
|
||||||
text=Text
|
text=Text
|
||||||
font=Schriftart
|
font=Schriftart
|
||||||
|
selectFillter=-- Auswählen --
|
||||||
|
pageNum=Seitenzahl
|
||||||
|
|
||||||
|
certSign.title=Zertifikatsignierung
|
||||||
|
certSign.header=Signieren Sie ein PDF mit Ihrem Zertifikat (in Arbeit)
|
||||||
|
certSign.selectPDF=Wählen Sie eine PDF-Datei zum Signieren aus:
|
||||||
|
certSign.selectKey=Wählen Sie Ihre private Schlüsseldatei aus (PKCS#8-Format, könnte .pem oder .der sein):
|
||||||
|
certSign.selectCert=Wählen Sie Ihre Zertifikatsdatei aus (X.509-Format, könnte .pem oder .der sein):
|
||||||
|
certSign.selectP12=Wählen Sie Ihre PKCS#12-Keystore-Datei (.p12 oder .pfx) aus (optional, falls angegeben, sollte sie Ihren privaten Schlüssel und Ihr Zertifikat enthalten):
|
||||||
|
certSign.certType=Zertifikattyp
|
||||||
|
certSign.password=Geben Sie Ihr Keystore- oder Private-Key-Passwort ein (falls vorhanden):
|
||||||
|
certSign.showSig=Signatur anzeigen
|
||||||
|
certSign.reason=Grund
|
||||||
|
certSign.location=Standort
|
||||||
|
certSign.name=Name
|
||||||
|
certSign.submit=PDF signieren
|
||||||
|
|
||||||
removeBlanks.title=Leerzeichen entfernen
|
removeBlanks.title=Leerzeichen entfernen
|
||||||
removeBlanks.header=Leere Seiten entfernen
|
removeBlanks.header=Leere Seiten entfernen
|
||||||
@@ -226,14 +242,12 @@ addImage.submit=Bild hinzufügen
|
|||||||
#compress
|
#compress
|
||||||
compress.title=Komprimieren
|
compress.title=Komprimieren
|
||||||
compress.header=PDF komprimieren
|
compress.header=PDF komprimieren
|
||||||
compress.credit=Dieser Dienst verwendet OCRmyPDF für die PDF-Komprimierung/-Optimierung.
|
compress.credit=Dieser Dienst verwendet Ghostscript für die PDF-Komprimierung/-Optimierung.
|
||||||
compress.selectText.1=Optimierungsstufe:
|
compress.selectText.1=Manueller Modus – Von 1 bis 4
|
||||||
compress.selectText.2=0 (Keine Optimierung)
|
compress.selectText.2=Optimierungsstufe:
|
||||||
compress.selectText.3=1 (Standard, verlustfreie Optimierung)
|
compress.selectText.3=4 (Schrecklich für Textbilder)
|
||||||
compress.selectText.4=2 (Verlustbehaftete Optimierung)
|
compress.selectText.4=Automatischer Modus – Passt die Qualität automatisch an, um das PDF auf die exakte Größe zu bringen
|
||||||
compress.selectText.5=3 (Verlustbehaftete Optimierung, aggressiver)
|
compress.selectText.5=Erwartete PDF-Größe (z. B. 25 MB, 10,8 MB, 25 KB)
|
||||||
compress.selectText.6=Schnelle Webansicht aktivieren (PDF linearisieren)
|
|
||||||
compress.selectText.7=Verlustbehaftete JBIG2-Kodierung aktivieren
|
|
||||||
compress.submit=Komprimieren
|
compress.submit=Komprimieren
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -125,9 +125,32 @@ home.removeBlanks.desc=Detects and removes blank pages from a document
|
|||||||
home.compare.title=Compare
|
home.compare.title=Compare
|
||||||
home.compare.desc=Compares and shows the differences between 2 PDF Documents
|
home.compare.desc=Compares and shows the differences between 2 PDF Documents
|
||||||
|
|
||||||
|
home.certSign.title=Sign with Certificate
|
||||||
|
home.certSign.desc=Signs a PDF with a Certificate/Key (PEM/P12)
|
||||||
|
|
||||||
|
|
||||||
downloadPdf=Download PDF
|
downloadPdf=Download PDF
|
||||||
text=Text
|
text=Text
|
||||||
font=Font
|
font=Font
|
||||||
|
selectFillter=-- Select --
|
||||||
|
pageNum=Page Number
|
||||||
|
|
||||||
|
certSign.title=Certificate Signing
|
||||||
|
certSign.header=Sign a PDF with your certificate (Work in progress)
|
||||||
|
certSign.selectPDF=Select a PDF File for Signing:
|
||||||
|
certSign.selectKey=Select Your Private Key File (PKCS#8 format, could be .pem or .der):
|
||||||
|
certSign.selectCert=Select Your Certificate File (X.509 format, could be .pem or .der):
|
||||||
|
certSign.selectP12=Select Your PKCS#12 Keystore File (.p12 or .pfx) (Optional, If provided, it should contain your private key and certificate):
|
||||||
|
certSign.certType=Certificate Type
|
||||||
|
certSign.password=Enter Your Keystore or Private Key Password (If Any):
|
||||||
|
certSign.showSig=Show Signature
|
||||||
|
certSign.reason=Reason
|
||||||
|
certSign.location=Location
|
||||||
|
certSign.name=Name
|
||||||
|
|
||||||
|
certSign.submit=Sign PDF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
removeBlanks.title=Remove Blanks
|
removeBlanks.title=Remove Blanks
|
||||||
removeBlanks.header=Remove Blank Pages
|
removeBlanks.header=Remove Blank Pages
|
||||||
@@ -222,14 +245,12 @@ fileToPDF.submit=Convert to PDF
|
|||||||
#compress
|
#compress
|
||||||
compress.title=Compress
|
compress.title=Compress
|
||||||
compress.header=Compress PDF
|
compress.header=Compress PDF
|
||||||
compress.credit=This service uses OCRmyPDF for PDF Compress/Optimisation.
|
compress.credit=This service uses Ghostscript for PDF Compress/Optimisation.
|
||||||
compress.selectText.1=Optimization level:
|
compress.selectText.1=Manual Mode - From 1 to 4
|
||||||
compress.selectText.2=0 (No optimization)
|
compress.selectText.2=Optimization level:
|
||||||
compress.selectText.3=1 (Default, lossless optimization)
|
compress.selectText.3=4 (Terrible for text images)
|
||||||
compress.selectText.4=2 (Lossy optimization)
|
compress.selectText.4=Auto mode - Auto adjusts quality to get PDF to exact size
|
||||||
compress.selectText.5=3 (Lossy optimization, more aggressive)
|
compress.selectText.5=Expected PDF Size (e.g. 25MB, 10.8MB, 25KB)
|
||||||
compress.selectText.6=Enable fast web view (linearize PDF)
|
|
||||||
compress.selectText.7=Enable lossy JBIG2 encoding
|
|
||||||
compress.submit=Compress
|
compress.submit=Compress
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
# the direction that the language is written (ltr = left to right, rtl = right to left)
|
# the direction that the language is written (ltr = left to right, rtl = right to left)
|
||||||
language.direction=ltr
|
language.direction=ltr
|
||||||
|
|
||||||
pdfPrompt=Selecciona PDF(s)
|
pdfPrompt=Seleccionar PDF(s)
|
||||||
multiPdfPrompt=Selecciona PDFs (2+)
|
multiPdfPrompt=Seleccionar PDFs (2+)
|
||||||
multiPdfDropPrompt=Selecciona (o arrastra y suelta) todos los PDFs que quieras
|
multiPdfDropPrompt=Selecciona (o arrastra y suelta) todos los PDFs que quieras
|
||||||
imgPrompt=Selecciona Imagen(es)
|
imgPrompt=Seleccionar Imagen(es)
|
||||||
genericSubmit=Enviar
|
genericSubmit=Enviar
|
||||||
processTimeWarning=Advertencia: este proceso puede tardar hasta un minuto dependiendo del tamaño del archivo
|
processTimeWarning=Advertencia: este proceso puede tardar hasta un minuto dependiendo del tamaño del archivo
|
||||||
pageOrderPrompt=Orden de páginas (Introduzca una lista de números de página separados por coma):
|
pageOrderPrompt=Orden de páginas (Introduzca una lista de números de página separados por coma):
|
||||||
@@ -31,65 +31,65 @@ navbar.other=Otro
|
|||||||
navbar.darkmode=Modo oscuro
|
navbar.darkmode=Modo oscuro
|
||||||
navbar.pageOps=Operaciones de página
|
navbar.pageOps=Operaciones de página
|
||||||
|
|
||||||
home.multiTool.title=Multiherramienta PDF
|
home.multiTool.title=Multi-herramienta PDF
|
||||||
home.multiTool.desc=Combinar, rotar, reorganizar y eliminar páginas
|
home.multiTool.desc=Combinar, rotar, reorganizar y eliminar páginas
|
||||||
|
|
||||||
home.merge.title=Unir
|
home.merge.title=Unir
|
||||||
home.merge.desc=Unir fácilmente múltiples PDFs en uno.
|
home.merge.desc=Unir fácilmente múltiples PDFs en uno.
|
||||||
|
|
||||||
home.split.title=Divide
|
home.split.title=Dividir
|
||||||
home.split.desc=Divide PDFs en múltiples documentos
|
home.split.desc=Dividir PDFs en múltiples documentos
|
||||||
|
|
||||||
home.rotate.title=Rota
|
home.rotate.title=Rotar
|
||||||
home.rotate.desc=Rota fácilmente tus PDFs.
|
home.rotate.desc=Rotar fácilmente tus PDFs.
|
||||||
|
|
||||||
home.imageToPdf.title=Imagen a PDF
|
home.imageToPdf.title=Imagen a PDF
|
||||||
home.imageToPdf.desc=Convierte una imagen (PNG, JPEG, GIF) a PDF.
|
home.imageToPdf.desc=Convertir una imagen (PNG, JPEG, GIF) a PDF.
|
||||||
|
|
||||||
home.pdfToImage.title=PDF a Imagen
|
home.pdfToImage.title=PDF a Imagen
|
||||||
home.pdfToImage.desc=Convierte un PDF a una imagen. (PNG, JPEG, GIF)
|
home.pdfToImage.desc=Convertir un PDF a una imagen. (PNG, JPEG, GIF)
|
||||||
|
|
||||||
home.pdfOrganiser.title=Organizador
|
home.pdfOrganiser.title=Organizador
|
||||||
home.pdfOrganiser.desc=Elimina/Reorganiza páginas en cualquier orden
|
home.pdfOrganiser.desc=Eliminar/Reorganizar páginas en cualquier orden
|
||||||
|
|
||||||
home.addImage.title=Agregar imagen al PDF
|
home.addImage.title=Agregar imagen al PDF
|
||||||
home.addImage.desc=Agrega una imagen en una ubicación establecida en el PDF (trabajo en progreso)
|
home.addImage.desc=Agregar una imagen en una ubicación establecida en el PDF (trabajo en progreso)
|
||||||
|
|
||||||
home.watermark.title=Añade marca de agua
|
home.watermark.title=Añadir marca de agua
|
||||||
home.watermark.desc=Añade una marca de agua predefinida a tu documento PDF.
|
home.watermark.desc=Añadir una marca de agua predefinida a tu documento PDF.
|
||||||
|
|
||||||
home.remove-watermark.title=Elimina marca de agua
|
home.remove-watermark.title=Eliminar marca de agua
|
||||||
home.remove-watermark.desc=Elimina marcas de agua de tu documento PDF.
|
home.remove-watermark.desc=Eliminar marcas de agua de tu documento PDF.
|
||||||
|
|
||||||
home.permissions.title=Cambia Permisos
|
home.permissions.title=Cambiar Permisos
|
||||||
home.permissions.desc=Cambia los permisos de tu documento PDF
|
home.permissions.desc=Cambiar los permisos de tu documento PDF
|
||||||
|
|
||||||
home.removePages.title=Elimina
|
home.removePages.title=Eliminar
|
||||||
home.removePages.desc=Elimina páginas no deseadas de tu documento PDF.
|
home.removePages.desc=Eliminar páginas no deseadas de tu documento PDF.
|
||||||
|
|
||||||
home.addPassword.title=Añade Contraseña
|
home.addPassword.title=Añadir Contraseña
|
||||||
home.addPassword.desc=Encripta tu documento PDF con una contraseña.
|
home.addPassword.desc=Encriptar el documento PDF con una contraseña.
|
||||||
|
|
||||||
home.removePassword.title=Elimina Contraseña
|
home.removePassword.title=Eliminar Contraseña
|
||||||
home.removePassword.desc=Elimina la contraseña de tu documento PDF.
|
home.removePassword.desc=Eliminar la contraseña del documento PDF.
|
||||||
|
|
||||||
home.compressPdfs.title=Comprime
|
home.compressPdfs.title=Comprimir
|
||||||
home.compressPdfs.desc=Comprime PDFs para reducir el tamaño del fichero.
|
home.compressPdfs.desc=Comprimir PDFs para reducir el tamaño del fichero.
|
||||||
|
|
||||||
home.changeMetadata.title=Cambia Metadatos
|
home.changeMetadata.title=Cambiar Metadatos
|
||||||
home.changeMetadata.desc=Cambia/Elimina/Añade metadatos a tu documento PDF.
|
home.changeMetadata.desc=Cambiar/Eliminar/Añadir metadatos al documento PDF.
|
||||||
|
|
||||||
home.fileToPDF.title=Convierte fichero a PDF
|
home.fileToPDF.title=Convertir fichero a PDF
|
||||||
home.fileToPDF.desc=Convierte casi cualquier archivo a PDF (DOCX, PNG, XLS, PPT, TXT y más)
|
home.fileToPDF.desc=Convertir casi cualquier archivo a PDF (DOCX, PNG, XLS, PPT, TXT y más)
|
||||||
|
|
||||||
home.ocr.title=Ejecute OCR en PDF y/o escaneos de limpieza
|
home.ocr.title=Ejecutar OCR en PDF y/o escaneos de limpieza
|
||||||
home.ocr.desc=Escaneos de limpieza y detecta texto de imágenes dentro de un PDF y lo vuelve a agregar como texto.
|
home.ocr.desc=Escaneos de limpieza y detecta texto de imágenes dentro de un PDF y lo vuelve a agregar como texto.
|
||||||
|
|
||||||
home.extractImages.title=Extraer imágenes
|
home.extractImages.title=Extraer imágenes
|
||||||
home.extractImages.desc=Extrae todas las imágenes de un PDF y las guarda en zip
|
home.extractImages.desc=Extraer todas las imágenes de un PDF y guardarlas en zip
|
||||||
|
|
||||||
home.pdfToPDFA.title=Convierte PDF to PDF/A
|
home.pdfToPDFA.title=Convertir PDF a PDF/A
|
||||||
home.pdfToPDFA.desc=Convierte PDF to PDF/A para almacenamiento a largo plazo
|
home.pdfToPDFA.desc=Convertir PDF a PDF/A para almacenamiento a largo plazo
|
||||||
|
|
||||||
home.PDFToWord.title=PDF a Word
|
home.PDFToWord.title=PDF a Word
|
||||||
home.PDFToWord.desc=Convertir formatos PDF a Word (DOC, DOCX y ODT)
|
home.PDFToWord.desc=Convertir formatos PDF a Word (DOC, DOCX y ODT)
|
||||||
@@ -97,8 +97,8 @@ home.PDFToWord.desc=Convertir formatos PDF a Word (DOC, DOCX y ODT)
|
|||||||
home.PDFToPresentation.title=PDF a presentación
|
home.PDFToPresentation.title=PDF a presentación
|
||||||
home.PDFToPresentation.desc=Convertir PDF a formatos de presentación (PPT, PPTX y ODP)
|
home.PDFToPresentation.desc=Convertir PDF a formatos de presentación (PPT, PPTX y ODP)
|
||||||
|
|
||||||
home.PDFToText.title=PDF a texto/RTF
|
home.PDFToText.title=PDF a TXT o RTF
|
||||||
home.PDFToText.desc=Convertir PDF a texto o formato RTF
|
home.PDFToText.desc=Convertir PDF a formato TXT o RTF
|
||||||
|
|
||||||
home.PDFToHTML.title=PDF a HTML
|
home.PDFToHTML.title=PDF a HTML
|
||||||
home.PDFToHTML.desc=Convertir PDF a formato HTML
|
home.PDFToHTML.desc=Convertir PDF a formato HTML
|
||||||
@@ -119,7 +119,7 @@ home.repair.title=Reparar
|
|||||||
home.repair.desc=Intenta reparar un PDF corrupto/roto
|
home.repair.desc=Intenta reparar un PDF corrupto/roto
|
||||||
|
|
||||||
home.removeBlanks.title=Eliminar páginas en blanco
|
home.removeBlanks.title=Eliminar páginas en blanco
|
||||||
home.removeBlanks.desc=Detecta y elimina páginas en blanco de un documento
|
home.removeBlanks.descdetecta y elimina páginas en blanco de un documento
|
||||||
|
|
||||||
home.compare.title=Comparar
|
home.compare.title=Comparar
|
||||||
home.compare.desc=Compara y muestra las diferencias entre 2 documentos PDF
|
home.compare.desc=Compara y muestra las diferencias entre 2 documentos PDF
|
||||||
@@ -127,11 +127,27 @@ home.compare.desc=Compara y muestra las diferencias entre 2 documentos PDF
|
|||||||
downloadPdf=Descargar PDF
|
downloadPdf=Descargar PDF
|
||||||
text=Texto
|
text=Texto
|
||||||
font=Fuente
|
font=Fuente
|
||||||
|
selectFilter=-- Seleccionar --
|
||||||
|
pageNum=Número de página
|
||||||
|
|
||||||
|
certSign.title=Firma de certificado
|
||||||
|
certSign.header=Firme un PDF con su certificado (Trabajo en progreso)
|
||||||
|
certSign.selectPDF=Seleccione un archivo PDF para firmar:
|
||||||
|
certSign.selectKey=Seleccione su archivo de clave privada (formato PKCS#8, podría ser .pem o .der):
|
||||||
|
certSign.selectCert=Seleccione su archivo de certificado (formato X.509, podría ser .pem o .der):
|
||||||
|
certSign.selectP12=Seleccione su archivo de almacén de claves PKCS#12 (.p12 o .pfx) (Opcional, si se proporciona, debe contener su clave privada y certificado):
|
||||||
|
certSign.certType=Tipo de certificado
|
||||||
|
certSign.password=Ingrese su almacén de claves o contraseña de clave privada (si corresponde):
|
||||||
|
certSign.showSig=Mostrar firma
|
||||||
|
certSign.reason=Razón
|
||||||
|
certSign.location=Ubicación
|
||||||
|
certSign.name=Nombre
|
||||||
|
certSign.submit=Firmar PDF
|
||||||
|
|
||||||
removeBlanks.title=Eliminar espacios en blanco
|
removeBlanks.title=Eliminar espacios en blanco
|
||||||
removeBlanks.header=Eliminar páginas en blanco
|
removeBlanks.header=Eliminar páginas en blanco
|
||||||
removeBlanks.threshold=Umbral:
|
removeBlanks.threshold=Umbral:
|
||||||
removeBlanks.thresholdDesc=Umbral para determinar qué tan blanco debe ser un píxel blanco
|
removeBlanks.thresholdDesc=Umbral para determinar cuán blanco debe ser un píxel blanco
|
||||||
removeBlanks.whitePercent=Porcentaje de blanco (%):
|
removeBlanks.whitePercent=Porcentaje de blanco (%):
|
||||||
removeBlanks.whitePercentDesc=Porcentaje de página que debe ser blanca para ser eliminada
|
removeBlanks.whitePercentDesc=Porcentaje de página que debe ser blanca para ser eliminada
|
||||||
removeBlanks.submit=Eliminar espacios en blanco
|
removeBlanks.submit=Eliminar espacios en blanco
|
||||||
@@ -172,12 +188,12 @@ ScannerImageSplit.selectText.10=Establece el tamaño del borde agregado y elimin
|
|||||||
navbar.settings=Ajustes
|
navbar.settings=Ajustes
|
||||||
settings.title=Ajustes
|
settings.title=Ajustes
|
||||||
settings.update=Actualización disponible
|
settings.update=Actualización disponible
|
||||||
settings.appVersion=Version de la aplicacion:
|
settings.appVersion=Versión de la aplicación:
|
||||||
settings.downloadOption.title=Elija la opción de descarga (para descargas de un solo archivo sin zip):
|
settings.downloadOption.title=Elige la opción de descarga (para descargas de un solo archivo sin ZIP):
|
||||||
settings.downloadOption.1=Abre en la misma ventana
|
settings.downloadOption.1=Abre en la misma ventana
|
||||||
settings.downloadOption.2=Abre en una nueva ventana
|
settings.downloadOption.2=Abre en una nueva ventana
|
||||||
settings.downloadOption.3=Descarga el fichero
|
settings.downloadOption.3=Descarga el fichero
|
||||||
settings.zipThreshold=Ficheros Zip cuando excede el número de ficheros descargados
|
settings.zipThreshold=Ficheros ZIP cuando excede el número de ficheros descargados
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -213,55 +229,53 @@ extractImages.submit=Extraer
|
|||||||
fileToPDF.title=Fichero a PDF
|
fileToPDF.title=Fichero a PDF
|
||||||
fileToPDF.header=Convierte cualquier fichero a PDF
|
fileToPDF.header=Convierte cualquier fichero a PDF
|
||||||
fileToPDF.credit=Este servicio usa LibreOffice y Unoconv para la conversión de ficheros.
|
fileToPDF.credit=Este servicio usa LibreOffice y Unoconv para la conversión de ficheros.
|
||||||
fileToPDF.supportedFileTypes=Los tipos de ficheros soportados deben incluir los de abajo sin embargo para una completa y acutualizada lista de formatos soportados, por favor consulte la documentación de LibreOffice
|
fileToPDF.supportedFileTypes=Los tipos de ficheros soportados deben incluir los de abajo; sin embargo para una completa y acutualizada lista de formatos soportados, por favor consulte la documentación de LibreOffice
|
||||||
fileToPDF.submit=Convertir a PDF
|
fileToPDF.submit=Convertir a PDF
|
||||||
|
|
||||||
|
|
||||||
#compress
|
#compress
|
||||||
compress.title=Comprimir
|
compress.title=Comprimir
|
||||||
compress.header=Comprimir PDF
|
compress.header=Comprimir PDF
|
||||||
compress.credit=Este servicio usa OCRmyPDF para la Compresión/Optimizatión del PDF.
|
compress.credit=Este servicio utiliza Ghostscript para compresión/optimización de PDF.
|
||||||
compress.selectText.1=Nivel de Optimización:
|
compress.selectText.1=Modo manual - De 1 a 4
|
||||||
compress.selectText.2=0 (Sin optimización)
|
compress.selectText.2=Nivel de optimización:
|
||||||
compress.selectText.3=1 (Por defecto, optimización sin pérdidas)
|
compress.selectText.3=4 (Terrible para imágenes de texto)
|
||||||
compress.selectText.4=2 (Optimización con pérdida)
|
compress.selectText.4=Modo automático: ajusta automáticamente la calidad para que el PDF tenga el tamaño exacto
|
||||||
compress.selectText.5=3 (Optimización con pérdida, más agresiva)
|
compress.selectText.5=Tamaño de PDF esperado (por ejemplo, 25 MB, 10,8 MB, 25 KB)
|
||||||
compress.selectText.6=Habilita la vista web rápida (linealizar PDF)
|
|
||||||
compress.selectText.7=Habilita la codificación JBIG2 con pérdida
|
|
||||||
compress.submit=Comprimir
|
compress.submit=Comprimir
|
||||||
|
|
||||||
|
|
||||||
#Add image
|
#Add image
|
||||||
addImage.title=Añade Imagen
|
addImage.title=Añadir Imagen
|
||||||
addImage.header=Añade image de PDF
|
addImage.header=Añadir image de PDF
|
||||||
addImage.everyPage=¿Todas las páginas?
|
addImage.everyPage=¿Todas las páginas?
|
||||||
addImage.submit=Añade imagen
|
addImage.submit=Añadir imagen
|
||||||
|
|
||||||
|
|
||||||
#merge
|
#merge
|
||||||
merge.title=Une
|
merge.title=Unir
|
||||||
merge.header=Une múltiples PDFs (2+)
|
merge.header=Unir múltiples PDFs (2+)
|
||||||
merge.submit=Une
|
merge.submit=Unir
|
||||||
|
|
||||||
#pdfOrganiser
|
#pdfOrganiser
|
||||||
pdfOrganiser.title=Organizador de páginas
|
pdfOrganiser.title=Organizador de páginas
|
||||||
pdfOrganiser.header=Organizador de páginas PDF
|
pdfOrganiser.header=Organizador de páginas PDF
|
||||||
pdfOrganiser.submit=Organiza páginas
|
pdfOrganiser.submit=Organizar páginas
|
||||||
|
|
||||||
#herramienta multiple
|
#herramienta multiple
|
||||||
multiTool.title=Multiherramienta PDF
|
multiTool.title=Multi-herramienta PDF
|
||||||
multiTool.header=Multiherramienta PDF
|
multiTool.header=Multi-herramienta PDF
|
||||||
|
|
||||||
#pageRemover
|
#pageRemover
|
||||||
pageRemover.title=Eliminador de páginas
|
pageRemover.title=Eliminador de páginas
|
||||||
pageRemover.header=Eliminador de páginas PDF
|
pageRemover.header=Eliminador de páginas PDF
|
||||||
pageRemover.pagesToDelete=Páginas a eliminar (Introduzca una lista de números de página separados por coma):
|
pageRemover.pagesToDelete=Páginas a eliminar (Introduzca una lista de números de página separados por coma):
|
||||||
pageRemover.submit=Elimina Páginas
|
pageRemover.submit=Eliminar Páginas
|
||||||
|
|
||||||
#rotate
|
#rotate
|
||||||
rotate.title=Rotar PDF
|
rotate.title=Rotar PDF
|
||||||
rotate.header=Rotar PDF
|
rotate.header=Rotar PDF
|
||||||
rotate.SeleccionaAngle=Selecciona ángulo de rotación (múltiple de 90 grados):
|
rotate.SeleccionaAngle=Seleccionar ángulo de rotación (múltiple de 90 grados):
|
||||||
rotate.submit=Rotar
|
rotate.submit=Rotar
|
||||||
|
|
||||||
|
|
||||||
@@ -270,7 +284,7 @@ rotate.submit=Rotar
|
|||||||
#merge
|
#merge
|
||||||
split.title=Dividir PDF
|
split.title=Dividir PDF
|
||||||
split.header=Dividir PDF
|
split.header=Dividir PDF
|
||||||
split.desc.1=Los números que selecciona son el número de página en el que desea hacer una división
|
split.desc.1=Los números que selecciones son el número de página en el que desea hacer una división
|
||||||
split.desc.2=Como tal, seleccionar 1,3,7-8 dividiría un documento de 10 páginas en 6 archivos PDF separados con:
|
split.desc.2=Como tal, seleccionar 1,3,7-8 dividiría un documento de 10 páginas en 6 archivos PDF separados con:
|
||||||
split.desc.3=Documento #1: Página 1
|
split.desc.3=Documento #1: Página 1
|
||||||
split.desc.4=Documento #2: Páginas 2 y 3
|
split.desc.4=Documento #2: Páginas 2 y 3
|
||||||
@@ -278,7 +292,7 @@ split.desc.5=Documento #3: Páginas 4, 5 y 6
|
|||||||
split.desc.6=Documento #4: Página 7
|
split.desc.6=Documento #4: Página 7
|
||||||
split.desc.7=Documento #5: Página 8
|
split.desc.7=Documento #5: Página 8
|
||||||
split.desc.8=Documento #6: Páginas 9 y 10
|
split.desc.8=Documento #6: Páginas 9 y 10
|
||||||
split.splitPages=Introduzca las páginas para dividir:
|
split.splitPages=Introduce las páginas para dividir:
|
||||||
split.submit=Dividir
|
split.submit=Dividir
|
||||||
|
|
||||||
|
|
||||||
@@ -287,9 +301,9 @@ imageToPDF.title=Imagen a PDF
|
|||||||
imageToPDF.header=Imagen a PDF
|
imageToPDF.header=Imagen a PDF
|
||||||
imageToPDF.submit=Convertir
|
imageToPDF.submit=Convertir
|
||||||
imageToPDF.selectText.1=Estirar para ajustar
|
imageToPDF.selectText.1=Estirar para ajustar
|
||||||
imageToPDF.selectText.2=Auto rotación PDF
|
imageToPDF.selectText.2=Rotación automática del PDF
|
||||||
imageToPDF.selectText.3=Lógica de archivos múltiples (Únicamente activado si funciona con multiples imágenes)
|
imageToPDF.selectText.3=Lógica de archivos múltiples (Únicamente activado si funciona con multiples imágenes)
|
||||||
imageToPDF.selectText.4=Une en un único PDF
|
imageToPDF.selectText.4=Unir en un único archivo PDF
|
||||||
imageToPDF.selectText.5=Convertir a PDFs separados
|
imageToPDF.selectText.5=Convertir a PDFs separados
|
||||||
|
|
||||||
#pdfToImage
|
#pdfToImage
|
||||||
@@ -297,7 +311,7 @@ pdfToImage.title=PDF a Imagen
|
|||||||
pdfToImage.header=PDF a Imagen
|
pdfToImage.header=PDF a Imagen
|
||||||
pdfToImage.selectText=Formato de Imagen
|
pdfToImage.selectText=Formato de Imagen
|
||||||
pdfToImage.singleOrMultiple=Tipo resultante de imagen
|
pdfToImage.singleOrMultiple=Tipo resultante de imagen
|
||||||
pdfToImage.single=Imagen Grande Única
|
pdfToImage.single=Una Imagen Grande Única
|
||||||
pdfToImage.multi=Múltiples Imágenes
|
pdfToImage.multi=Múltiples Imágenes
|
||||||
pdfToImage.colorType=Tipo de color
|
pdfToImage.colorType=Tipo de color
|
||||||
pdfToImage.color=Color
|
pdfToImage.color=Color
|
||||||
@@ -306,9 +320,9 @@ pdfToImage.blackwhite=Blanco y Negro (¡Puedes perder datos!)
|
|||||||
pdfToImage.submit=Convertir
|
pdfToImage.submit=Convertir
|
||||||
|
|
||||||
#addPassword
|
#addPassword
|
||||||
addPassword.title=Añade Contraseña
|
addPassword.title=Añadir Contraseña
|
||||||
addPassword.header=Añade contraseña (Encripta)
|
addPassword.header=Añadir contraseña (Encriptar)
|
||||||
addPassword.selectText.1=Selecciona PDF para encriptar
|
addPassword.selectText.1=Seleccionar PDF para encriptar
|
||||||
addPassword.selectText.2=Contraseña
|
addPassword.selectText.2=Contraseña
|
||||||
addPassword.selectText.3=Longitud de la clave de cifrado
|
addPassword.selectText.3=Longitud de la clave de cifrado
|
||||||
addPassword.selectText.4=Valores altos son más fuertes, pero valores bajos tienen mejor compatibilidad.
|
addPassword.selectText.4=Valores altos son más fuertes, pero valores bajos tienen mejor compatibilidad.
|
||||||
@@ -321,32 +335,32 @@ addPassword.selectText.10=Impedir modificación
|
|||||||
addPassword.selectText.11=Impedir modificación de anotaciones
|
addPassword.selectText.11=Impedir modificación de anotaciones
|
||||||
addPassword.selectText.12=Impedir imprimir
|
addPassword.selectText.12=Impedir imprimir
|
||||||
addPassword.selectText.13=Impedir imprimir diferentes formatos
|
addPassword.selectText.13=Impedir imprimir diferentes formatos
|
||||||
addPassword.submit=Encripta
|
addPassword.submit=Encriptar
|
||||||
|
|
||||||
#watermark
|
#watermark
|
||||||
watermark.title=Añade marca de agua
|
watermark.title=Añadir marca de agua
|
||||||
watermark.header=Añade marca de agua
|
watermark.header=Añadir marca de agua
|
||||||
watermark.selectText.1=Selecciona PDF para añadir marca de agua:
|
watermark.selectText.1=Seleccionar PDF para añadir marca de agua:
|
||||||
watermark.selectText.2=Texto de la marca de agua:
|
watermark.selectText.2=Texto de la marca de agua:
|
||||||
watermark.selectText.3=Tamaño de la Fuente:
|
watermark.selectText.3=Tamaño de la Fuente:
|
||||||
watermark.selectText.4=Rotación (0-360):
|
watermark.selectText.4=Rotación (0-360):
|
||||||
watermark.selectText.5=Ancho (Espacio entre cada marca de agua horizontalmente):
|
watermark.selectText.5=Ancho (Espacio entre cada marca de agua horizontalmente):
|
||||||
watermark.selectText.6=Alto (Espacio entre cada marca de agua verticalmente):
|
watermark.selectText.6=Alto (Espacio entre cada marca de agua verticalmente):
|
||||||
watermark.selectText.7=Opacidad (0% - 100%):
|
watermark.selectText.7=Opacidad (0% - 100%):
|
||||||
watermark.submit=Añade marca de agua
|
watermark.submit=Añadir marca de agua
|
||||||
|
|
||||||
#remove-watermark
|
#remove-watermark
|
||||||
remove-watermark.title=Elimina marca de agua
|
remove-watermark.title=Eliminar marca de agua
|
||||||
remove-watermark.header=Elimina marca de agua
|
remove-watermark.header=Eliminar marca de agua
|
||||||
remove-watermark.selectText.1=Selecciona PDF para eliminar la marca de agua:
|
remove-watermark.selectText.1=Seleccionar PDF para eliminar la marca de agua:
|
||||||
remove-watermark.selectText.2=Texto de la marca de agua:
|
remove-watermark.selectText.2=Texto de la marca de agua:
|
||||||
remove-watermark.submit=Elimina marca de agua
|
remove-watermark.submit=Eliminar marca de agua
|
||||||
|
|
||||||
#Change permissions
|
#Change permissions
|
||||||
permissions.title=Cambiar Permisos
|
permissions.title=Cambiar Permisos
|
||||||
permissions.header=Cambiar Permisos
|
permissions.header=Cambiar Permisos
|
||||||
permissions.warning=Advertencia para que estos permisos no se puedan cambiar, se recomienda configurarlos con una contraseña a través de la página de cambio de contraseña
|
permissions.warning=Advertencia: para que estos permisos no se puedan cambiar, se recomienda configurarlos con una contraseña a través de la página de cambio de contraseña
|
||||||
permissions.selectText.1=Selecciona PDF para cambiar los permisos
|
permissions.selectText.1=Seleccionar PDF para cambiar los permisos
|
||||||
permissions.selectText.2=Permisos a establecer
|
permissions.selectText.2=Permisos a establecer
|
||||||
permissions.selectText.3=Impedir el ensamblaje del documento
|
permissions.selectText.3=Impedir el ensamblaje del documento
|
||||||
permissions.selectText.4=Impedir la extracción de contenido
|
permissions.selectText.4=Impedir la extracción de contenido
|
||||||
@@ -359,34 +373,34 @@ permissions.selectText.10=Impedir imprimir diferentes formatos
|
|||||||
permissions.submit=Cambiar
|
permissions.submit=Cambiar
|
||||||
|
|
||||||
#remove password
|
#remove password
|
||||||
removePassword.title=Elimina contraseña
|
removePassword.title=Eliminar contraseña
|
||||||
removePassword.header=Elimina contraseña (Desencripta)
|
removePassword.header=Eliminar contraseña (Desencriptar)
|
||||||
removePassword.selectText.1=Selecciona PDF para Desencriptar
|
removePassword.selectText.1=Seleccionar PDF para Desencriptar
|
||||||
removePassword.selectText.2=Contraseña
|
removePassword.selectText.2=Contraseña
|
||||||
removePassword.submit=Elimina
|
removePassword.submit=Eliminar
|
||||||
|
|
||||||
changeMetadata.title=Cambia Metadatos
|
changeMetadata.title=Cambiar Metadatos
|
||||||
changeMetadata.header=Cambia Metadatos
|
changeMetadata.header=Cambiar Metadatos
|
||||||
changeMetadata.selectText.1=Edite las variables que desea cambiar
|
changeMetadata.selectText.1=Editar las variables que desea cambiar
|
||||||
changeMetadata.selectText.2=Elimina todos los metadatos
|
changeMetadata.selectText.2=Eliminar todos los metadatos
|
||||||
changeMetadata.selectText.3=Mostrar metadatos personalizados:
|
changeMetadata.selectText.3=Mostrar metadatos personalizados:
|
||||||
changeMetadata.author=Autor:
|
changeMetadata.author=Autor:
|
||||||
changeMetadata.creationDate=Fecha de Creación (yyyy/MM/dd HH:mm:ss):
|
changeMetadata.creationDate=Fecha de Creación (aaaa/MM/dd HH:mm:ss):
|
||||||
changeMetadata.creator=Creador:
|
changeMetadata.creator=Creador:
|
||||||
changeMetadata.keywords=Palabras clave:
|
changeMetadata.keywords=Palabras clave:
|
||||||
changeMetadata.modDate=Fecha de Modificación (yyyy/MM/dd HH:mm:ss):
|
changeMetadata.modDate=Fecha de Modificación (aaaa/MM/dd HH:mm:ss):
|
||||||
changeMetadata.producer=Productor:
|
changeMetadata.producer=Productor:
|
||||||
changeMetadata.subject=Asunto:
|
changeMetadata.subject=Asunto:
|
||||||
changeMetadata.title=Título:
|
changeMetadata.title=Título:
|
||||||
changeMetadata.trapped=Trapped:
|
changeMetadata.trapped=Trapped:
|
||||||
changeMetadata.selectText.4=Otros Metadatos:
|
changeMetadata.selectText.4=Otros Metadatos:
|
||||||
changeMetadata.selectText.5=Agregar entrada de metadatos personalizados
|
changeMetadata.selectText.5=Agregar entrada de metadatos personalizados
|
||||||
changeMetadata.submit=Cambia
|
changeMetadata.submit=Cambiar
|
||||||
|
|
||||||
xlsToPdf.title=Excel a PDF
|
xlsToPdf.title=Excel a PDF
|
||||||
xlsToPdf.header=Excel a PDF
|
xlsToPdf.header=Excel a PDF
|
||||||
xlsToPdf.selectText.1=Selecciona hoja de cálculo de Excel XLS o XLSX para convertir
|
xlsToPdf.selectText.1=Seleccionar hoja de cálculo de Excel XLS o XLSX para convertir
|
||||||
xlsToPdf.convert=convertir
|
xlsToPdf.convert=Convertir
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -411,8 +425,8 @@ PDFToPresentation.credit=Este servicio utiliza LibreOffice para la conversión d
|
|||||||
PDFToPresentation.submit=Convertir
|
PDFToPresentation.submit=Convertir
|
||||||
|
|
||||||
|
|
||||||
PDFToText.title=PDF a texto/RTF
|
PDFToText.title=PDF a TXT/RTF
|
||||||
PDFToText.header=PDF a texto/RTF
|
PDFToText.header=PDF a TXT/RTF
|
||||||
PDFToText.selectText.1=Formato de archivo de salida
|
PDFToText.selectText.1=Formato de archivo de salida
|
||||||
PDFToText.credit=Este servicio utiliza LibreOffice para la conversión de archivos.
|
PDFToText.credit=Este servicio utiliza LibreOffice para la conversión de archivos.
|
||||||
PDFToText.submit=Convertir
|
PDFToText.submit=Convertir
|
||||||
|
|||||||
@@ -133,6 +133,22 @@ home.compare.desc=Compare et affiche les différences entre 2 documents PDF
|
|||||||
downloadPdf=Télécharger le PDF
|
downloadPdf=Télécharger le PDF
|
||||||
text=Texte
|
text=Texte
|
||||||
font=Police
|
font=Police
|
||||||
|
selectFilter=-- Sélectionner --
|
||||||
|
pageNum=numéro de page
|
||||||
|
|
||||||
|
certSign.title=Signature du certificat
|
||||||
|
certSign.header=Signer un PDF avec votre certificat (Travail en cours)
|
||||||
|
certSign.selectPDF=Sélectionnez un fichier PDF à signer :
|
||||||
|
certSign.selectKey=Sélectionnez votre fichier de clé privée (format PKCS#8, peut être .pem ou .der) :
|
||||||
|
certSign.selectCert=Sélectionnez votre fichier de certificat (format X.509, peut être .pem ou .der) :
|
||||||
|
certSign.selectP12=Sélectionnez votre fichier de magasin de clés PKCS#12 (.p12 ou .pfx) (facultatif, s'il est fourni, il doit contenir votre clé privée et votre certificat) :
|
||||||
|
certSign.certType=Type de certificat
|
||||||
|
certSign.password=Entrez votre mot de passe de keystore ou de clé privée (le cas échéant) :
|
||||||
|
certSign.showSig=Afficher la signature
|
||||||
|
certSign.reason=Raison
|
||||||
|
certSign.location=Emplacement
|
||||||
|
certSign.name=Nom
|
||||||
|
certSign.submit=Signer le PDF
|
||||||
|
|
||||||
removeBlanks.title=Supprimer les blancs
|
removeBlanks.title=Supprimer les blancs
|
||||||
removeBlanks.header=Supprimer les pages vierges
|
removeBlanks.header=Supprimer les pages vierges
|
||||||
@@ -229,14 +245,12 @@ addImage.submit=Ajouter une image
|
|||||||
#compress
|
#compress
|
||||||
compress.title=Compresser
|
compress.title=Compresser
|
||||||
compress.header=Compresser le PDF
|
compress.header=Compresser le PDF
|
||||||
compress.credit=Ce service utilise OCRmyPDF pour la compression/optimisation PDF.
|
compress.credit=Ce service utilise Ghostscript pour PDF Compress/Optimisation.
|
||||||
compress.selectText.1=Niveau d'optimisation :
|
compress.selectText.1=Mode manuel - De 1 à 4
|
||||||
compress.selectText.2=0 (pas d'optimisation)
|
compress.selectText.2=Niveau d'optimisation :
|
||||||
compress.selectText.3=1 (par défaut, optimisation sans perte)
|
compress.selectText.3=4 (Terrible pour les images de texte)
|
||||||
compress.selectText.4=2 (optimisation avec perte)
|
compress.selectText.4=Mode automatique - Ajuste automatiquement la qualité pour obtenir le PDF à la taille exacte
|
||||||
compress.selectText.5=3 (optimisation avec perte, plus agressive)
|
compress.selectText.5=Taille PDF attendue (par exemple, 25 Mo, 10,8 Mo, 25 Ko)
|
||||||
compress.selectText.6=Activer l'affichage Web rapide (linéariser PDF)
|
|
||||||
compress.selectText.7=Activer l'encodage JBIG2 avec perte
|
|
||||||
compress.submit=Compresser
|
compress.submit=Compresser
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,22 @@ home.compare.desc=Vedi e compara le differenze tra due PDF.
|
|||||||
downloadPdf=Scarica PDF
|
downloadPdf=Scarica PDF
|
||||||
text=Testo
|
text=Testo
|
||||||
font=Font
|
font=Font
|
||||||
|
selectFillter=-- Seleziona --
|
||||||
|
pageNum=Numero pagina
|
||||||
|
|
||||||
|
certSign.title=Firma del certificato
|
||||||
|
certSign.header=Firma un PDF con il tuo certificato (Lavoro in corso)
|
||||||
|
certSign.selectPDF=Seleziona un file PDF per la firma:
|
||||||
|
certSign.selectKey=Seleziona il file della tua chiave privata (formato PKCS#8, potrebbe essere .pem o .der):
|
||||||
|
certSign.selectCert=Seleziona il tuo file di certificato (formato X.509, potrebbe essere .pem o .der):
|
||||||
|
certSign.selectP12=Selezionare il file keystore PKCS#12 (.p12 o .pfx) (facoltativo, se fornito, dovrebbe contenere la chiave privata e il certificato):
|
||||||
|
certSign.certType=Tipo di certificato
|
||||||
|
certSign.password=Inserisci la tua password dell'archivio chiavi o della chiave privata (se presente):
|
||||||
|
certSign.showSig=Mostra firma
|
||||||
|
certSign.reason=Motivo
|
||||||
|
certSign.location=Posizione
|
||||||
|
certSign.name=Nome
|
||||||
|
certSign.submit=Firma PDF
|
||||||
|
|
||||||
removeBlanks.title=Rimuovi spazi vuoti
|
removeBlanks.title=Rimuovi spazi vuoti
|
||||||
removeBlanks.header=Rimuovi pagine vuote
|
removeBlanks.header=Rimuovi pagine vuote
|
||||||
@@ -222,17 +238,14 @@ fileToPDF.submit=Converti in PDF
|
|||||||
#compress
|
#compress
|
||||||
compress.title=Comprimi
|
compress.title=Comprimi
|
||||||
compress.header=Comprimi PDF
|
compress.header=Comprimi PDF
|
||||||
compress.credit=Questo servizio utilizza OCRmyPDF per la compressione e ottimizzazione.
|
compress.credit=Questo servizio utilizza Ghostscript per la compressione/ottimizzazione dei PDF.
|
||||||
compress.selectText.1=Livello di ottimizzazione:
|
compress.selectText.1=Modalità manuale - Da 1 a 4
|
||||||
compress.selectText.2=0 (Nessuna compressione)
|
compress.selectText.2=Livello di ottimizzazione:
|
||||||
compress.selectText.3=1 (Default, nessuna perdita di qualità)
|
compress.selectText.3=4 (Terribile per le immagini di testo)
|
||||||
compress.selectText.4=2 (Perdita di qualità)
|
compress.selectText.4=Modalità automatica - Regola automaticamente la qualità per ottenere le dimensioni esatte del PDF
|
||||||
compress.selectText.5=3 (Perdita di qualità, più aggressivo)
|
compress.selectText.5=Dimensioni PDF previste (ad es. 25 MB, 10,8 MB, 25 KB)
|
||||||
compress.selectText.6=Visualizzazione rapida sul web (linearizza PDF)
|
|
||||||
compress.selectText.7=Attiva codifica JBIG2 (lossy)
|
|
||||||
compress.submit=Comprimi
|
compress.submit=Comprimi
|
||||||
|
|
||||||
|
|
||||||
#Add image
|
#Add image
|
||||||
addImage.title=Aggiungi Immagine
|
addImage.title=Aggiungi Immagine
|
||||||
addImage.header=Aggiungi un'immagine ad un PDF.
|
addImage.header=Aggiungi un'immagine ad un PDF.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ language.direction=ltr
|
|||||||
|
|
||||||
pdfPrompt=Wybierz PDF
|
pdfPrompt=Wybierz PDF
|
||||||
multiPdfPrompt=Wybierz PDF (2+)
|
multiPdfPrompt=Wybierz PDF (2+)
|
||||||
multiPdfDropPrompt=Wybierz (lub przeciągnij i puść) wszystkie pliki PDF
|
multiPdfDropPrompt=Wybierz (lub przeciągnij i puść) wszystkie dokumenty PDF
|
||||||
imgPrompt=Wybierz obraz(y)
|
imgPrompt=Wybierz obraz(y)
|
||||||
genericSubmit=Wyślij
|
genericSubmit=Wyślij
|
||||||
processTimeWarning=Ostrzeżenie: Ten proces może potrwać do minuty, w zależności od rozmiaru pliku
|
processTimeWarning=Ostrzeżenie: Ten proces może potrwać do minuty, w zależności od rozmiaru pliku
|
||||||
@@ -23,29 +23,29 @@ bored=Znudzony czekaniem?
|
|||||||
#############
|
#############
|
||||||
# HOME-PAGE #
|
# HOME-PAGE #
|
||||||
#############
|
#############
|
||||||
home.desc=Twoja lokalna aplikacja do kompleksowej obsługi Twoich potrzeb związanych z plikami PDF.
|
home.desc=Twoja lokalna aplikacja do kompleksowej obsługi Twoich potrzeb związanych z dokumentami PDF.
|
||||||
|
|
||||||
|
|
||||||
navbar.convert=Konwertuj
|
navbar.convert=Konwertuj
|
||||||
navbar.security=Bezpieczeństwo
|
navbar.security=Bezpieczeństwo
|
||||||
navbar.other=Inne
|
navbar.other=Inne
|
||||||
navbar.darkmode=Tryb nocny
|
navbar.darkmode=Tryb nocny
|
||||||
navbar.pageOps=Operacje strony
|
navbar.pageOps=Strony
|
||||||
|
|
||||||
home.multiTool.title=Wielofunkcyjne narzędzie PDF
|
home.multiTool.title=Multi narzędzie PDF
|
||||||
home.multiTool.desc=Łącz, dziel, obracaj, zmieniaj kolejność i usuwaj strony
|
home.multiTool.desc=Łącz, dziel, obracaj, zmieniaj kolejność i usuwaj strony
|
||||||
|
|
||||||
home.merge.title=Połącz
|
home.merge.title=Połącz
|
||||||
home.merge.desc=Łatwe łączenie wielu plików PDF w jeden.
|
home.merge.desc=Łatwe łączenie wielu dokumentów PDF w jeden.
|
||||||
|
|
||||||
home.split.title=Podziel
|
home.split.title=Podziel
|
||||||
home.split.desc=Podziel pliki PDF na wiele dokumentów
|
home.split.desc=Podziel dokument PDF na wiele dokumentów
|
||||||
|
|
||||||
home.rotate.title=Obróć
|
home.rotate.title=Obróć
|
||||||
home.rotate.desc=Łatwo obracaj pliki PDF.
|
home.rotate.desc=Łatwo obracaj dokumenty PDF.
|
||||||
|
|
||||||
home.imageToPdf.title=Obraz na PDF
|
home.imageToPdf.title=Obraz na PDF
|
||||||
home.imageToPdf.desc=Konwertuj obraz (PNG, JPEG, GIF) do formatu PDF.
|
home.imageToPdf.desc=Konwertuj obraz (PNG, JPEG, GIF) do dokumentu PDF.
|
||||||
|
|
||||||
home.pdfToImage.title=PDF na Obraz
|
home.pdfToImage.title=PDF na Obraz
|
||||||
home.pdfToImage.desc=Konwertuj plik PDF na obraz (PNG, JPEG, GIF).
|
home.pdfToImage.desc=Konwertuj plik PDF na obraz (PNG, JPEG, GIF).
|
||||||
@@ -54,7 +54,7 @@ home.pdfOrganiser.title=Uporządkuj
|
|||||||
home.pdfOrganiser.desc=Usuń/Zmień kolejność stron w dowolnej kolejności
|
home.pdfOrganiser.desc=Usuń/Zmień kolejność stron w dowolnej kolejności
|
||||||
|
|
||||||
home.addImage.title=Dodaj obraz
|
home.addImage.title=Dodaj obraz
|
||||||
home.addImage.desc=Dodaje obraz do wybranej lokalizacji w dokumencie PDF (komponent w budowie)
|
home.addImage.desc=Dodaje obraz w wybranym miejscu w dokumencie PDF (komponent w budowie)
|
||||||
|
|
||||||
home.watermark.title=Dodaj znak wodny
|
home.watermark.title=Dodaj znak wodny
|
||||||
home.watermark.desc=Dodaj niestandardowy znak wodny do dokumentu PDF.
|
home.watermark.desc=Dodaj niestandardowy znak wodny do dokumentu PDF.
|
||||||
@@ -78,46 +78,46 @@ home.compressPdfs.title=Kompresuj
|
|||||||
home.compressPdfs.desc=Kompresuj dokumenty PDF, aby zmniejszyć ich rozmiar.
|
home.compressPdfs.desc=Kompresuj dokumenty PDF, aby zmniejszyć ich rozmiar.
|
||||||
|
|
||||||
home.changeMetadata.title=Zmień metadane
|
home.changeMetadata.title=Zmień metadane
|
||||||
home.changeMetadata.desc=Zmień/Usuń/Dodaj metadane z dokumentu PDF
|
home.changeMetadata.desc=Zmień/Usuń/Dodaj metadane w dokumencie PDF
|
||||||
|
|
||||||
home.fileToPDF.title=Konwertuj plik do formatu PDF
|
home.fileToPDF.title=Konwertuj plik do dokumentu PDF
|
||||||
home.fileToPDF.desc=Konwertuj prawie każdy plik do formatu PDF (DOCX, PNG, XLS, PPT, TXT i więcej)
|
home.fileToPDF.desc=Konwertuj prawie każdy plik do dokumentu PDF (DOCX, PNG, XLS, PPT, TXT i więcej)
|
||||||
|
|
||||||
home.ocr.title=OCR / Zamiana na tekst
|
home.ocr.title=OCR / Zamiana na tekst
|
||||||
home.ocr.desc=OCR skanuje i wykrywa tekst z obrazów w pliku PDF i zamienia go na tekst.
|
home.ocr.desc=OCR skanuje i wykrywa tekst z obrazów w dokumencie PDF i zamienia go na tekst.
|
||||||
|
|
||||||
home.extractImages.title=Wyodrębnij obrazy
|
home.extractImages.title=Wyodrębnij obrazy
|
||||||
home.extractImages.desc=Wyodrębnia wszystkie obrazy z pliku PDF i zapisuje je w formacie zip
|
home.extractImages.desc=Wyodrębnia wszystkie obrazy z dokumentu PDF i zapisuje je w formacie zip
|
||||||
|
|
||||||
home.pdfToPDFA.title=PDF na PDF/A
|
home.pdfToPDFA.title=PDF na PDF/A
|
||||||
home.pdfToPDFA.desc=Konwertuj pliki PDF na PDF/A w celu długoterminowego przechowywania
|
home.pdfToPDFA.desc=Konwertuj dokument PDF na PDF/A w celu długoterminowego przechowywania
|
||||||
|
|
||||||
home.PDFToWord.title=PDF na Word
|
home.PDFToWord.title=PDF na Word
|
||||||
home.PDFToWord.desc=Konwertuj pliki PDF na formaty Microsoft Word (DOC, DOCX i ODT)
|
home.PDFToWord.desc=Konwertuj dokument PDF na formaty Word (DOC, DOCX i ODT)
|
||||||
|
|
||||||
home.PDFToPresentation.title=PDF na Prezentację
|
home.PDFToPresentation.title=PDF na Prezentację
|
||||||
home.PDFToPresentation.desc=Konwertuj pliki PDF na formaty prezentacji (PPT, PPTX i ODP)
|
home.PDFToPresentation.desc=Konwertuj dokument PDF na formaty prezentacji (PPT, PPTX i ODP)
|
||||||
|
|
||||||
home.PDFToText.title=PDF na Tekst/RTF
|
home.PDFToText.title=PDF na Tekst/RTF
|
||||||
home.PDFToText.desc=Konwertuj PDF na tekst lub format RTF
|
home.PDFToText.desc=Konwertuj dokument PDF na tekst lub format RTF
|
||||||
|
|
||||||
home.PDFToHTML.title=PDF na HTML
|
home.PDFToHTML.title=PDF na HTML
|
||||||
home.PDFToHTML.desc=Konwertuj PDF na format HTML
|
home.PDFToHTML.desc=Konwertuj dokument PDF na format HTML
|
||||||
|
|
||||||
home.PDFToXML.title=PDF na XML
|
home.PDFToXML.title=PDF na XML
|
||||||
home.PDFToXML.desc=Konwertuj PDF na format XML
|
home.PDFToXML.desc=Konwertuj dokument PDF na format XML
|
||||||
|
|
||||||
home.ScannerImageSplit.title=Wykryj/Podziel zeskanowane zdjęcia
|
home.ScannerImageSplit.title=Wykryj/Podziel zeskanowane zdjęcia
|
||||||
home.ScannerImageSplit.desc=Podziel na wiele zdjęć z jednego zdjęcia/PDF
|
home.ScannerImageSplit.desc=Podziel na wiele zdjęć z jednego zdjęcia/PDF
|
||||||
|
|
||||||
home.sign.title=Podpis
|
home.sign.title=Podpis
|
||||||
home.sign.desc=Dodaje podpis do pliku PDF za pomocą rysunku, tekstu lub obrazu
|
home.sign.desc=Dodaje podpis do dokument PDF za pomocą rysunku, tekstu lub obrazu
|
||||||
|
|
||||||
home.flatten.title=Spłaszcz
|
home.flatten.title=Spłaszcz
|
||||||
home.flatten.desc=Usuń wszystkie interaktywne elementy i formularze z pliku PDF
|
home.flatten.desc=Usuń wszystkie interaktywne elementy i formularze z dokumentu PDF
|
||||||
|
|
||||||
home.repair.title=Napraw
|
home.repair.title=Napraw
|
||||||
home.repair.desc=Spróbuj naprawić uszkodzony plik PDF
|
home.repair.desc=Spróbuj naprawić uszkodzony dokument PDF
|
||||||
|
|
||||||
home.removeBlanks.title=Usuń puste strony
|
home.removeBlanks.title=Usuń puste strony
|
||||||
home.removeBlanks.desc=Wykrywa i usuwa puste strony z dokumentu PDF
|
home.removeBlanks.desc=Wykrywa i usuwa puste strony z dokumentu PDF
|
||||||
@@ -128,6 +128,22 @@ home.compare.desc=Porównuje i pokazuje różnice między 2 dokumentami PDF
|
|||||||
downloadPdf=Pobierz PDF
|
downloadPdf=Pobierz PDF
|
||||||
text=Tekst
|
text=Tekst
|
||||||
font=Czcionka
|
font=Czcionka
|
||||||
|
selectFillter=-- Wybierz --
|
||||||
|
pageNum=Numer strony
|
||||||
|
|
||||||
|
certSign.title=Podpisywanie certyfikatu
|
||||||
|
certSign.header=Podpisz plik PDF swoim certyfikatem (prace w toku)
|
||||||
|
certSign.selectPDF=Wybierz plik PDF do podpisania:
|
||||||
|
certSign.selectKey=Wybierz plik klucza prywatnego (format PKCS#8, może to być .pem lub .der):
|
||||||
|
certSign.selectCert=Wybierz plik certyfikatu (format X.509, może to być .pem lub .der):
|
||||||
|
certSign.selectP12=Wybierz plik magazynu kluczy PKCS#12 (.p12 lub .pfx) (opcjonalnie, jeśli jest podany, powinien zawierać klucz prywatny i certyfikat):
|
||||||
|
certSign.certType=Typ certyfikatu
|
||||||
|
certSign.password=Wprowadź hasło do magazynu kluczy lub klucza prywatnego (jeśli istnieje):
|
||||||
|
certSign.showSig=Pokaż podpis
|
||||||
|
certSign.reason=Powód
|
||||||
|
certSign.location=Lokalizacja
|
||||||
|
certSign.name=Nazwa
|
||||||
|
certSign.submit=Podpisz PDF
|
||||||
|
|
||||||
removeBlanks.title=Usuń puste
|
removeBlanks.title=Usuń puste
|
||||||
removeBlanks.header=Usuń puste strony
|
removeBlanks.header=Usuń puste strony
|
||||||
@@ -144,7 +160,7 @@ compare.document.2=Dokument 2
|
|||||||
compare.submit=Porównaj
|
compare.submit=Porównaj
|
||||||
|
|
||||||
sign.title=Podpis
|
sign.title=Podpis
|
||||||
sign.header=Dodaj podpis do PDF(a)
|
sign.header=Dodaj podpis do dokumentu PDF
|
||||||
sign.upload=Wczytaj opbraz
|
sign.upload=Wczytaj opbraz
|
||||||
sign.draw=Narysuj podpis
|
sign.draw=Narysuj podpis
|
||||||
sign.text=Wprowadź tekst
|
sign.text=Wprowadź tekst
|
||||||
@@ -152,11 +168,11 @@ sign.clear=Wyczyść
|
|||||||
sign.add=Dodaj
|
sign.add=Dodaj
|
||||||
|
|
||||||
repair.title=Napraw
|
repair.title=Napraw
|
||||||
repair.header=Napraw PDF(y)
|
repair.header=Napraw dokument(y) PDF
|
||||||
repair.submit=Napraw
|
repair.submit=Napraw
|
||||||
|
|
||||||
flatten.title=Spłaszcz
|
flatten.title=Spłaszcz
|
||||||
flatten.header=Spłaszcz PDF(y)
|
flatten.header=Spłaszcz dokument(y) PDF
|
||||||
flatten.submit=Spłaszcz
|
flatten.submit=Spłaszcz
|
||||||
|
|
||||||
ScannerImageSplit.selectText.1=Próg kąta:
|
ScannerImageSplit.selectText.1=Próg kąta:
|
||||||
@@ -187,11 +203,11 @@ settings.zipThreshold=Spakuj pliki, gdy liczba pobranych plików przekroczy
|
|||||||
#OCR
|
#OCR
|
||||||
ocr.title=OCR / Zamiana na tekst
|
ocr.title=OCR / Zamiana na tekst
|
||||||
ocr.header=OCR / Zamiana na tekst (optyczne rozpoznawanie znaków)
|
ocr.header=OCR / Zamiana na tekst (optyczne rozpoznawanie znaków)
|
||||||
ocr.selectText.1=Wybierz języki, które mają zostać wykryte w pliku PDF (te z listy to języki, które są obecnie wykrywane):
|
ocr.selectText.1=Wybierz języki, które mają zostać wykryte w dokumencie PDF (te z listy to języki, które są obecnie wykrywane):
|
||||||
ocr.selectText.2=Utwórz plik tekstowy zawierający tekst OCR wraz z plikiem PDF z OCR
|
ocr.selectText.2=Utwórz plik tekstowy zawierający tekst OCR oraz dokument PDF z OCR
|
||||||
ocr.selectText.3=Prawidłowe strony zostały zeskanowane pod przekrzywionym kątem przez obrócenie ich z powrotem na miejsce
|
ocr.selectText.3=Prawidłowe strony zostały zeskanowane pod przekrzywionym kątem przez obrócenie ich z powrotem na miejsce
|
||||||
ocr.selectText.4=Wyczyść stronę, więc jest mniej prawdopodobne, że OCR znajdzie tekst w szumie tła. (Brak zmiany wyjścia)
|
ocr.selectText.4=Wyczyść stronę, więc jest mniej prawdopodobne że OCR znajdzie tekst w obrazie tła. (Brak zmiany wyjścia)
|
||||||
ocr.selectText.5=Wyczyść stronę, więc jest mniej prawdopodobne, że OCR znajdzie tekst w szumie tła, utrzymuje porządek na wyjściu.
|
ocr.selectText.5=Wyczyść stronę, więc jest mniej prawdopodobne że OCR znajdzie tekst w obrazie tła, utrzymuje porządek na wyjściu.
|
||||||
ocr.selectText.6=Ignoruje strony zawierające interaktywny tekst, tylko strony OCR, które są obrazami
|
ocr.selectText.6=Ignoruje strony zawierające interaktywny tekst, tylko strony OCR, które są obrazami
|
||||||
ocr.selectText.7=Wymuś OCR, każda strona usunie wszystkie oryginalne elementy tekstowe
|
ocr.selectText.7=Wymuś OCR, każda strona usunie wszystkie oryginalne elementy tekstowe
|
||||||
ocr.selectText.8=Normalny (wystąpi błąd, jeśli plik PDF zawiera tekst)
|
ocr.selectText.8=Normalny (wystąpi błąd, jeśli plik PDF zawiera tekst)
|
||||||
@@ -207,13 +223,13 @@ ocr.submit=Przetwarzaj PDF za pomocą OCR
|
|||||||
|
|
||||||
extractImages.title=Wyodrębnij obrazy
|
extractImages.title=Wyodrębnij obrazy
|
||||||
extractImages.header=Wyodrębnij obrazy
|
extractImages.header=Wyodrębnij obrazy
|
||||||
extractImages.selectText=Wybierz format obrazu, aby przekonwertować wyodrębnione obrazy
|
extractImages.selectText=Wybierz format obrazu, aby je przekonwertować
|
||||||
extractImages.submit=Wyodrębnij
|
extractImages.submit=Wyodrębnij
|
||||||
|
|
||||||
|
|
||||||
#File to PDF
|
#File to PDF
|
||||||
fileToPDF.title=Plik na PDF
|
fileToPDF.title=Plik na PDF
|
||||||
fileToPDF.header=Konwertuj kady plik na PDF
|
fileToPDF.header=Konwertuj kady plik na dokument PDF
|
||||||
fileToPDF.credit=Ta usługa używa LibreOffice i Unoconv do konwersji plików.
|
fileToPDF.credit=Ta usługa używa LibreOffice i Unoconv do konwersji plików.
|
||||||
fileToPDF.supportedFileTypes=Obsługiwane typy plików powinny być zgodne z poniższymi, jednak pełną zaktualizowaną listę obsługiwanych formatów można znaleźć w dokumentacji LibreOffice
|
fileToPDF.supportedFileTypes=Obsługiwane typy plików powinny być zgodne z poniższymi, jednak pełną zaktualizowaną listę obsługiwanych formatów można znaleźć w dokumentacji LibreOffice
|
||||||
fileToPDF.submit=Konwertuj na PDF
|
fileToPDF.submit=Konwertuj na PDF
|
||||||
@@ -222,17 +238,14 @@ fileToPDF.submit=Konwertuj na PDF
|
|||||||
#compress
|
#compress
|
||||||
compress.title=Kompresuj
|
compress.title=Kompresuj
|
||||||
compress.header=Kompresuj PDF
|
compress.header=Kompresuj PDF
|
||||||
compress.credit=Ta usługa wykorzystuje OCRmyPDF do kompresji/optymalizacji PDF.
|
compress.credit=Ta usługa używa Ghostscript do kompresji/optymalizacji PDF.
|
||||||
compress.selectText.1=Poziom optymalizacji:
|
compress.selectText.1=Tryb ręczny - Od 1 do 4
|
||||||
compress.selectText.2=0 (Brak optymalizacji)
|
compress.selectText.2=Poziom optymalizacji:
|
||||||
compress.selectText.3=1 (Domyślna, bezstratna optymalizacja)
|
compress.selectText.3=4 (Straszne dla obrazów tekstowych)
|
||||||
compress.selectText.4=2 (Stratna optymalizacja)
|
compress.selectText.4=Tryb automatyczny - Automatycznie dostosowuje jakość, aby uzyskać dokładny rozmiar pliku PDF
|
||||||
compress.selectText.5=3 (Stratna optymalizacja, bardziej agresywna)
|
compress.selectText.5=Oczekiwany rozmiar pliku PDF (np. 25 MB, 10,8 MB, 25 KB)
|
||||||
compress.selectText.6=Włącz szybki podgląd w Internecie (linearyzacja PDF)
|
|
||||||
compress.selectText.7=Włącz stratne kodowanie JBIG2
|
|
||||||
compress.submit=Kompresuj
|
compress.submit=Kompresuj
|
||||||
|
|
||||||
|
|
||||||
#Add image
|
#Add image
|
||||||
addImage.title=Dodaj obraz
|
addImage.title=Dodaj obraz
|
||||||
addImage.header=Dodaj obraz do PDF
|
addImage.header=Dodaj obraz do PDF
|
||||||
@@ -242,7 +255,7 @@ addImage.submit=Dodaj obraz
|
|||||||
|
|
||||||
#merge
|
#merge
|
||||||
merge.title=Połącz
|
merge.title=Połącz
|
||||||
merge.header=Połącz wiele plików PDF (2+)
|
merge.header=Połącz wiele dokumentów PDF (2+)
|
||||||
merge.submit=Połącz
|
merge.submit=Połącz
|
||||||
|
|
||||||
#pdfOrganiser
|
#pdfOrganiser
|
||||||
@@ -251,19 +264,19 @@ pdfOrganiser.header=Kolejność stron PDF
|
|||||||
pdfOrganiser.submit=Zmień kolejność stron
|
pdfOrganiser.submit=Zmień kolejność stron
|
||||||
|
|
||||||
#multiTool
|
#multiTool
|
||||||
multiTool.title=Wielofunkcyjne narzędzie PDF
|
multiTool.title=Multi narzędzie PDF
|
||||||
multiTool.header=Wielofunkcyjne narzędzie PDF
|
multiTool.header=Multi narzędzie PDF
|
||||||
|
|
||||||
|
|
||||||
#pageRemover
|
#pageRemover
|
||||||
pageRemover.title=Narzędzie do usuwania stron
|
pageRemover.title=Narzędzie do usuwania stron
|
||||||
pageRemover.header=Narzędzie do usuwania stron w plikach PDF
|
pageRemover.header=Narzędzie do usuwania stron w dokumentach PDF
|
||||||
pageRemover.pagesToDelete=Strony do usunięcia (wprowadź listę numerów stron oddzielonych przecinkami):
|
pageRemover.pagesToDelete=Strony do usunięcia (wprowadź listę numerów stron oddzielonych przecinkami):
|
||||||
pageRemover.submit=Usuń strony
|
pageRemover.submit=Usuń strony
|
||||||
|
|
||||||
#rotate
|
#rotate
|
||||||
rotate.title=Obróć plik PDF
|
rotate.title=Obróć dokument PDF
|
||||||
rotate.header=Obróć plik PDF
|
rotate.header=Obróć dokument PDF
|
||||||
rotate.selectAngle=Wybierz kąt obrotu (domyślnie 90 stopni):
|
rotate.selectAngle=Wybierz kąt obrotu (domyślnie 90 stopni):
|
||||||
rotate.submit=Obróć
|
rotate.submit=Obróć
|
||||||
|
|
||||||
@@ -271,8 +284,8 @@ rotate.submit=Obróć
|
|||||||
|
|
||||||
|
|
||||||
#merge
|
#merge
|
||||||
split.title=Podziel plik PDF
|
split.title=Podziel dokument PDF
|
||||||
split.header=Podziel plik PDF
|
split.header=Podziel dokument PDF
|
||||||
split.desc.1=Wybrane numery to numery stron, na których chcesz dokonać podziału
|
split.desc.1=Wybrane numery to numery stron, na których chcesz dokonać podziału
|
||||||
split.desc.2=Np. taki wybór 1,3,7-8 podzieliłby 10-stronicowy dokument na 6 oddzielnych plików PDF z:
|
split.desc.2=Np. taki wybór 1,3,7-8 podzieliłby 10-stronicowy dokument na 6 oddzielnych plików PDF z:
|
||||||
split.desc.3=Dokument #1: Strona 1
|
split.desc.3=Dokument #1: Strona 1
|
||||||
@@ -292,8 +305,8 @@ imageToPDF.submit=Konwertuj
|
|||||||
imageToPDF.selectText.1=Rozciągnij, aby dopasować
|
imageToPDF.selectText.1=Rozciągnij, aby dopasować
|
||||||
imageToPDF.selectText.2=Automatyczne obracanie PDF
|
imageToPDF.selectText.2=Automatyczne obracanie PDF
|
||||||
imageToPDF.selectText.3=Logika wielu plików (dostępna tylko w przypadku pracy z wieloma obrazami)
|
imageToPDF.selectText.3=Logika wielu plików (dostępna tylko w przypadku pracy z wieloma obrazami)
|
||||||
imageToPDF.selectText.4=Połącz w jeden plik PDF
|
imageToPDF.selectText.4=Połącz w jeden dokument PDF
|
||||||
imageToPDF.selectText.5=Konwertuj na osobne pliki PDF
|
imageToPDF.selectText.5=Konwertuj na osobne dokumenty PDF
|
||||||
|
|
||||||
#pdfToImage
|
#pdfToImage
|
||||||
pdfToImage.title=PDF na Obraz
|
pdfToImage.title=PDF na Obraz
|
||||||
@@ -329,7 +342,7 @@ addPassword.submit=Zablokuj
|
|||||||
#watermark
|
#watermark
|
||||||
watermark.title=Dodaj znak wodny
|
watermark.title=Dodaj znak wodny
|
||||||
watermark.header=Dodaj znak wodny
|
watermark.header=Dodaj znak wodny
|
||||||
watermark.selectText.1=Wybierz plik PDF, do którego chcesz dodać znak wodny:
|
watermark.selectText.1=Wybierz dokument PDF, do którego chcesz dodać znak wodny:
|
||||||
watermark.selectText.2=Treść znaku wodnego:
|
watermark.selectText.2=Treść znaku wodnego:
|
||||||
watermark.selectText.3=Rozmiar czcionki:
|
watermark.selectText.3=Rozmiar czcionki:
|
||||||
watermark.selectText.4=Obrót (0-360):
|
watermark.selectText.4=Obrót (0-360):
|
||||||
@@ -341,7 +354,7 @@ watermark.submit=Dodaj znak wodny
|
|||||||
#remove-watermark
|
#remove-watermark
|
||||||
remove-watermark.title=Usuń znak wodny
|
remove-watermark.title=Usuń znak wodny
|
||||||
remove-watermark.header=Usuń znak wodny
|
remove-watermark.header=Usuń znak wodny
|
||||||
remove-watermark.selectText.1=Wybierz PDF, aby usunąć znak wodny z:
|
remove-watermark.selectText.1=Wybierz dokument PDF, aby usunąć znak wodny z:
|
||||||
remove-watermark.selectText.2=Treść zanku wodnego:
|
remove-watermark.selectText.2=Treść zanku wodnego:
|
||||||
remove-watermark.submit=Usuń znak wodny
|
remove-watermark.submit=Usuń znak wodny
|
||||||
|
|
||||||
@@ -349,7 +362,7 @@ remove-watermark.submit=Usuń znak wodny
|
|||||||
permissions.title=Zmień uprawnienia
|
permissions.title=Zmień uprawnienia
|
||||||
permissions.header=Zmień uprawnienia
|
permissions.header=Zmień uprawnienia
|
||||||
permissions.warning=Ostrzeżenie, aby te uprawnienia były zablokowane, zaleca się ustawienie hasła na stronie dodawania hasła
|
permissions.warning=Ostrzeżenie, aby te uprawnienia były zablokowane, zaleca się ustawienie hasła na stronie dodawania hasła
|
||||||
permissions.selectText.1=Wybierz PDF, aby zmienić uprawnienia
|
permissions.selectText.1=Wybierz dokument PDF, aby zmienić uprawnienia
|
||||||
permissions.selectText.2=Uprawnienia do zmian
|
permissions.selectText.2=Uprawnienia do zmian
|
||||||
permissions.selectText.3=Zablokuj zmiany w dokumencie
|
permissions.selectText.3=Zablokuj zmiany w dokumencie
|
||||||
permissions.selectText.4=Zablokuj zmiany w treści
|
permissions.selectText.4=Zablokuj zmiany w treści
|
||||||
@@ -364,7 +377,7 @@ permissions.submit=Zmień
|
|||||||
#remove password
|
#remove password
|
||||||
removePassword.title=Usuń hasło
|
removePassword.title=Usuń hasło
|
||||||
removePassword.header=Usuń hasło (odszyfruj)
|
removePassword.header=Usuń hasło (odszyfruj)
|
||||||
removePassword.selectText.1=Wybierz plik PDF do odszyfrowania
|
removePassword.selectText.1=Wybierz dokument PDF do odszyfrowania
|
||||||
removePassword.selectText.2=Hasło
|
removePassword.selectText.2=Hasło
|
||||||
removePassword.submit=Usuń
|
removePassword.submit=Usuń
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,22 @@ home.compare.desc=Сравнивает и показывает различия
|
|||||||
downloadPdf=Скачать PDF
|
downloadPdf=Скачать PDF
|
||||||
text=Текст
|
text=Текст
|
||||||
font=Шрифт
|
font=Шрифт
|
||||||
|
selectFillter=-- Выбрать --
|
||||||
|
pageNum=номер страницы
|
||||||
|
|
||||||
|
certSign.title=Подписание сертификата
|
||||||
|
certSign.header=Подпишите PDF своим сертификатом (работа в процессе)
|
||||||
|
certSign.selectPDF=Выберите файл PDF для подписи:
|
||||||
|
certSign.selectKey=Выберите файл закрытого ключа (формат PKCS#8, может быть .pem или .der):
|
||||||
|
certSign.selectCert=Выберите файл сертификата (формат X.509, может быть .pem или .der):
|
||||||
|
certSign.selectP12=Выберите файл хранилища ключей PKCS#12 (.p12 или .pfx) (необязательно, если он предоставлен, он должен содержать ваш закрытый ключ и сертификат):
|
||||||
|
certSign.certType=Тип сертификата
|
||||||
|
certSign.password=Введите пароль от хранилища ключей или личного ключа (если есть):
|
||||||
|
certSign.showSig=Показать подпись
|
||||||
|
certSign.reason=Причина
|
||||||
|
certSign.location=Местоположение
|
||||||
|
certSign.name=Имя
|
||||||
|
certSign.submit=Подписать PDF
|
||||||
|
|
||||||
removeBlanks.title=Удалить Пустые
|
removeBlanks.title=Удалить Пустые
|
||||||
removeBlanks.header=Удалить Пустые Страницы
|
removeBlanks.header=Удалить Пустые Страницы
|
||||||
@@ -222,14 +238,12 @@ fileToPDF.submit=Преобразовать в PDF
|
|||||||
#compress
|
#compress
|
||||||
compress.title=Сжать
|
compress.title=Сжать
|
||||||
compress.header=Сжать PDF
|
compress.header=Сжать PDF
|
||||||
compress.credit=Этот сервис использует OCRmyPDF для сжатия/оптимизации PDF.
|
compress.credit=Эта служба использует Ghostscript для сжатия/оптимизации PDF.
|
||||||
compress.selectText.1=Уровень оптимизации:
|
compress.selectText.1=Ручной режим - от 1 до 4
|
||||||
compress.selectText.2=0 (Без оптимизации)
|
compress.selectText.2=Уровень оптимизации:
|
||||||
compress.selectText.3=1 (Оптимизация по умолчанию без потерь)
|
compress.selectText.3=4 (Ужасно для текстовых изображений)
|
||||||
compress.selectText.4=2 (Оптимизация с потерями)
|
compress.selectText.4=Автоматический режим - автоматически настраивает качество для получения PDF точного размера
|
||||||
compress.selectText.5=3 (Оптимизация с потерями, более агрессивная)
|
compress.selectText.5=Ожидаемый размер PDF (например, 25 МБ, 10,8 МБ, 25 КБ)
|
||||||
compress.selectText.6=Включить быстрый веб-просмотр (линеаризовать PDF)
|
|
||||||
compress.selectText.7=Включить кодирование JBIG2 с потерями
|
|
||||||
compress.submit=Сжать
|
compress.submit=Сжать
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,22 @@ home.compare.desc=Jämför och visar skillnaderna mellan 2 PDF-dokument
|
|||||||
downloadPdf=Ladda ner PDF
|
downloadPdf=Ladda ner PDF
|
||||||
text=Text
|
text=Text
|
||||||
font=Teckensnitt
|
font=Teckensnitt
|
||||||
|
selectFillter=-- Välj --
|
||||||
|
pageNum=Sidnummer
|
||||||
|
|
||||||
|
certSign.title=Certifikatsignering
|
||||||
|
certSign.header=Skriv under en PDF med ditt certifikat (Pågående arbete)
|
||||||
|
certSign.selectPDF=Välj en PDF-fil för signering:
|
||||||
|
certSign.selectKey=Välj din privata nyckelfil (PKCS#8-format, kan vara .pem eller .der):
|
||||||
|
certSign.selectCert=Välj din certifikatfil (X.509-format, kan vara .pem eller .der):
|
||||||
|
certSign.selectP12=Välj din PKCS#12-nyckellagringsfil (.p12 eller .pfx) (Valfritt, om den tillhandahålls bör den innehålla din privata nyckel och certifikat):
|
||||||
|
certSign.certType=Certifikattyp
|
||||||
|
certSign.password=Ange ditt nyckellager eller privata nyckellösenord (om något):
|
||||||
|
certSign.showSig=Visa signatur
|
||||||
|
certSign.reason=Anledning
|
||||||
|
certSign.location=Plats
|
||||||
|
certSign.name=Namn
|
||||||
|
certSign.submit=Skriv under PDF
|
||||||
|
|
||||||
removeBlanks.title=Ta bort tomrum
|
removeBlanks.title=Ta bort tomrum
|
||||||
removeBlanks.header=Ta bort tomma sidor
|
removeBlanks.header=Ta bort tomma sidor
|
||||||
@@ -222,14 +238,12 @@ fileToPDF.submit=Konvertera till PDF
|
|||||||
#komprimera
|
#komprimera
|
||||||
compress.title=Komprimera
|
compress.title=Komprimera
|
||||||
compress.header=Komprimera PDF
|
compress.header=Komprimera PDF
|
||||||
compress.credit=Denna tjänst använder OCRmyPDF för PDF-komprimering/optimering.
|
compress.credit=Denna tjänst använder Ghostscript för PDF-komprimering/optimering.
|
||||||
compress.selectText.1=Optimeringsnivå:
|
compress.selectText.1=Manuellt läge - Från 1 till 4
|
||||||
compress.selectText.2=0 (Ingen optimering)
|
compress.selectText.2=Optimeringsnivå:
|
||||||
compress.selectText.3=1 (Standard, förlustfri optimering)
|
compress.selectText.3=4 (Fruktansvärt för textbilder)
|
||||||
compress.selectText.4=2 (förlustoptimering)
|
compress.selectText.4=Autoläge - Autojusterar kvaliteten för att få PDF till exakt storlek
|
||||||
compress.selectText.5=3 (förlustoptimering, mer aggressiv)
|
compress.selectText.5=Förväntad PDF-storlek (t.ex. 25MB, 10,8MB, 25KB)
|
||||||
compress.selectText.6=Aktivera snabb webbvy (linjärisera PDF)
|
|
||||||
compress.selectText.7=Aktivera JBIG2-kodning med förlust
|
|
||||||
compress.submit=Komprimera
|
compress.submit=Komprimera
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,22 @@ home.compare.desc=\u6BD4\u8F83\u5E76\u663E\u793A 2 \u4E2A PDF \u6587\u6863\u4E4B
|
|||||||
downloadPdf=\u4E0B\u8F7DPDF
|
downloadPdf=\u4E0B\u8F7DPDF
|
||||||
text=\u6587\u672C
|
text=\u6587\u672C
|
||||||
font=\u5B57\u4F53
|
font=\u5B57\u4F53
|
||||||
|
selectFillter=-- 选择--
|
||||||
|
pageNum=页码
|
||||||
|
|
||||||
|
certSign.title=证书签名
|
||||||
|
certSign.header=使用您的证书签署 PDF(进行中)
|
||||||
|
certSign.selectPDF=选择要签名的 PDF 文件:
|
||||||
|
certSign.selectKey=选择您的私钥文件(PKCS#8 格式,可以是 .pem 或 .der):
|
||||||
|
certSign.selectCert=选择您的证书文件(X.509 格式,可以是 .pem 或 .der):
|
||||||
|
certSign.selectP12=选择您的 PKCS#12 密钥库文件(.p12 或 .pfx)(可选,如果提供,它应该包含您的私钥和证书):
|
||||||
|
certSign.certType=证书类型
|
||||||
|
certSign.password=输入您的密钥库或私钥密码(如果有):
|
||||||
|
certSign.showSig=显示签名
|
||||||
|
certSign.reason=原因
|
||||||
|
certSign.location=位置
|
||||||
|
certSign.name=名称
|
||||||
|
certSign.submit=签署 PDF
|
||||||
|
|
||||||
removeBlanks.title=\u5220\u9664\u7A7A\u767D
|
removeBlanks.title=\u5220\u9664\u7A7A\u767D
|
||||||
removeBlanks.header=\u5220\u9664\u7A7A\u767D\u9875
|
removeBlanks.header=\u5220\u9664\u7A7A\u767D\u9875
|
||||||
@@ -221,14 +237,12 @@ fileToPDF.submit=转换为 PDF
|
|||||||
#compress
|
#compress
|
||||||
compress.title=压缩
|
compress.title=压缩
|
||||||
compress.header=压缩PDF
|
compress.header=压缩PDF
|
||||||
compress.credit=此服务使用OCRmyPDF进行PDF压缩/优化。
|
compress.credit=此服务使用 Ghostscript 进行 PDF 压缩/优化。
|
||||||
compress.selectText.1=优化水平:
|
compress.selectText.1=手动模式 - 从 1 到 4
|
||||||
compress.selectText.2=0 (无优化)
|
compress.selectText.2=优化级别:
|
||||||
compress.selectText.3=1 (默认,无损优化)
|
compress.selectText.3=4(文本图像很糟糕)
|
||||||
compress.selectText.4=2 (有损优化)
|
compress.selectText.4=自动模式 - 自动调整质量以获得精确大小的 PDF
|
||||||
compress.selectText.5=3 (有损优化,更激进)
|
compress.selectText.5=预期 PDF 大小(例如 25MB、10.8MB、25KB)
|
||||||
compress.selectText.6=启用快速网络视图(线性化PDF)。
|
|
||||||
compress.selectText.7=启用有损的JBIG2编码
|
|
||||||
compress.submit=压缩
|
compress.submit=压缩
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ body {
|
|||||||
background-color: rgb(var(--body-background-color)) !important;
|
background-color: rgb(var(--body-background-color)) !important;
|
||||||
color: rgb(var(--base-font-color)) !important;
|
color: rgb(var(--base-font-color)) !important;
|
||||||
}
|
}
|
||||||
|
.card {
|
||||||
|
background-color: rgb(var(--body-background-color)) !important;
|
||||||
|
border: 1px solid #999;
|
||||||
|
color: rgb(var(--base-font-color)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.dark-card {
|
.dark-card {
|
||||||
background-color: rgb(var(--body-background-color)) !important;
|
background-color: rgb(var(--body-background-color)) !important;
|
||||||
|
|||||||
4
src/main/resources/static/images/award.svg
Normal file
4
src/main/resources/static/images/award.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-award" viewBox="0 0 16 16">
|
||||||
|
<path d="M9.669.864 8 0 6.331.864l-1.858.282-.842 1.68-1.337 1.32L2.6 6l-.306 1.854 1.337 1.32.842 1.68 1.858.282L8 12l1.669-.864 1.858-.282.842-1.68 1.337-1.32L13.4 6l.306-1.854-1.337-1.32-.842-1.68L9.669.864zm1.196 1.193.684 1.365 1.086 1.072L12.387 6l.248 1.506-1.086 1.072-.684 1.365-1.51.229L8 10.874l-1.355-.702-1.51-.229-.684-1.365-1.086-1.072L3.614 6l-.25-1.506 1.087-1.072.684-1.365 1.51-.229L8 1.126l1.356.702 1.509.229z"/>
|
||||||
|
<path d="M4 11.794V16l4-1 4 1v-4.206l-2.018.306L8 13.126 6.018 12.1 4 11.794z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 649 B |
@@ -218,7 +218,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
</dialog>
|
</dialog>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
|
||||||
<th:block th:fragment="fileSelector(name, multiple)" th:with="accept=${accept} ?: '*/*', inputText=${inputText} ?: #{pdfPrompt}, remoteCall=${remoteCall} ?: 'true'">
|
<th:block th:fragment="fileSelector(name, multiple)" th:with="accept=${accept} ?: '*/*', inputText=${inputText} ?: #{pdfPrompt}, remoteCall=${remoteCall} ?: 'true', notRequired=${notRequired} ?: false">
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('form').submit(async function(event) {
|
$('form').submit(async function(event) {
|
||||||
@@ -486,7 +486,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
|
|
||||||
<div class="custom-file-chooser">
|
<div class="custom-file-chooser">
|
||||||
<div class="custom-file">
|
<div class="custom-file">
|
||||||
<input type="file" class="custom-file-input" th:name="${name}" th:id="${name}+'-input'" th:accept="${accept}" multiple required>
|
<input type="file" class="custom-file-input" th:name="${name}" th:id="${name}+'-input'" th:accept="${accept}" multiple th:classappend="${notRequired ? '' : 'required'}">
|
||||||
<label class="custom-file-label" th:for="${name}+'-input'" th:text="${inputText}"></label>
|
<label class="custom-file-label" th:for="${name}+'-input'" th:text="${inputText}"></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="selected-files"></div>
|
<div class="selected-files"></div>
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ function compareVersions(version1, version2) {
|
|||||||
|
|
||||||
<li class="nav-item nav-item-separator"></li>
|
<li class="nav-item nav-item-separator"></li>
|
||||||
|
|
||||||
<li class="nav-item dropdown" th:classappend="${currentPage}=='add-password' OR ${currentPage}=='remove-password' OR ${currentPage}=='add-watermark' OR ${currentPage}=='remove-watermark' ? 'active' : ''">
|
<li class="nav-item dropdown" th:classappend="${currentPage}=='add-password' OR ${currentPage}=='remove-password' OR ${currentPage}=='add-watermark' OR ${currentPage}=='cert-sign' ? 'active' : ''">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<img class="icon" src="images/shield-check.svg" alt="icon" style="width: 16px; height: 16px; vertical-align: middle;"> <span class="icon-text" th:text="#{navbar.security}"></span>
|
<img class="icon" src="images/shield-check.svg" alt="icon" style="width: 16px; height: 16px; vertical-align: middle;"> <span class="icon-text" th:text="#{navbar.security}"></span>
|
||||||
</a>
|
</a>
|
||||||
@@ -195,12 +195,12 @@ function compareVersions(version1, version2) {
|
|||||||
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('remove-password', 'images/unlock.svg', 'home.removePassword.title', 'home.removePassword.desc')}"></div>
|
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('remove-password', 'images/unlock.svg', 'home.removePassword.title', 'home.removePassword.desc')}"></div>
|
||||||
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('change-permissions', 'images/shield-lock.svg', 'home.permissions.title', 'home.permissions.desc')}"></div>
|
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('change-permissions', 'images/shield-lock.svg', 'home.permissions.title', 'home.permissions.desc')}"></div>
|
||||||
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('add-watermark', 'images/droplet.svg', 'home.watermark.title', 'home.watermark.desc')}"></div>
|
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('add-watermark', 'images/droplet.svg', 'home.watermark.title', 'home.watermark.desc')}"></div>
|
||||||
|
<div th:replace="~{fragments/navbarEntry :: navbarEntry ('cert-sign', 'images/award.svg', 'home.certSign.title', 'home.certSign.desc')}"></div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item nav-item-separator"></li>
|
<li class="nav-item nav-item-separator"></li>
|
||||||
<li class="nav-item dropdown" th:classappend="${currentPage}=='sign' OR ${currentPage}=='flatten' OR ${currentPage}=='add-image' OR ${currentPage}=='ocr-pdf' OR ${currentPage}=='change-permissions' OR ${currentPage}=='extract-images' OR ${currentPage}=='compress-pdf' ? 'active' : ''">
|
<li class="nav-item dropdown" th:classappend="${currentPage}=='sign' OR ${currentPage}=='repair' OR ${currentPage}=='compare' OR ${currentPage}=='flatten' OR ${currentPage}=='remove-blanks' OR ${currentPage}=='extract-image-scans' OR ${currentPage}=='change-metadata' OR ${currentPage}=='add-image' OR ${currentPage}=='ocr-pdf' OR ${currentPage}=='change-permissions' OR ${currentPage}=='extract-images' OR ${currentPage}=='compress-pdf' ? 'active' : ''">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<img class="icon" src="images/card-list.svg" alt="icon" style="width: 16px; height: 16px; vertical-align: middle;">
|
<img class="icon" src="images/card-list.svg" alt="icon" style="width: 16px; height: 16px; vertical-align: middle;">
|
||||||
<span class="icon-text" th:text="#{navbar.other}"></span>
|
<span class="icon-text" th:text="#{navbar.other}"></span>
|
||||||
|
|||||||
@@ -71,6 +71,11 @@ filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg);
|
|||||||
.favorite-icon img {
|
.favorite-icon img {
|
||||||
filter: brightness(0);
|
filter: brightness(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.jumbotron {
|
||||||
|
padding: 3rem 3rem; /* Reduce vertical padding */
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -130,6 +135,8 @@ filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg);
|
|||||||
<div th:replace="~{fragments/card :: card(id='remove-blanks', cardTitle=#{home.removeBlanks.title}, cardText=#{home.removeBlanks.desc}, cardLink='remove-blanks', svgPath='images/blank-file.svg')}"></div>
|
<div th:replace="~{fragments/card :: card(id='remove-blanks', cardTitle=#{home.removeBlanks.title}, cardText=#{home.removeBlanks.desc}, cardLink='remove-blanks', svgPath='images/blank-file.svg')}"></div>
|
||||||
<div th:replace="~{fragments/card :: card(id='compare', cardTitle=#{home.compare.title}, cardText=#{home.compare.desc}, cardLink='compare', svgPath='images/scales.svg')}"></div>
|
<div th:replace="~{fragments/card :: card(id='compare', cardTitle=#{home.compare.title}, cardText=#{home.compare.desc}, cardLink='compare', svgPath='images/scales.svg')}"></div>
|
||||||
|
|
||||||
|
<div th:replace="~{fragments/card :: card(id='cert-sign', cardTitle=#{home.certSign.title}, cardText=#{home.certSign.desc}, cardLink='cert-sign', svgPath='images/award.svg')}"></div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function toggleFavorite(element) {
|
function toggleFavorite(element) {
|
||||||
var img = element.querySelector('img');
|
var img = element.querySelector('img');
|
||||||
|
|||||||
@@ -17,27 +17,28 @@
|
|||||||
<h2 th:text="#{compress.header}"></h2>
|
<h2 th:text="#{compress.header}"></h2>
|
||||||
<form action="#" th:action="@{/compress-pdf}" method="post" enctype="multipart/form-data">
|
<form action="#" th:action="@{/compress-pdf}" method="post" enctype="multipart/form-data">
|
||||||
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
|
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
|
||||||
<div>
|
<div class="card mb-3">
|
||||||
<label for="optimizeLevel" th:text="#{compress.selectText.1}"></label>
|
<div class="card-body">
|
||||||
<select name="optimizeLevel" id="optimizeLevel">
|
<h4 th:text="#{compress.selectText.1}"></h4>
|
||||||
<option value="0" th:text="#{compress.selectText.2}"></option>
|
<label for="optimizeLevel" th:text="#{compress.selectText.2}"></label>
|
||||||
<option value="1" selected th:text="#{compress.selectText.3}"></option>
|
<select name="optimizeLevel" id="optimizeLevel" class="form-control">
|
||||||
<option value="2" th:text="#{compress.selectText.4}"></option>
|
<option value="1">1</option>
|
||||||
<option value="3" th:text="#{compress.selectText.5}"></option>
|
<option value="2" selected>2</option>
|
||||||
|
<option value="3">3</option>
|
||||||
|
<option value="4" th:text="#{compress.selectText.3}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<input type="checkbox" name="fastWebView" id="fastWebView">
|
|
||||||
<label for="fastWebView" th:text="#{compress.selectText.6}"></label>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<input type="checkbox" name="jbig2Lossy" id="jbig2Lossy">
|
<div class="card mb-3">
|
||||||
<label for="jbig2Lossy" th:text="#{compress.selectText.7}"></label>
|
<div class="card-body">
|
||||||
|
<h4 th:text="#{compress.selectText.4}"></h4>
|
||||||
|
<label for="expectedOutputSize" th:text="#{compress.selectText.5}"></label>
|
||||||
|
<input type="text" name="expectedOutputSize" id="expectedOutputSize" min="1" class="form-control">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{compress.submit}"></button>
|
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{compress.submit}"></button>
|
||||||
</form>
|
</form>
|
||||||
<p class="mt-3" th:text="#{compress.credit}"></p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
135
src/main/resources/templates/security/cert-sign.html
Normal file
135
src/main/resources/templates/security/cert-sign.html
Normal file
@@ -0,0 +1,135 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html th:lang="${#locale.toString()}"
|
||||||
|
th:lang-direction="#{language.direction}"
|
||||||
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<th:block
|
||||||
|
th:insert="~{fragments/common :: head(title=#{certSign.title})}"></th:block>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="page-container">
|
||||||
|
<div id="content-wrap">
|
||||||
|
<div th:insert="~{fragments/navbar.html :: navbar}"></div>
|
||||||
|
<br> <br>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<h2 th:text="#{certSign.header}"></h2>
|
||||||
|
|
||||||
|
<form action="/cert-sign" method="post"
|
||||||
|
enctype="multipart/form-data">
|
||||||
|
<div class="form-group">
|
||||||
|
<label th:text="#{certSign.selectPDF}"></label>
|
||||||
|
<div
|
||||||
|
th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="certType" th:text="#{certSign.certType}"></label> <select
|
||||||
|
class="form-control" id="certType" name="certType">
|
||||||
|
<option value="" th:text="#{selectFillter}"></option>
|
||||||
|
<option value="PKCS12">PKCS12</option>
|
||||||
|
<option value="PEM">PEM</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group" id="p12Group" style="display: none;">
|
||||||
|
<label th:text="#{certSign.selectP12}"></label>
|
||||||
|
<div
|
||||||
|
th:replace="~{fragments/common :: fileSelector(name='p12', notRequired=true, multiple=false, accept='.p12,.pfx')}"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="pemGroup" style="display: none;">
|
||||||
|
<div class="form-group">
|
||||||
|
<label th:text="#{certSign.selectKey}"></label>
|
||||||
|
<div
|
||||||
|
th:replace="~{fragments/common :: fileSelector(name='key', multiple=false, notRequired=true, accept='.pem,.der')}"></div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label th:text="#{certSign.selectCert}"></label>
|
||||||
|
<div
|
||||||
|
th:replace="~{fragments/common :: fileSelector(name='cert', multiple=false, notRequired=true, accept='.pem,.der')}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label th:text="#{certSign.password}"></label> <input
|
||||||
|
type="password" class="form-control" id="password"
|
||||||
|
name="password">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label><input type="checkbox" id="showSignature"
|
||||||
|
name="showSignature" th:text="#{signCert.showSig}"></label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="signatureDetails" style="display: none;">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="reason" th:text="#{signCert.reason}"></label> <input type="text"
|
||||||
|
class="form-control" id="reason" name="reason">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="location" th:text="#{signCert.location}"></label> <input type="text"
|
||||||
|
class="form-control" id="location" name="location">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name" th:text="#{signCert.name}"></label> <input type="text"
|
||||||
|
class="form-control" id="name" name="name">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="pageNumber" th:text="#{pageNum}"></label> <input
|
||||||
|
type="number" class="form-control" id="pageNumber"
|
||||||
|
name="pageNumber" min="1">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
document
|
||||||
|
.getElementById('certType')
|
||||||
|
.addEventListener(
|
||||||
|
'change',
|
||||||
|
function() {
|
||||||
|
var p12Group = document
|
||||||
|
.getElementById('p12Group');
|
||||||
|
var pemGroup = document
|
||||||
|
.getElementById('pemGroup');
|
||||||
|
if (this.value === 'PKCS12') {
|
||||||
|
p12Group.style.display = 'block';
|
||||||
|
pemGroup.style.display = 'none';
|
||||||
|
} else if (this.value === 'PEM') {
|
||||||
|
p12Group.style.display = 'none';
|
||||||
|
pemGroup.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
p12Group.style.display = 'none';
|
||||||
|
pemGroup.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document
|
||||||
|
.getElementById('showSignature')
|
||||||
|
.addEventListener(
|
||||||
|
'change',
|
||||||
|
function() {
|
||||||
|
var signatureDetails = document
|
||||||
|
.getElementById('signatureDetails');
|
||||||
|
if (this.checked) {
|
||||||
|
signatureDetails.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
signatureDetails.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group text-center">
|
||||||
|
<button type="submit" id="submitBtn" class="btn btn-primary"
|
||||||
|
th:text="#{certSign.submit}"></button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div th:insert="~{fragments/footer.html :: footer}"></div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user