On Mon, 2013-05-27 at 09:22 +0200, Juan Francisco González Navarro
wrote:

>     IS there any way to write vertical? Now, I'm writing letter by
> letter using DrawText.

        Hi,
I suppose from Dominik's response that you do not want a rotated text,
but writing text top-to-bottom, instead of left-to-right. I have an idea
on rotated text only (I'm not helpful here).

> 
>     Where can i find an example to fill a rectangle with a gradient?

Try something like this:
-------------
void drawGradientRect(PdfDocument *document,
                      PdfPainter *painter,
                      double dx,
                      double dy,
                      double w,
                      double h,
                      bool horizontal,
                      const PdfColor &colorFrom,
                      const PdfColor &colorTo)
{
        PdfAxialShadingPattern pattern(
                dx,
                dy,
                horizontal ? dx + w : dx,
                horizontal ? dy : dy + h,
                colorFrom,
                colorTo,
                document);

        painter->Save();
        painter->SetShadingPattern(pattern);
        painter->FillRect(dx, dy, w, h);
        painter->Restore();
}

-------------
        Bye,
        Milan


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to