2009/12/8 Tariq Zubairy <tariq.zuba...@gmail.com>: > > @Richardo, thanks for memory_limit tip. this solved one other issue. > > When I run following command on command line under same user, it prints PDF > info quickly. > pdf2swf '-I' '-Q' '240' '-vvv' abc.pdf > > but when same command is executed from PHP it prints following and then > aborts. > > VERBOSE Generating info structure for page 1 > Error: Couldn't create a font for 'BAAAAA+LiberationSerif- > Regular' > Error: Couldn't create a font for 'BAAAAA+LiberationSerif-Regular' > VERBOSE Generating info structure for page 2 > VERBOSE Generating info structure for page 3 > VERBOSE Generating info structure for page 4 > VERBOSE Generating info structure for page 5 > VERBOSE Generating info structure for page 6 > VERBOSE Generating info structure for page 7 > VERBOSE Generating info structure for page 8 > VERBOSE Generating info structure for page 9 > VERBOSE Generating info structure for page 10 > VERBOSE Generating info structure for page 11 > VERBOSE Generating info structure for page 12 > VERBOSE Generating info structure for page 13 > VERBOSE Generating info structure for page 14 > VERBOSE Generating info structure for page 15 > VERBOSE Generating info structure for page 16 > FATAL Aborting rendering after 240 seconds > > any help or any way of getting exact information why process hangs ? > > Thanks,
How many actual pages in the pdf? Is it just 16 that is is causing the block? What happens if you use the, -p page range, option and try 16 on it's own, or start from 17 and ff? Odd output to. Using something like <?php print exec ("pdf2swf [etc,etc]"); ?> with the verbose option gives me something like, for example, page=1 width=595.00 height=841.00 page=2 width=595.00 height=841.00 page=3 width=525.00 height=640.00 If you suspect it's PHP causingproblems, have you checked the error and other logs ( see contents of php.ini )? Regards, Chris. > On Tue, Dec 8, 2009 at 5:48 AM, Ricardo Pedroso <rmdpedr...@gmail.com> > wrote: >> >> On Mon, Dec 7, 2009 at 6:42 AM, Tariq Zubairy <tariq.zuba...@gmail.com> >> wrote: >> > Hi, >> > I have approximately 40 pdf files in a directory... I want to convert >> > all >> > these PDFs to SWFs. For this i need pdf information so that i can >> > convert >> > all the pages of PDFs to SWF pages. >> > >> > Out of these 40 PDF's I get error in almost 20 files... >> > >> > To get PDF information i use the following command >> > >> > CommandText: pdf2swf '-I' '-Q' '20' >> > '/opt/lampp/htdocs/test_files/temp/abc.pdf >> > and get the following error... >> > Error: Unable to get pdf information >> >> Is this error message from pdf2swf or from you php script? >> >> > NOTE: This command executed successfully when I run this manually with >> > different user context (on LINUX Server) for that specific PDFs whereas >> > fails to execute when run through the php script under webmaster user. >> > If >> > there is some problem with the user rights then all files should give >> > the >> > same error through webmaster user but almost in 50% cases, it gives >> > required >> > information. I did not get any issue with PHP script with windows >> > server. >> > >> > Any body having any idea ???? >> > >> >> There isn't a direct answer to this. >> >> Some tips: >> If you have root access you can "su - webmaster" to manually run pdf2swf. >> >> You can use "top" or "htop" to check the amount of memory that each >> pdf conversion take, >> and see if you have a consistent behavior, like, the ones that are >> failing consume more memory. >> >> You can try to increase the php "memory_limit" >> >> >> Ricardo > >