wxpdfdocument please for image Topic is solved

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

wxpdfdocument please for image

Post by JPlaroche »

int main(int argc, char** argv)
{
wxFileInputStream f(_T("wxpdfdoc.png"));
wxPdfDocument pdf;
pdf.Open();
pdf.AddPage();
pdf.SetFont(_T("courier"),_T("B"),10);
//wxColour(red=0, green=0, blue=0)
pdf.SetTextColor(wxColour(220,50,50));
// pdf.SetTextColor(128);
pdf.Text(01,3,_T("Hello World!"));
pdf.Image(_T("wxpdfdoc.png"),10,10,130,0,_T("PNG"));
pdf.Image(_T("wxpdfdoc.png"),10,50,130);
pdf.Image(_T("wxpdfdoc"),10,80,130);

// pdf.SetTextColor(128);
pdf.Text(01,50,_T("Hello World!"));
pdf.Close();
if (f.Ok() == true) pdf.SaveAsFile(_T("clipping.pdf"));

return 0;
}

is very GOOD all works perfectly

except that the picture ..... does not climb in the pdf

version 0.7

I have tested and put in focntion d
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxpdfdocument please for image

Post by utelle »

The solution to this problem can be found in the wxCode forum section thread.

Regards,

Ulrich
Post Reply