Conver TIFF to PDF multipages please help

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
pravlm
Posts: 3
Joined: 2014-03-20T14:37:41-07:00
Authentication code: 6789

Conver TIFF to PDF multipages please help

Post by pravlm »

Hi Folks,

Here is my situation I need to need to convert TIFF to PDF using a BLOB,

1. I read a document in TIFF from a TCP/IP connection. I have got this in to a "std::string" buffer named as "resp".
2. I have written this code to convert it to "PDF"

Code: Select all

using namespace Magick;
InitializeMagick(NULL);
Blob tiffBlob(static_cast<const void *>(resp.c_str()),resp.length());
Image image(tiffBlob);
Blob pdfBlob;
image.write(&pdfBlob,"PDF");

The C++ code dumps core at "image.write" line.

What am I doing wrong ? can some one please help?
pravlm
Posts: 3
Joined: 2014-03-20T14:37:41-07:00
Authentication code: 6789

Re: Conver TIFF to PDF multipages please help

Post by pravlm »

Can someone who knows about Magick++ care to respond?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Conver TIFF to PDF multipages please help

Post by dlemstra »

Which version of ImageMagick are you using? Have you tried to write to another format, e.g. png?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
pravlm
Posts: 3
Joined: 2014-03-20T14:37:41-07:00
Authentication code: 6789

Re: Conver TIFF to PDF multipages please help

Post by pravlm »

dlemstra wrote:Which version of ImageMagick are you using? Have you tried to write to another format, e.g. png?
Thanks for the response!

I am using this

Version : ImageMagick-6.8.8-0-Q16-windows
Environment : Windows 64 Bit
IDE: Visual Studio 2010 64 Bit
Language : C++

I have tried other format , every format crashes at the same place.
Post Reply