mesaglam / alivepdf

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

PDF will not load #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 retrogam...@gmail.com on 30 Aug 2007 at 7:22

GoogleCodeExporter commented 9 years ago
Hi,

Make sure you generate the PDF when the SWF is running in the browser. When the 
SWF
is running in the Flash IDE preview, the player is not able to send some data 
in the
POST buffer but only in the GET buffer. That's the reason why you see a string
description of the PDF in the browser URL.

let me know,

cheers,

Thibault

Original comment by thibault.imbert on 30 Aug 2007 at 11:54

GoogleCodeExporter commented 9 years ago
Yah problem fixed, I was running the swf from the player, it wasn't embedded in 
the
actual application.  

Original comment by retrogam...@gmail.com on 31 Aug 2007 at 4:05

GoogleCodeExporter commented 9 years ago
I saw this same URL issue when trying to run some AlivePDF sample code to send 
the
PDF to a remote URL from within an AIR application. I saw this when I was 
testing
from within Flex Builder. I've not yet tested on an installed AIR application.

Should I take this thread to mean that we should test the PDF creation in a 
"live"
AIR application? Or is there a way to force a testing AIR application to use 
the POST
method all the time?

Original comment by dan...@shimmerphase.com on 29 Jan 2008 at 4:13

GoogleCodeExporter commented 9 years ago
I have a web page built in Flex Builder (3.5).  When I run from within Flex, 
everything works great--the pdf is created. However, when I export the release 
build 
to my server (IIS), the pdf will not create. (I do have a create function built 
with 
c#.  Is there something I should do to make the swc work with release build?

To see the site, go to http://tnatlas2.geog.utk.edu/Census1.

Thanks,
Bruce Ralston

Original comment by ralston...@gmail.com on 13 May 2010 at 6:44