I am trying to create a pdf file using Rghost. It’s creating with
extention of “pdf.rgin”,what would be the solution to get the pdf?
On Wed, Aug 28, 2013 at 5:18 AM, Raj pal [email protected] wrote:
I am trying to create a pdf file using Rghost. It’s creating with
“pdf.rgin” extention here, what would be solution to get the pdf?
Note: I haven’t used RGhost (but I’ve had success with Prawn).
Did you get any files besides pdf.rgin? According to <
rghost/lib/rghost/how_to.rb at eeb1d8eeb87f60a6ec213c49d6e399a46277be1e · shairontoledo/rghost · GitHub>,
that file is supposed to be a temporary file, to be removed after
conversion. I wonder if the process crashes somehow, although the docs
also
say the .rgin file will be removed even if errors show up.
Upon completion, there should be an output file which “will have the
extension passed to the RGhost::Document#render method.”
hi Eric,
Thanks for reply. You are right, It’s an temporary file before pdf
appears, I put my program in the debug mode, I find error happens in the
render method. There is a if else block inside the render method, It was
supposed to go to else block while there is no error, but it goes
through if block. I can’t able to find what type of error is this.Any
clue?
And you have given one link which is not available
now.https://github.com/shairontoledo/rghost/blob/eeb1d…