Till now i use podofo like static library and i draw text ang images lines
well
but now i use shared library
maybe links to thirdparty(fretype, libjpeg) doesnt work.
Mabe need additional configuration for my project?
2009/6/9 Vad N <[email protected]>

> Do you use PoDoFo trunk
>>
> Yes I do.
>
>> Which encoding
>>
> do you use?
>
> If i understand correctly you mean the charackter encoding?
>
> In VS2005  I set the Charckter set option  to Use Multi-Byte Character Set
>
>
> 2009/6/9 Dominik Seichter <[email protected]>
>
>> Hi,
>>
>> This code produces a correct PDF file including the text on my system. See
>> the
>> attached PDF tttttt.pdf.
>>
>> The fonts are embedded corrrectly, too, in the PDF you sent me. If I edit
>> the
>> PDF manually (using PoDoFo browser) and append the text (Test) Tj, it
>> works,
>> too (see vad2.pdf).
>>
>> Some how hex encoding of the text does not work on your system. Which
>> encoding
>> do you use? Which version of PoDoFo do you use? Do you use PoDoFo trunk?
>>
>> best regards,
>>        Dom
>>
>> Am Dienstag, 9. Juni 2009 schrieb Vad N:
>> > Thanks for the help
>> > My code snippet is:
>> > //----START
>> > PoDoFo::PdfMemDocument pdfDocument_;
>> >  PoDoFo::PdfPainter painter_;
>> >
>> >  PoDoFo::PdfPage *Page_;
>> >  PoDoFo::PdfOutlines* outlines_;
>> >  PoDoFo::PdfOutlineItem* pRoot_;
>> >
>> >  outlines_ = pdfDocument_.GetOutlines();
>> >
>> >  pRoot_ = outlines_->CreateRoot("Document");
>> >
>> >  Page_ = pdfDocument_.CreatePage(
>> PoDoFo::PdfPage::CreateStandardPageSize(
>> > PoDoFo::ePdfPageSize_A4 ) );
>> >
>> >  painter_.SetPage( Page_);
>> >
>> >  pRoot_->CreateChild( "Line Test", PoDoFo::PdfDestination( Page_ ) );
>> >
>> >  painter_.FinishPage();
>> >
>> >  Page_ =
>> pdfDocument_.CreatePage(PoDoFo::PdfPage::CreateStandardPageSize(
>> > PoDoFo::ePdfPageSize_Letter ));
>> >
>> >  painter_.SetPage( Page_);
>> >
>> >  pRoot_->CreateChild( "Line Test", PoDoFo::PdfDestination( Page_ ) );
>> >
>> >  pRoot_->Last()->CreateNext( "Table", PoDoFo::PdfDestination( Page_ ) );
>> >
>> >   PoDoFo::PdfFont* pFont;
>> >
>> >   pFont = pdfDocument_.CreateFont( "Arial" );
>> >
>> >   if( !pFont )
>> >   {
>> >   PODOFO_RAISE_ERROR( PoDoFo::ePdfError_InvalidHandle );
>> >   }
>> >
>> >   pFont->SetFontSize(12);
>> >
>> >   painter_.SetFont( pFont );
>> >
>> >   painter_.SetColor( 0,0,0);
>> >
>> >   painter_.DrawText(11,11,
>> > "TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXT");
>> >
>> >   painter_.FinishPage();
>> >
>> >   pdfDocument_.Write("ttttttttttttt.pdf");
>> >
>> > //----END
>> > Also i attach pdf document
>> >
>> >
>> > 2009/6/9 Dominik Seichter <[email protected]>
>> >
>> > > Hi,
>> > >
>> > > We really like everyone to help here on this list. But how shall we
>> help
>> > > you,
>> > > without an example PDF or a test case?
>> > > I only can help if I can reproduce the issue or see your code so that
>> I
>> > > can find any problems. Without any information, I can just guess and
>> this
>> > > would waste my and your time.
>> > >
>> > > Please send a test case or an example. Thanks.
>> > >
>> > > Best regards,
>> > >        dom
>> > >
>> > > Am Dienstag, 9. Juni 2009 schrieb Vad N:
>> > > > Hi.
>> > > > I use VS2005
>> > > > I create podofo shared library and try to use it in my app.
>> > > > I dont know why, but the document produced is without text.
>> > > > Maybe you know how to solve this problem?
>> > >
>> > > --
>> > > **********************************************************************
>> > > Dominik Seichter - [email protected]
>> > > KRename  - http://www.krename.net  - Powerful batch renamer for KDE
>> > > KBarcode - http://www.kbarcode.net - Barcode and label printing
>> > > PoDoFo - http://podofo.sf.net - PDF generation and parsing library
>> > > SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,
>>  for
>> > > KDE Alan - http://alan.sf.net - A Turing Machine in Java
>> > > **********************************************************************
>>
>>
>>
>> --
>> **********************************************************************
>> Dominik Seichter - [email protected]
>> KRename  - http://www.krename.net  - Powerful batch renamer for KDE
>> KBarcode - http://www.kbarcode.net - Barcode and label printing
>> PoDoFo - http://podofo.sf.net - PDF generation and parsing library
>> SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for
>> KDE
>> Alan - http://alan.sf.net - A Turing Machine in Java
>> **********************************************************************
>>
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to