I am using this code, but I am not able to add the image in pdf using
Is there any wrong with code?
_pdf = PDF::Writer.new
_pdf.text “Hello, Ruby.”, :font_size => 72, :justification =>
send_data _pdf.render, :filename => “hello.pdf”,
:type => “application/pdf”
I am getting this error:-
“PNG alpha channel transparency is not supported; only palette
transparency is supported.”
Please help me to solve this problem.