|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
RuntimeError (JPEG marker not found!):Hi, while generating the PDF file , i am getting following error.. please help for me. RuntimeError (JPEG marker not found!): C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:176:in ` measure_JPEG' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:174:in ` loop' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:174:in ` measure_JPEG' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:85:in `_ _send__' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:85:in `i nitialize' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics.rb:574:in `new' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics.rb:574:in `add_image' lib/purchase_pdf.rb:52:in `draw_background_image' lib/purchase_pdf.rb:40:in `draw' lib/purchase_pdf.rb:17:in `draw' lib/purchase_pdf.rb:16:in `each' lib/purchase_pdf.rb:16:in `draw' lib/purchase_pdf.rb:13:in `draw' lib/purchase_pdf.rb:8:in `render' app/controllers/purchases_controller.rb:32:in `show' app/controllers/purchases_controller.rb:28:in `show' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' Rendered rescues/_trace (218.0ms) Rendered rescues/_request_and_response (16.0ms) Rendering rescues/layout (internal_server_error) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: RuntimeError (JPEG marker not found!):On Jul 9, 1:43 am, Madhu kanikanti <kalyan.kanika...@...> wrote: > Hi, > while generating the PDF file , i am getting following error.. > please help for me. > That sounds like the jpeg file you gave the library didn't look like a jpeg file. Fred > RuntimeError (JPEG marker not found!): > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics/imageinfo.rb:176:in ` > measure_JPEG' > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics/imageinfo.rb:174:in ` > loop' > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics/imageinfo.rb:174:in ` > measure_JPEG' > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics/imageinfo.rb:85:in `_ > _send__' > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics/imageinfo.rb:85:in `i > nitialize' > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics.rb:574:in `new' > C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ > graphics.rb:574:in `add_image' > > lib/purchase_pdf.rb:52:in `draw_background_image' > lib/purchase_pdf.rb:40:in `draw' > lib/purchase_pdf.rb:17:in `draw' > lib/purchase_pdf.rb:16:in `each' > lib/purchase_pdf.rb:16:in `draw' > lib/purchase_pdf.rb:13:in `draw' > lib/purchase_pdf.rb:8:in `render' > app/controllers/purchases_controller.rb:32:in `show' > app/controllers/purchases_controller.rb:28:in `show' > C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' > C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' > > Rendered rescues/_trace (218.0ms) > Rendered rescues/_request_and_response (16.0ms) > Rendering rescues/layout (internal_server_error) You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: RuntimeError (JPEG marker not found!):still i am getting same problem. actually it happens, draw an image to pdf file. RuntimeError in PurchasesController#showJPEG marker not found!
Application Trace | Framework Trace | Full Trace
RequestParameters: {"format"=>"pdf",
"id"=>"4"}
--- ResponseHeaders: {"Content-Type"=>"application/pdf",
"Cache-Control"=>"no-cache"} Regards, Kanikanti Mobile: 571-296-7842 On Thu, Jul 9, 2009 at 6:40 AM, Frederick Cheung <frederick.cheung@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |