Code Monkey home page Code Monkey logo

alivepdf's Introduction

AlivePDF

The official AlivePDF repository has now moved here.

AlivePDF is a client side AS3 PDF generation library for Adobe Flash, Flex and AIR

Compile

gradle compile

alivepdf's People

Contributors

filou77 avatar francksyren avatar ghazitriki avatar igorcosta avatar marklynch avatar teuf22 avatar thibaultimbert avatar xagnetti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alivepdf's Issues

Allow support for rotated type

How can we support rotation of text within the PDF?

Could we possibly modify the addText method to accept a Matrix? This
modification will probably require a combination addCell and addText method
so that a user can add a text string that is rotated, without having to
create cells and additional elements on their own.

addCell does not currently support rotation, so I'm not sure right yet how
this would be possible.


Original issue reported on code.google.com by [email protected] on 10 Oct 2007 at 1:10

pdf.addImage() problem

What steps will reproduce the problem?
1. i need to add images to pdf book, the images are loaded at run time, and
i put pdf.addImage(imageLoaded, bla bla bla bla), but in all pages the
images are the same. if I put pdf.addText the text changes fine :s
2. for testing, i made a function to save the image loaded to my disk, and
saves the right image, at the right time...

What version of the product are you using? On what operating system?
0.14 winXp 2k

Please provide any additional information below.
Urgent, my dead line has past over at two days :s

i just need to know how to clear data from the last pdf.addImage

help!!

Original issue reported on code.google.com by [email protected] on 6 Feb 2008 at 3:11

setXY(x,y) does not work

What steps will reproduce the problem?
1. Using J2EE version of the create.php file
2. Try to set the X and Y coordinates of the page
3. Add multicell text

What is the expected output? What do you see instead?
I want to see the text at a specified coordinate,but the setXY() method 
does not work.

What version of the product are you using? On what operating system?
Most current.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Jun 2008 at 4:01

PDF will not load

Hello, I came across a little problem, the pdf will not generate...  I
placed the create.php file in the webserver folder which is running php
version 5.2.3 and ran the demo swf file that was is the folder (after
changing the URL the swf file sends the data to inside the flash project)
tried to run it and nothing happens, just a blank page that seems to load
but nothing appears...  Although the URL is HUGE
http://cgi.ctrlzsc.com/create.php?name=generated.pdf?%PDF-1.31%200%20obj%3C%3C/T
ype%20/Pages/Kids%20[3%200%20R5%200%20R7%200%20R9%200%20R11%200%20R13%200%20R15%
200%20R17%200%20R]/Count%208%3E%3Eendobj3%200%20obj%3C%3C/Type%20/Page/Parent%20
1%200%20R/MediaBox%20[0%200%20595.28%20841.89]/Resources%202%200%20R/Annots%20[%
3C%3C/Type%20/Annot%20/Subtype%20/Link%20/Rect%20[198.42519685039372%20785.19708
66141731%20368.503937007874%20830.5514173228346]%20/Border%20[0%200%200]%20/A%20
%3C%3C/S%20/URI%20/URI%20(http://www.bytearray.org)%3E%3E%3E%3E]/Rotate%200/Dur%
203/Contents%204%200%20R%3E%3Eendobj4%200%20obj%3C%3C/Length%202648%3E%3Estream2
%20J0.57%20w0%20Tr0%20Tw%200%20Tc%20100%20Tz%200%20TL%20BT%20/F1%2012.00%20Tf%20
ETBT%20/F1%2020.00%20Tf%20ETq%201%200.39215686274509803%200%20rg%20BT%20226.77%2
0807.87%20Td%20(AlivePDF)%20Tj%20ET%20Q0.23368796706199646%200.9398626163601875%
200.41074018087238073%20RG2.83%20w[]%200%20d1%20J0%20j3%20M0.9579293262213469%20
0.30494560534134507%200.9262860114686191%20rg28.35%20768.19%20141.73%20-70.87%20
re%20bBT%20/F1%2013.00%20Tf%20ET0%20Tr0%20Tw%200%20Tc%20100%20Tz%200%20TL%20q%20
0%200%200%20rg%20BT%20198.43%20714.33%20Td%20(A%20rectangle%20with%20CapsStyle.R
OUND%20and%20JointStyle.MITER)%20Tj%20ET%20Q0.4652064465917647%200.8187421546317
637%200.8579700319096446%20RG2.83%20w[]%200%20d2%20J0%20j3%20M0.7717766682617366
%200.12862815987318754%200.10128108225762844%20rg62.36%20671.81%20m136.06%20671.
81%20l154.85%20671.81%20170.08%20656.58%20170.08%20637.80%20c%20170.08%20634.96%
20l170.08%20616.17%20154.85%20600.95%20136.06%20600.95%20c%2062.36%20600.95%20l4
3.58%20600.95%2028.35%20616.17%2028.35%20634.96%20c%2028.35%20637.80%20l28.35%20
656.58%2043.58%20671.81%2062.36%20671.81%20c%20b0%20Tr0%20Tw%200%20Tc%20100%20Tz
%200%20TL%20q%200%200%200%20rg%20BT%20198.43%20572.60%20Td%20(A%20rounded%20rect
angle%20with%20angle%20radius%20of%209)%20Tj%20ET%20Q0.8828571941703558%200.9731
736006215215%200.027838857378810644%20RG2.83%20w[]%200%20d0%20J2%20j3%20M0.36788
27118128538%200.8673644568771124%200.3797314004
I would assume thats the pdf data being transferred?  

Original issue reported on code.google.com by [email protected] on 30 Aug 2007 at 7:22

Password and other restrictions of generated PDF

As the AlivePDf project is based on the FPDF project, perhaps it could also
include the password and other restrictions such as no copying and no
printing that are available in PDFs. I found this add-on to the FPDF
project in PHP that may be useful in adding this type of functionality to
AlivePDF:
http://www.fpdf.org/en/script/script37.php

Original issue reported on code.google.com by [email protected] on 29 Jan 2008 at 4:46

TABLOID Constant in Size Class is Incorrect

What steps will reproduce the problem?
1. See that the TABLOID "x" pixel dimension is 612.
2. Realize that 11 x 72 == 792

What is the expected output? What do you see instead?
612 for the TABLOID constant should be changed to 792.


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


Please provide any additional information below.
Small bug, but it was driving me crazy when I was switching layout sizes. 
Millimeters are correct.


Original issue reported on code.google.com by [email protected] on 22 May 2008 at 7:45

Flash components are not visible in PDF output?


When I place a standard Flash ComboBox (or any component) inside of a
DisplayObject, then send the DisplayObject out for PDF generation, the
ComboBox will not appear.

I am using version 0.1.4.1 on WinXP.

Thanks! (good work, btw)

Matt


Original issue reported on code.google.com by [email protected] on 14 May 2008 at 11:12

addPage bug in addCell

Line 1811:

this.addPage( this.CurOrientation );

The first paramater to addPage isn't orientation.  The line should read
something like this:

this.addPage(this.CurFormat ,currentPage.rotation, this.CurOrientation);

Note: this.CurFormat is made up, it'll need to be created as well.

Original issue reported on code.google.com by [email protected] on 21 Oct 2007 at 10:02

Enhancement? Html Text

Are you planning on including htmlText in the upcoming release?  If so, is
it possible to get a pre-release version to look at?

Original issue reported on code.google.com by [email protected] on 4 Feb 2008 at 11:45

Scaled DisplayObjects cannot be display in generated PDF

What steps will reproduce the problem?
1. Scale a MovieClip either on stage or with obj.scaleX, obj.scaleY 
2. Add the MovieClip via addImage()
3. Attempt to create the PDF and view it

What is the expected output? What do you see instead?
Expect to see the MovieClip scaled in the PDF at the desired position.
Instead, the MovieClip is nowhere to be found. I tried nesting the scaled
movie inside another MovieClip to no avail.

What version of the product are you using? On what operating system?
v0.1.4
OS X 10.5.2

Please provide any additional information below.

var myPDF:PDF = new PDF ( Orientation.PORTRAIT, Unit.MM, Size.LETTER );
myPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE ); 
myPDF.addPage();

myMovieClip.scaleX = 0.9;
myMovieClip.scaleY = 0.9;

myPDF.addImage (myMovieClip, 1 , null, null, false, ImageFormat.JPG, 100,
0, 0, 0, 0);

var f:FileStream = new FileStream();
var file:File = File.desktopDirectory.resolvePath("generated.pdf");
f.open( file, FileMode.WRITE);
var bytes:ByteArray = myPDF.savePDF(Method.LOCAL);
f.writeBytes(bytes);
f.close();

Original issue reported on code.google.com by [email protected] on 29 Apr 2008 at 10:28

Trouble addImage, Error #2015

I want to add an Image, but it doesn't work? I have the following code:

var  im:Image = new Image();
im.source = "assets/images/blume3.jpg";

myPDF.addImage(im,1,null,null,false,ImageFormat.JPG);

But there is always the error:
ArgumentError: Error #2015: Ungültiges BitmapData. 

Has anybody an idea?

Isa




Original issue reported on code.google.com by [email protected] on 3 Apr 2008 at 10:35

Trouble saving to disk

What steps will reproduce the problem?
1. I was making a script with Flash CS3 and want to save the pdf file to my
hardisk, also I was using MDM ZINC software to do this, but when I save the
file without images everything works fine, but when I put images, have the
problem because when i try to open the final pdf file the acrobat tells me
in message that the file is corrupted, can you help me?

Original issue reported on code.google.com by [email protected] on 17 Sep 2007 at 3:12

Hi Res Images

In your Adobe Max Europe presentation you talked about the ability to put
high resolution images into the pdf. I was wondering if this is working yet
and how we go about doing it?


Original issue reported on code.google.com by [email protected] on 2 Feb 2008 at 8:39

Write local files(PDFS) with Flex

Hi, i've just released a post on www.madeinflex.com about read and write
local files with Flex, you could implement this feature on AlivePDF.

http://www.madeinflex.com/2008/02/11/leer-y-escribir-archivos-locales-en-flex

The post is in spanish but you can contact me for any issues.

Raul Diaz

Alive PDF is a GREAT job, congratulations!!!!

Original issue reported on code.google.com by [email protected] on 17 Feb 2008 at 11:50

saving image from screen

Finally got this to work, but how would you use this script to take a 
screen shot of the swf, say if i wanted to save a pdf of a drawing i made.

Original issue reported on code.google.com by [email protected] on 19 Sep 2007 at 9:13

Cannot use "Method.LOCAL" in "savePDF" request

When I click on the button, something seems to be work but any pop-up
appears on the screen.

I'm using the alivePDF library 0.1.4 downloaded yesterday on the site.

I make a script to run alivePDF with a Java server, and it runs perfectly,
I just have a problem to make the same thing in local.

the code :
myPDF.savePDF(Method.LOCAL,"", Download.ATTACHMENT, "myPDF.pdf");

Original issue reported on code.google.com by [email protected] on 5 Dec 2007 at 9:01

Unable to display Japanese Character

What steps will reproduce the problem?
1. var pdf:PDF = new PDF(...);
2. pdf.addPage();
3. pdf.setFont('arial', '', 12);
4. pdf.addCell(175,20,"遭え",0,1,'L',0);
2. pdf.end();
3. pdf.savePDF(...);

What is the expected output? What do you see instead?
Should display Japanese Text. Nothing is displayed, not even the cell addded.

What version of the product are you using? On what operating system?
AlivePDF 0.1.4, Flex 2.01, WinXP

Please provide any additional information below.

 Hi! first of all, thanks to the author of AlivePDF, you have done a fine
and great library. I have been working on creating PDF over Flex and
stumble to AlivePDF and things work great for me, except for one. 

Once you try adding Japanese Text in creating PDF, nothing gets displayed
even to the extent that the addCell is no longer displayed if it has a
Japanese text in it.

I have checked the CoreFonts.as, FontMetrics.as and some font related .as
files and maybe, its because it was never supported at all i suppose.

I am still currently trying to workout this, but if anyone has a solution,
please post your solution here. Many thanks!

Original issue reported on code.google.com by [email protected] on 30 Jan 2008 at 5:52

aliasNbPagesMethod not working as expected

What steps will reproduce the problem?
1. set aliasNbPagesMethodMethod
2. add {nb} to your document somewhere

What is the expected output? What do you see instead?
{nb} should be replaced by the total pages

Please provide any additional information below.

to fix this...
change line 2597 to read:
if( aliasNbPagesMethod != null )

Thanks, kevin

Original issue reported on code.google.com by [email protected] on 28 Jan 2008 at 11:33

Bug in setAutoPageBreak

What steps will reproduce the problem?
1. create a PDF with addCell long enough to span two pages

What is the expected output? What do you see instead?
The page should break before the bottom margin. Instead it goes to the end
of the page height.

Please provide any additional information below.

Two lines of code should change:

line 404 should read:       
private function setAutoPageBreak( auto:Boolean,margin:Number,t:Number=0 ):void

currently margin is set to int in this method which is not consistent with
margin elsewhere in the script.

line 245 should read:
setAutoPageBreak (true, margin * 2 );

The multiplier of 2 is consistent with the approach taken in FPDF and
produced the correct result in my testing (unlike the bitwise operator).

Thanks for a great library!  - Kevin


Original issue reported on code.google.com by [email protected] on 28 Jan 2008 at 8:33

Retrieve a textArea with AlivePDF

I can't succeed to retrieve a Flex textArea in a PDF document like I want.

The AddText function takes the page dimensions and not the textArea
parameters (impossible to give width and height parameters).

The AddTextNote give a better result but only when you roll over the symbol
:-)=> pdf is in the attached file.

Is there a method to do that ? 

Thanks !
Fred

Original issue reported on code.google.com by [email protected] on 6 Dec 2007 at 6:38

Attachments:

addImage method signature

I am wondering why the method signature of addImage is the way it is.
Because there is no method overloading in actionscript, I always feel the
most used parameters should go first.  In the case of addImage, I would
think that the parameters related to positioning and size are more often
changed than blend mode, etc..  Unfortunately, currently to change the
position and size one has to set almost all the other parameters.  Would it
be better to change the method argument order to this:

public function addImage ( pDisplayObject:DisplayObject, pX:Number=0,
pY:Number=0, pWidth:Number=0, pHeight:Number=0, pLink:String='', 
pAlpha:Number=1, pBlend:String="Normal", pMatrix:Matrix=null,
pResizePage:Boolean=false, pEncoding:String="JPG", pQuality:Number=100 ):void

this would allow for the following simplicity in adding an image:

myPDF.addImage(logo,100,400,100,100);

or if you don't need to scale...

myPDF.addImage(logo,100,400);


Just food for thought.  I don't know how other's feel.

- Kevin

Original issue reported on code.google.com by [email protected] on 30 Jan 2008 at 9:48

Margins not working on the first page

1. Set margins to 10,10,10,10
2. Set current position to 0,0
3. Add a multicell with many lines of text

On the first page, the text will start at 0,0 completely ignoring margins. 
When it flows onto the next page, it will auto-paginate, and then the 
margins are adhered to.

Bottom margin works however on the first page, top, left & does not.

Original issue reported on code.google.com by [email protected] on 30 Jan 2008 at 11:48

addMultiCell and accents

What steps will reproduce the problem?
1. Using addMultiCell including "é" or "à" character in the text.

What is the expected output? What do you see instead?
The line with the "é" or "à" character don't break to the next line. Text
go out of the cell.

What version of the product are you using? On what operating system?
0.1.4, windows XP

Thanks ofr this great library, great job!

Original issue reported on code.google.com by [email protected] on 18 Feb 2008 at 4:18

WriteHTML

Can you had the WriteHTML function of FPDF to mix bold, italic and
underline in the same text ?

Thanks a lot.


Original issue reported on code.google.com by [email protected] on 26 Sep 2007 at 12:33

Bookmarks not appearing in PDF

It seems that bookmarks don't appear in the output PDF.  The following code:

          var pdf:PDF;      
          pdf = new PDF();
          pdf.setDisplayMode (Display.FULL_PAGE,  Layout.SINGLE_PAGE);

          pdf.addPage();
          pdf.setFont( FontFamily.ARIAL );
          pdf.addBookmark("This is my bookmark",0,10,0,0.5);
          pdf.addText("My Text",1,10);  
      ...   


Will not produce the bookmark icon in the Adobe Reader that allows you to
view bookmarks.

It is possible that this is a case of me not using the API correctly.

Original issue reported on code.google.com by [email protected] on 3 Sep 2007 at 12:57

PDF page size

From what I have seen in the documentation it seems AlivePDF will only
create pdf files at a few preset sizes. Are there any plans to allow for
custom page sizes?

Original issue reported on code.google.com by [email protected] on 12 Nov 2007 at 12:10

AddMultiCell Method

File PDF.as line 2200.

for some reason when cw[c] is equal to 0 (when you find a character with an
accent),l is reseting to 0 as well.

so i added a temporary variable called cwi to store the value of cw[c] and
then add this value to l.

here is the correction :
        ...
        var cwi:int = cw[c];
    l+=cwi;
    if(l>wmax){
        ...
        }

good day to everyone


Original issue reported on code.google.com by [email protected] on 21 Dec 2007 at 3:34

Attachments:

Blank page after upgrade to Version 1.4.1

What steps will reproduce the problem?
1.  Upgrade from previous version to 1.4.1 
2.  Change format to meet new function definitions

What is the expected output? What do you see instead?
I expected that the pdf wold generate exactly as it did before the upgrade.
 Instead, I get a blank page no matter what I do.

What version of the product are you using? On what operating system?
1.4.1, Windows XP

Please provide any additional information below.
Using remote save...

Original issue reported on code.google.com by [email protected] on 19 May 2008 at 2:15

addMulticell does not keep x value on new page

What steps will reproduce the problem?
1. use addMultiCell to create a cell that goes over a page break.

What is the expected output? What do you see instead?
The cell line should go to the next page and the x value should remain so that 
the cells line up 
properly.

Instead the x value is reset to the margin value.

Here is the solution: (in the addCell method)

//Automatic page break
var tempX:Number=this.x; //old line: x=this.x;
 ws=this.ws;
 if(ws>0)
  {
    this.ws=0;
    this.write('0 Tw');
  }
this.addPage(this.currentOrientation, this.defaultUnit, this.defaultFormat 
,currentPage.rotation);
this.x = tempX ;//old line this.x = x;

The problem looks to be one of scope.  it seems like these variables were 
scoped with Java in 
mind.  With actionscript the 'var' keyword is needed.  I changed the name of 
the variable (tempX) 
to be clearer that this.x and x are two different variables.

I looked through the code and there seem to be numerous assignments between 
local & class x 
& y values.  This may be causing problems in other places as well.

Original issue reported on code.google.com by [email protected] on 23 Apr 2008 at 8:13

Small square pages are created in a sort of random fashion.

Sometimes the pages will be little squares instead of real pages.

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

Please provide any additional information below.

this usually happens when I output a really long datagrid, I catch the page
break before the auto-page-break happens so I can reinsert the datagrid
header on a new page.

Original issue reported on code.google.com by [email protected] on 24 Apr 2008 at 7:59

Multiple Line Text or addCell to a position

I want to add a multiple Line Text => a text which is in a TextArea to a
special postieion. With addText I can put oneline-text to the position und
with addCell I have multilines but no variable position. Is there a solution?

Original issue reported on code.google.com by [email protected] on 3 Apr 2008 at 9:12

Trouble adding image in Flex

I'm having trouble with adding an image from Flex to my PDF.

I'm getting an error message saying the PDF is damaged.

I want to output my panel in Flex, this is the line of code:
myPDF.addImage(myPanel, 1, null, null, true, ImageFormat.JPG, 100, 0, 0, 
0, 0);
'myPanel' is the id of the main Panel, and if I'm right Panel it extends 
DisplayObject.

If I only add text it is just working fine.



Original issue reported on code.google.com by [email protected] on 27 Dec 2007 at 12:50

Comments/ASDoc entry for pdf.setAlpha are incorrect

The comments for the pdf.setAlpha function are incorrect, they seem to be a 
copy of 
aliasNbPagesMethodMethod's comments.

This means the incorrect description and examples for setAlpha feed through 
into the ASDocs too.

Would submit a fix, but I'm unsure of what the "bm" parameter is for!

Original issue reported on code.google.com by imijsoft on 10 Sep 2007 at 9:45

addTextNote asdoc has incorrect example (i.e. addNote)

What steps will reproduce the problem?
1. http://alivepdf.bytearray.org/alivepdf-asdoc/
2. Search for "addNote"
3. Notice the myPDF.addNote (100, 75, 50, 50, "A note !"); is under 
addTextNote() method.

What is the expected output? What do you see instead?
PDF.as should be modified on lines 1708 and 1729 to use addTextNote 
instead of addNote

Thank you.


Original issue reported on code.google.com by [email protected] on 12 Jun 2008 at 6:15

writeText does not recognize new line character when passing text from database

What steps will reproduce the problem?
1. Pass text from database and store in a local String variable
2. Assign that string variable to writeText(5,newVar)
3.

What is the expected output? What do you see instead?
New line where /n is used.

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

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Jun 2008 at 12:04

null strings print "null" in the PDF

What steps will reproduce the problem?
1. Pass a concacted string of variables to an addCell method in which one of 
the variables is null.

What is the expected output? What do you see instead?
I would want the null variable to print as an empty string, but instead the 
word "null" prints.  I 
fixed this temporarily by adding the following method:
{{{
           private function stripNull(pText:String):String{
            if(pText == null){
                return '';
            }
            return pText.replace(/null/g,'');
        }
}}}

I then use it where I need it to strip out the word "null".  

pText = this.stripNull(pText);

Obviously, this will be a problem if you actually want the work 'null' to 
appear.... perhaps there is 
a better way?




Original issue reported on code.google.com by [email protected] on 24 Apr 2008 at 3:25

Problem with align in addCell or addMultiCell

I try to create an table with addCell or addMultiCell (by example with 2
columns and 5 rows)with pAlign = "R", "J" or "C" with a text in each cell
with more 10 characteres.

It doesn't work.

My code draw column by colomn the table. The first column of 5 rows is
perfect. The next column doesn't drawn... and the rest of the page is white.

if the number of charactere of each cell < 5, it works.

If pAlign is "L" or nothing and number of characteres > 10 : it works.

I use the 0.1.3 version on windows XP SP2.

Thanks a lot for your help.

Original issue reported on code.google.com by [email protected] on 21 Sep 2007 at 1:10

addImage pX & pY

Something is wrong with the way addImage is calculating it's x & y
positions.  I haven't figured it out yet, but it's work take a look at it.

Just add a simple image to a page (that has margins set).  If you add it at
0,0 the image renders fine, but when I use x & y positions, it goes wacky.

This may be related to another posted issue.

Original issue reported on code.google.com by [email protected] on 30 Jan 2008 at 10:13

Symbol º or ¿

What steps will reproduce the problem?
1. myPDF.addText("- ¿Qué deporte? º :",25,134);

What is the expected output? What do you see instead?
in output pdf I see "- ?Qué deporte? o :"


What version of the product are you using? On what operating system?
AlivePDF 0.1.4.2, Windows XP

Please provide any additional information below.
Thank you about your program. Is a very good program.

Original issue reported on code.google.com by [email protected] on 11 Jun 2008 at 2:25

Special characters problem in "writeText" function.

What steps will reproduce the problem?

First acknowledge you and the job, I am speaking Spanish and use the PDF
class, it turns out that when you have many special characters like "ñ, á,
é, í, ó and ú" loses the result of text and generates only one long line 
row.
This prevents you can generate the document, your help and you could verify
it is correct.
Thanks for your help. Greetings.
Text sample test:

myPDF.writeText (5,"Lorem ipsum máñana él día nótorio último Lorem ipsum
máñana él día nótorio último Lorem ipsum máñana él día nótorio 
último Lorem
ipsum máñana él día nótorio último Lorem ipsum máñana él día nótorio 
último
Lorem ipsum máñana él día nótorio último Lorem ipsum máñana él día 
nótorio
último Lorem ipsum máñana él día nótorio último Lorem ipsum máñana él 
día
nótorio último Lorem ipsum máñana él día nótorio último Lorem ipsum 
máñana
él día nótorio último Lorem ipsum máñana él día nótorio último Lorem 
ipsum
máñana él día nótorio último Lorem ipsum máñana él día nótorio 
último Lorem
ipsum máñana él día nótorio último Lorem ipsum máñana él día nótorio 
último
Lorem ipsum máñana él día nótorio último Lorem ipsum máñana él día 
nótorio
último Lorem ipsum máñana él día nótorio último Lorem ipsum máñana él 
día
nótorio último Lorem ipsum máñana él día nótorio último Lorem ipsum 
máñana
él día nótorio último Lorem ipsum máñana él día nótorio último");

What version of the product are you using? On what operating system?
The version is 0.1.4, my operating system is Win2000Sp4.

Please provide any additional information below.
With this type of special characters and had some problems.

Original issue reported on code.google.com by [email protected] on 13 Nov 2007 at 1:50

Landscape mode not working

Creating a PDF with some portrait pages and then calling
pdf.addPage("A4",0,Orientation.LANDSCAPE); does not output landscape pages.
 The attached PDF shows this, it should have one portrait page, and then
the rest are landscape.

(Thibault, this is the same issue I mentioned on IM the other day, I'm just
entering it so it can be tracked)

Original issue reported on code.google.com by [email protected] on 3 Sep 2007 at 12:34

Attachments:

Add addEncodedImage as a new method to the PDF class

I'm using a modified version of the corelib JPG encoder that includes
progress information (JPG is encoded in chunks, using progress for each
chunk so that the encoding is non-blocking).

I would prefer the ability to just pass in a raw ByteArray that is already
encoded at a specific format, and pass the format as a string to the
addImage method.

For example:

addImage ( image:ByteArray, pMatrix:Matrix=null, pResizePage:Boolean=false,
pEncoding:String="JPG", pQuality:Number=100, pX:Number=0, pY:Number=0,
pWidth:Number=0, pHeight:Number=0, pLink:String='' )

This function would check the encoding type to verify that it is a valid
format.

Original issue reported on code.google.com by [email protected] on 10 Oct 2007 at 1:05

'Portrait' vs 'P' and 'Landscape' vs. 'L'

In some places in the code it's expecting 'P' or 'L', and in other places
it's expecting the value of Orientation.PORTRAIT or Orientation.LANDSCAPE.

Everything works fine until you start mixing page formats in the same PDF
and then you get uncaught exceptions.  The easiest solution is to change
the values in Orientation as such:

public class Orientation
{
  public static const PORTRAIT:String = "P";
  public static const LANDSCAPE:String = "L";
}



Original issue reported on code.google.com by [email protected] on 21 Oct 2007 at 10:40

addImageStream() cannot add PNG image twice.

What steps will reproduce the problem?
1. Download source code 0.1.4
2. Run example for AIR.
3. Hit generate button once. It works.
4. Hit generate button again and this error occurs:
Error: Image format not supported, let us know
    at org.alivepdf.pdf::PDF/addImageStream()...

What is the expected output? What do you see instead?
Expect that the embedded image would be loaded again and that the 
generate.pdf file would be overwritten on the second push of the button.

What version of the product are you using? On what operating system?
XP, Flex Builder 3

Please provide any additional information below.
I will post a solution if I can figure out the problem. Just marking it as 
an issue for now. Embedded JPG works fine (insert can occur twice, but not 
embedded PNG.

Original issue reported on code.google.com by [email protected] on 14 Jun 2008 at 4:22

addCell not laying out cells horizontally as expected

What steps will reproduce the problem?

var myPDF : PDF = new PDF(Orientation.PORTRAIT,Unit.MM,Size.LETTER);
myPDF.addPage(Orientation.PORTRAIT);
myPDF.setFont(FontFamily.HELVETICA, ‘B’, 12);
myPDF.textStyle ( new RGBColor ( 255, 0, 0 ) );
myPDF.addCell(50,10,’Some text into a cell !’,1,0);
myPDF.addCell(50,10,’More text into a cell !’,1,0);
myPDF.addCell(50,10,’Last text into a cell !’,1,0);

What is the expected output? What do you see instead?

I would expect horizontal cells laid out 50 mm apart

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

Flex 3 Beta 3

Please provide any additional information below.

This works to lay them out vertically:
var myPDF : PDF = new PDF(Orientation.PORTRAIT,Unit.MM,Size.LETTER);
myPDF.addPage(Orientation.PORTRAIT);
myPDF.setFont(FontFamily.HELVETICA, ‘B’, 12);
myPDF.textStyle ( new RGBColor ( 255, 0, 0 ) );
myPDF.addCell(50,10,’Some text into a cell !’,1,1);
myPDF.addCell(50,10,’More text into a cell !’,1,1);
myPDF.addCell(50,10,’Last text into a cell !’,1,1);


Original issue reported on code.google.com by [email protected] on 21 Jan 2008 at 7:44

Measurement units for images

When adding an image, at least the width and height parameters don't seem
to be using my supplied measurement units.
I'm trying to add an image to a landscape a4 page like:

myPDF.addImage( mySheetBitmap, 1, null, null, false, ImageFormat.JPG, 100,
13.4, 8, 210, 297 );

The units are supposed to be millimeters. The image should actually go
slightly over both edges of the page, but it barely covers a quarter of the
page.

Original issue reported on code.google.com by [email protected] on 27 Dec 2007 at 4:02

addFont() function

I want to use the addFont function for using and including the "Times New 
Roman" font. But I saw 
the function is private in the PDF-class. So I can't link this is file.

Is there a way to include a font the PDF I want to generate?

Original issue reported on code.google.com by [email protected] on 30 Oct 2007 at 10:46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.