php in pdf format

Exporting output of php in pdf format

Page 1 of 1

1 Replies - 1473 Views - Last Post: 23 August 2010 - 12:05 AM

#1 priyankamalusare   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 47
  • Joined: 11-August 10

php in pdf format

Posted 22 August 2010 - 10:46 PM


i wanted to export report of php file in PDF format.As their is an application,when user enters a details that reports shuld get generate in PDF that user can take print.i attached test that m getting error that

Adobe Reader error

file does not begin with '%PDF-'

Thanks advance.

Attached File(s)

Is This A Good Question/Topic? 0
  • +

Replies To: php in pdf format

#2 guahguahmonster   User is offline

  • D.I.C Head
  • member icon

Reputation: 68
  • View blog
  • Posts: 209
  • Joined: 29-August 07

Re: php in pdf format

Posted 23 August 2010 - 12:05 AM

Are you running this locally, on a server you control, or something else?

Notice your script runs the command java -Xmx512m -cp pd4ml_demo.jar Pd4Cmd "$SOME_URL" 800 A4. Does it work if you run the same command from the command line?
Are you sure you placed pd4ml_demo.jar in the correct path (the same directory as the php script, it appears)? What about Pd4Cmd.class?

Did you follow the instructions from PD4ML's website? You got this code from their website, after all. They should have instructions to help. What about the PD4Cmd page?

This post has been edited by guahguahmonster: 23 August 2010 - 12:12 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1