jacott/rails-latex — Issue #18: Render_to_string pdf corrupted
Author: fillky
Created: 2012-01-20 15:12:32+00:00
State: open

Hi. I use your gem. It works perfect, but I have some issues with render to string.

usage of:
- render_to_string : render_to_string(:action =>'action_file.rb, :layout => "action_template")

It is working correctly but when I exceed some amount of text in view (latex source), the pdf is corrupted. Less text -> pdf ok. So I tried to use normal render by using large size of file and here it is correct. So problem is with proccessing it via render_to_string. I have no idea what is wrong. Have you ever met with this problem? Please give me some idea to make it working. Thanks a lot

Some details:
I'am using some parts and inserting them by yield. It is generating latex source dynamically.