mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
+plugin/wincert: basic Win32 certificate manipulation and PDF digital signing git-svn-id: svn://ultimatepp.org/upp/trunk@3715 f0d560ea-af0d-0410-9eb7-867de7ffcac7
21 lines
388 B
Text
21 lines
388 B
Text
#include "PdfDraw.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
String Pdf(const Array<Drawing>& report, Size sz, int margin, bool pdfa)
|
|
{
|
|
PdfDraw w(sz + 2 * margin, pdfa);
|
|
for(int i = 0; i < report.GetCount(); i++) {
|
|
w.StartPage();
|
|
w.DrawDrawing(margin, margin, sz.cx, sz.cy, report[i]);
|
|
w.EndPage();
|
|
}
|
|
return w.Finish();
|
|
}
|
|
|
|
INITBLOCK
|
|
{
|
|
SetDrawingToPdfFn(Pdf);
|
|
}
|
|
|
|
END_UPP_NAMESPACE
|