Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add paging seal function #1546

Closed
wants to merge 5 commits into from
Closed

Conversation

hxlcw
Copy link

@hxlcw hxlcw commented Jul 9, 2024

Description

Please provide a summary of the changes, including relevant motivation and context.

I have added a feature to the Stirling-PDF project that allows users to add a paging seal to their PDF documents. By uploading a PDF file and an image of the seal, users can adjust the seal’s size on the first page, transparency, and Y-axis position. This feature enables users to place a seal that spans across multiple pages, with each page showing a part of the seal.

Checklist:

  • I have read the Contribution Guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Contributor License Agreement

By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under the MPL 2.0 (Mozilla Public License Version 2.0) license.

(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)

@hxlcw hxlcw requested a review from Frooodle as a code owner July 9, 2024 07:14
@github-actions github-actions bot added Java Pull requests that update Java code Front End Issues or pull requests related to front-end development Translation labels Jul 9, 2024
@Frooodle
Copy link
Member

Frooodle commented Jul 20, 2024

Sorry for not getting to this been way to busy, can you show some example outputs?
and of the UI page just so I have more context

@hxlcw
Copy link
Author

hxlcw commented Jul 22, 2024

A "Paging Seal" is a security measure where a single stamp or seal is applied across the edge of multiple pages of a document, typically along the rightmost side. This ensures that the pages are physically linked and cannot be easily separated or altered without detection. The purpose of the paging seal is to prevent tampering or unauthorized changes to the document.

Here is the UI page where you can choose a PDF file and a seal image file, and edit the seal rate of the first page , the seal size, seal opacity, seal Y position.
image

Here is the output. When the 'First Page Rate' is set to 0.5 (meaning 50%), the output will look like this.
image

Page 1 sealed (1).pdf

@Frooodle
Copy link
Member

I think we already have a stamp feature for this
Can you confirm? Would there be any new functionality brought?

@hxlcw
Copy link
Author

hxlcw commented Jul 22, 2024

The old stamp function only stamps one picture or text onto a PDF file, but this new function focuses on stamping the same image onto every page of the PDF file, ensuring it appears evenly distributed on each page. Both are stamp functions, but the old one cannot do what I want to do.

@Frooodle
Copy link
Member

This should enhance or replace previous stamp function not be an addition, we shouldn't duplicate this

@hxlcw
Copy link
Author

hxlcw commented Jul 22, 2024

Okay, I understand. I will close this request now. Maybe next time, I can enhance the existing stamp feature and commit the changes.

@hxlcw hxlcw closed this Jul 22, 2024
@Frooodle
Copy link
Member

It would be a brilliant enhancement please do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Front End Issues or pull requests related to front-end development Java Pull requests that update Java code Translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants