Re: [Podofo-users] Bug in podofo-doc.rc.in from rev 1605

2014-06-17 Thread zyx
On Mon, 2014-06-16 at 10:45 +0200, Petr Pytelka wrote:
 My current solution is to revert back the change.

Hi,
thanks for the heads-up, I fixed it in r1642:
http://sourceforge.net/p/podofo/code/1642
Bye,
zyx

-- 
http://www.litePDF.cz i...@litepdf.cz


--
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


Re: [Podofo-users] Heads-Up: Drawing API to be changed within the next few weeks

2014-06-17 Thread Dennis Jenkins
 lib/report/ReportBaseClass-pdf.cpp:58:15: error: 'const class

  PoDoFo::PdfError' has no member named 'what'
  ._txt (err.what());
 ^

 Hi,
 the above is caused by change of the PdfError class, it doesn't
 inherit from std::exception anymore.



Why was this done?



  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?
--
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


Re: [Podofo-users] Heads-Up: Drawing API to be changed within the next few weeks

2014-06-17 Thread Dennis Jenkins


  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


Re: [Podofo-users] Heads-Up: Drawing API to be changed within the next few weeks

2014-06-17 Thread Dennis Jenkins
On Tue, Jun 17, 2014 at 4:29 PM, Dennis Jenkins dennis.jenkins...@gmail.com
 wrote:




 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.



I found your notes in the SVN commit messages.  DrawRect() is now
Rectangle() followed by Stroke() (although in my existing reports, I
did not need to call Stroke, I added the call anyway, per your notes.)

My project now compiles cleanly with podofo rev 1642, and my PDFs appear ok
so far.

I suppose that I was expecting to see some sort of organized release notes
giving a brief mention to the API change details, instead of hey, I
changed stuff and merged it into trunk!.  :)  In any event, I wish to
thank you for your contributions.  Now that I have read your notes, your
rationales make sense.  I was just frustrated that it broke my own
project.  But I'm good now.
--
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