Skip to content

Commit

Permalink
Testing PDF text overlay problem.
Browse files Browse the repository at this point in the history
[#182287388]
  • Loading branch information
EricMN35Johnson committed Jun 1, 2022
1 parent 0a4984b commit df1ed7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -122,7 +122,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
implementation("com.google.crypto.tink:tink:1.6.1")
implementation("org.flywaydb:flyway-core:8.5.11")
implementation("org.flywaydb:flyway-core:8.5.12")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.mixpanel:mixpanel-java:1.5.0")
implementation("org.springframework.boot:spring-boot-starter-validation")
Expand Down
Expand Up @@ -67,8 +67,9 @@ private PDDocument fillOutPdfs(Collection<PdfField> fields, Resource pdfResource
try {
PDDocument loadedDoc = PDDocument.load(pdfResource.getInputStream());
PDAcroForm acroForm = loadedDoc.getDocumentCatalog().getAcroForm();
acroForm.setNeedAppearances(true);
acroForm.setNeedAppearances(false);
fillAcroForm(fields, acroForm);
acroForm.flatten();
return loadedDoc;
} catch (IOException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit df1ed7e

Please sign in to comment.