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

fixed wrong filename generation through stamp tool #757 #794

Merged
merged 4 commits into from
Feb 10, 2024
Merged

fixed wrong filename generation through stamp tool #757 #794

merged 4 commits into from
Feb 10, 2024

Conversation

mannam11
Copy link
Contributor

@mannam11 mannam11 commented Feb 9, 2024

  • fixed the wrong filename generation through stamp tool when downloaded.
  • changed variable names from 'watermark' to 'stamp' in StampController file, so that there will be no confusion in the future between these two.

Closes #757

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)

@mannam11 mannam11 requested a review from Frooodle as a code owner February 9, 2024 14:12
@sbplat
Copy link
Member

sbplat commented Feb 9, 2024

Please complete the checklist as well, thanks!

@mannam11
Copy link
Contributor Author

@sbplat I have reviewed and completed the checklist

@Frooodle
Copy link
Member

ahh some conflicts now sorry could you resolve

@mannam11
Copy link
Contributor Author

@Frooodle did some changes but its broke.

@Frooodle
Copy link
Member

No problem, let me fix :)

@@ -88,6 +88,45 @@ public ResponseEntity<byte[]> addStamp(@ModelAttribute AddStampRequest request)
// Load the input PDF
PDDocument document = Loader.loadPDF(pdfFile.getBytes());

for (PDPage page : document.getPages()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated code due to code merge I think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced by l132

@Frooodle Frooodle merged commit 7a9417a into Stirling-Tools:main Feb 10, 2024
3 checks passed
@mannam11
Copy link
Contributor Author

Thanks @Frooodle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documents generated through the stamp tool are named FILENAME_watermarked.pdf
3 participants