Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.23
-
None
-
None
-
Patch
Description
PDFBOX-2512 might have failed earlier if I hadn't used
MemoryUsageSetting.setupMixed(15000000)
to limit the memory usage of PDDocument document to 15 MB in CreateVisibleSignature in
a) setVisibleSignDesigner() and used the now memory-aware constructor of PDVisibleSignDesigner
and
b) in signPDF(), reused PDDocument
setTsaUrl(tsaUrl);
PDDocument doc = null;
if (null != visibleSignDesigner)
if (null == doc)
{ doc = Loader.loadPDF(inputFile, memoryUsageSetting); } // creating output document and prepare the IO streams.
...