Skip to content

Commit

Permalink
faulty merge fixes from test-marshal to dev/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Hundal committed Nov 8, 2024
1 parent 60c496a commit 2db0d47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(self, jobid, requestid, ministryrequestid, category, requestnumber,
self.attributes = attributes
self.summarydocuments = summarydocuments
self.redactionlayerid = redactionlayerid
self.feeoverridereason = feeoverridereason
self.requesttype = requesttype
self.feeoverridereason = feeoverridereason

Expand Down
19 changes: 1 addition & 18 deletions computingservices/ZippingServices/services/zipperservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,4 @@ def __getzipfilepath(foldername, filename):
foldername.capitalize() + "/" + filename + ".zip"
if foldername is not None
else filename + ".zip"
)


def __removesensitivecontent(documentbytes):
# clear metadata
reader2 = PyPDF2.PdfReader(BytesIO(documentbytes))
# Check if metadata exists.
if reader2.metadata is not None:
# Create a new PDF file without metadata.
writer = PyPDF2.PdfWriter()
# Copy pages from the original PDF to the new PDF.
for page_num in range(len(reader2.pages)):
page = reader2.pages[page_num]
writer.add_page(page)
#writer.remove_links() # to remove comments.
buffer = BytesIO()
writer.write(buffer)
return buffer.getvalue()
)

0 comments on commit 2db0d47

Please sign in to comment.