Skip to content

Commit

Permalink
working version of datestamppdf with 530-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
evansmith committed Mar 26, 2024
1 parent 1a9bbce commit 7dc0522
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/models/saved_claim/burial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def form_matches_schema
def process_pdf(pdf_path, timestamp = nil, form_id = nil)
processed_pdf = CentralMail::DatestampPdf.new(pdf_path).run(
text: 'Application Submitted on va.gov',
x: form_id == '21P-530V2' ? 400 : 300,
y: form_id == '21P-530V2' ? 675 : 775,
x: 400,
y: 675,
text_only: true, # passing as text only because we override how the date is stamped in this instance
timestamp:,
page_number: form_id == '21P-530V2' ? 6 : 0,
page_number: 6,
template: "lib/pdf_fill/forms/pdfs/#{form_id}.pdf",
multistamp: true
)
Expand Down
11 changes: 6 additions & 5 deletions app/sidekiq/central_mail/submit_saved_claim_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,19 @@ def process_record(record, timestamp = nil, form_id = nil)
stamped_path1 = CentralMail::DatestampPdf.new(pdf_path).run(text: 'VA.GOV', x: 5, y: 5)
stamped_path2 = CentralMail::DatestampPdf.new(stamped_path1).run(
text: 'FDC Reviewed - va.gov Submission',
x: 429,
x: 400,
y: 770,
text_only: true
)
if form_id.present? && ['21P-530V2'].include?(form_id)
processed_pdf = CentralMail::DatestampPdf.new(stamped_path2).run(
CentralMail::DatestampPdf.new(stamped_path2).run(
text: 'Application Submitted on va.gov',
x: form_id == '21P-530V2' ? 400 : 300,
y: form_id == '21P-530V2' ? 675 : 775,
x: 425,
y: 675,
text_only: true, # passing as text only because we override how the date is stamped in this instance
timestamp:,
page_number: form_id == '21P-530V2' ? 6 : 0,
page_number: 5,
size: 9,
template: "lib/pdf_fill/forms/pdfs/#{form_id}.pdf",
multistamp: true
)
Expand Down

0 comments on commit 7dc0522

Please sign in to comment.