Skip to content

Commit

Permalink
For #30 - Provide method to get PDDocument so it can be protected. [c…
Browse files Browse the repository at this point in the history
…i skip]
  • Loading branch information
danfickle committed Jul 8, 2016
1 parent a8c1dfe commit c329c0e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Calendar;
import java.util.List;
import java.util.regex.Pattern;

Expand Down Expand Up @@ -342,6 +343,10 @@ public Document getDocument() {
return _doc;
}

public PDDocument getPdfDocument() {
return _pdfDoc;
}

/**
* @deprecated Use builder instead.
* @param splitterFactory
Expand Down Expand Up @@ -473,14 +478,6 @@ public void setDocument(Document doc, String url, NamespaceHandler nsh) {
setDocumentP(doc, url, nsh);
}

public PDEncryption getPDFEncryption() {
return _pdfEncryption;
}

public void setPDFEncryption(PDEncryption pdfEncryption) {
_pdfEncryption = pdfEncryption;
}

/**
* @deprecated Use builder instead.
* @param v
Expand Down Expand Up @@ -699,6 +696,9 @@ private void setDidValues(PDDocument doc) {
info.setKeywords(v);
}

info.setCreationDate(Calendar.getInstance());
info.setProducer("openhtmltopdf.com");

doc.setDocumentInformation(info);
}

Expand Down

0 comments on commit c329c0e

Please sign in to comment.