Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Balajipa03 authored Sep 4, 2024
1 parent da4d81d commit af51275
Show file tree
Hide file tree
Showing 26 changed files with 2,082 additions and 1 deletion.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pdfmerge.me
21 changes: 21 additions & 0 deletions LICENCE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 BRADSEC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
# pdf-merger
# PDFMerge

PDFMerge is a web-based application for merging PDFs and images into a single document. It operates entirely client-side for maximum privacy, using JavaScript, HTML, and CSS. Built on the robust [PDF-LIB.js](https://pdf-lib.js.org/) library, PDFMerge offers efficient PDF generation and manipulation. It also leverages the HTML5 FileReader API for image handling, and basic GPS and date EXIF details from photos thanks to [ExifReader](https://github.com/mattiasw/ExifReader). Key features include:

- Merging PDFs/Images: Combine PDFs with .jpg, .png, .webp, .gif.
- Image Optimisation: Automatic resizing and optimisation for PDF A4 page format.
- Privacy Focus: No server uploads, ensuring user data privacy.
- EXIF Data Integration for images/photos: Optionally add file names, SHA-256 hash, and GPS/date EXIF details.
- Customisable Watermarking: Add text watermarks with adjustable color and opacity.
- Browser Compatibility: Optimal in Google Chrome; functional in other browsers with potential limitations.

## Try it out @ [pdfmerge.me](https://pdfmerge.me)

## Screenshots
![PDFMerge Interface](screenshot.png)


## Known Limitations and Testing

- **In-Browser Processing Constraints:** PDFMerge runs directly in your browser, using client-side resources. This approach guarantees data privacy and eliminates the need for server-side data transfer. However, it does limit performance to what your device and browser can handle. This is particularly noticeable with large image files. Image files are restricted to a maximum size of 50MB due to potential performance issues during resizing with the HTML5 FileReader method. For larger images, it's advisable to use external tools to reduce their size and resolution before using them with the PDFMerge application. In testing [Google Chrome](https://www.google.com.au/chrome/) was able to handle larger files sizes and also larger lists of files at once better than Firefox. Firefox on occassion would hang and timeout on the same file lists which Chrome could process.

## Credits and Third-Party Licensing
- **[PDF-LIB.js](https://pdf-lib.js.org/)** by Andrew-Dillon | [MIT License](https://opensource.org/licenses/MIT)
- **[ExifReader](https://github.com/mattiasw/ExifReader)** by Mattias Wallander | [MPL-2.0 license](https://www.mozilla.org/en-US/MPL/2.0/)
- **Roboto Regular, Bold, and Black Fonts** by Christian Robertson | [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)

Empty file added css/index.html
Empty file.
154 changes: 154 additions & 0 deletions css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/* Custom CSS Reset */
/* Modified 10 DEC 2023 */

/* Box Sizing */
*,
*::before,
*::after {
box-sizing: border-box;
}

/* Base Styles */
html {
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: none;
text-size-adjust: none;
}

body {
margin: 0;
min-height: 100vh;
font-family: inherit;
-webkit-font-smoothing: antialiased;
color: black;
background: white;
line-height: 1.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-size: 1em;
font-weight: normal;
line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
text-wrap: balance;
}

p,
a,
ul,
ol,
li,
blockquote,
article,
main,
aside,
footer,
header,
section {
margin: 0;
padding: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}

/* Media Defaults */
img {
display: block;
max-width: 100%;
height: auto;
}

/* List Styles */
ul[role="list"],
ol[role="list"] {
list-style: none;
}

/* Button and Input Styles */
button,
input,
textarea,
select {
border: none;
background-color: transparent;
padding: 0;
font: inherit;
}

a {
color: inherit;
text-decoration: none;
text-decoration-skip-ink: auto;
}

button {
cursor: pointer;
}

/* Additional Resets */
table {
border-collapse: collapse;
border-spacing: 0;
}

/* Override browser default styles */
::-moz-selection,
::selection {
background-color: #b3d4fc;
color: #000000;
text-shadow: none;
}

/* Additional Form Element Styles */
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}

button,
input {
overflow: visible;
}

button,
select {
text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
min-height: 10em;
}

/* Extra scroll margin for anchored elements */
:target {
scroll-margin-block: 5ex;
}
Loading

0 comments on commit af51275

Please sign in to comment.