tencrocs / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

UnicodePDF produces blank page #358

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. successful pdf creation will fail in producing UnicodePDF
2.
3.

What is the expected output? What do you see instead?
PDF document is blank.

What version of the product are you using? On what operating system?
0.1.5

Please provide any additional information below.
Whenever I switch new PDF to new UnicodePDF resulting page will be blank. Is 
there any simple tutorial on how to correctly use unicodePDF? I need a Czech 
alphabet in particular.

here is my code:

    import org.alivepdf.pdf.PDF;
    import org.alivepdf.pdf.UnicodePDF;
    import org.alivepdf.saving.*
    import org.alivepdf.layout.*;
    import org.alivepdf.images.*;
    import org.alivepdf.fonts.*;

    import org.alivepdf.fonts.unicodefonts.ArialUnicodeMS;

    private function createPdf():void{
myPdf=new UnicodePDF( Orientation.PORTRAIT, Unit.MM, Size.LEGAL );
myPdf.addPage();
myPdf.writeText( 12, "SOME TEXT");
myPdf.save(Method.REMOTE, "http://www.myweb.com/php/createpdf.php", 
Download.ATTACHMENT, "myfile.pdf");

Doesn't work....
What am I doing wrong. Or, what am I missing???

Thank you

Original issue reported on code.google.com by Ondrej.J...@gmail.com on 10 Aug 2012 at 1:32