ultimatepp/uppdev/PDF/main.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

16 lines
499 B
C++

#include "PDF.h"
#include <PdfDraw/PdfDraw.h>
GUI_APP_MAIN
{
PdfDraw pdf;
// pdf.DrawRect(100, 100, 500, 500, Blue);
FontInfo fi = ScreenInfo().GetFontInfo(Roman(100));
pdf.DrawRect(100, 100, 100, fi.GetHeight(), LtGray);
pdf.DrawRect(100, 100 + fi.GetAscent(), 100, 1, Blue);
pdf.DrawText(100, 100, "Ahoj", Roman(100), Black);
pdf.DrawRect(1000, 1000, 100, 100, LtGray);
pdf.DrawText(1000, 1000, 300, "Angle!", Roman(100), Black);
SaveFile("d:\\pdf.pdf", pdf.Finish());
}