>
>
>> > lib/report/state/Generic-SUTA-pdf.cpp: In member function 'double
>> Report_Generic_SUTA::_pdf_rpt_header(PoDoFo::PdfMemDocument*,
>> PoDoFo::PdfPainter&, double) const':
>> > lib/report/state/Generic-SUTA-pdf.cpp:182:7: error: 'class
>> PoDoFo::PdfPainter' has no member named 'DrawRect'
>> >   pntr.DrawRect (x1, y, w1, h1, r1, r1);
>> >        ^
>> >
>> > lib/pdf/pdf-tools.cpp: In function 'void
>> pdf_setAppearanceStreamCheckBox(PoDoFo::PdfCheckBox*)':
>> > lib/pdf/pdf-tools.cpp:113:10: error: 'class PoDoFo::PdfPainter' has no
>> member named 'FillRect'
>> >   painter.FillRect (0, xObjOff.GetPageSize().GetHeight(),
>> xObjOff.GetPageSize().GetWidth(), xObjOff.GetPageSize().GetHeight());
>> >           ^
>>
>> Caused by drawing API change.
>>
>>
> What was the rationale for removing DrawRect() and FillRect()?  This
> change breaks existing, working, code.
>
> What code should I replace those with?
>
>
I changed calls to "DrawRect" to "Rectangle", and calls to "FillRect" to
"Rectangle" followed by "Fill()".  If this was the incorrect solution,
please let me know.

Maybe I missed the release notes, but this API change was frustrating.

ps- the online doxygen still lists the older API.
http://podofo.sourceforge.net/doc/html/classPoDoFo_1_1PdfPainter.html
(FillRect() still listed).
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to