How to convert PDF file to Tiff Imagem files?

97 views
Skip to first unread message

neper

unread,
Oct 1, 2009, 4:21:31 PM10/1/09
to PixTools (scanning & imaging SDK)
It´s possible?

Denis

unread,
Oct 1, 2009, 4:48:15 PM10/1/09
to PixTools (scanning & imaging SDK)
Hi,
Yes, it is generally possible but depends on some factors. E.g. does
your PDF contains text or it is image only. Both cases are possible
but second is straight forward and you will need rasterisation with
first. What SDK do you use for imaging?

Thank you,
Denis

On Oct 1, 1:21 pm, neper <nep...@gmail.com> wrote:
> It´s possible?

Felipe

unread,
Oct 2, 2009, 8:08:43 AM10/2/09
to PixTools (scanning & imaging SDK)
Hi Denis, Thanks for relply!
My pdf files have mixed image pages and text pages.
I'm using PixTools for .NET 8.3.
I find 2 senarios:
1 - PDF created by Pix works fine like tiff to extract pages
try
{
for (int i = 0; i < nuTotalPaginas; i++)
{
nextImg = new PixImage();
// make directory
string dsDiretorio = GeraDiretorioDISEC
(dsBarCode);
// set out file path
string dsCaminhoImagem =dsDiretorio+"\\"+
dsBarCode + "." + i.ToString().PadLeft(4, '0');
// load pdf page in PixImage object
PixImageStorage.Load(nextImg, dsArquivoPDF, i);
// save page to file
PixImageStorage.Save(nextImg, PixFileType.Tiff,
dsCaminhoImagem, PixCompressionSettings.G4,
OpenFileMode.CreateAlways);
}
}
catch (Exception ex)
{

throw new Exception("Falha ao quebrar arquivo pdf em
imagens TIF" + " Descrição do erro: "+ ex.Message);
}

2 - PDF not created by Pix. In this case I find only one solution,
configure PDF RenderingSettings after call extract page rotine, but
it's is soo sloow..:
private PDFRenderingSettings pdfSettings;

public void SetPDFRendering()
{
// Get current PDF rendering settings
pdfSettings = ReadFileDriver.PDFRendering;
// Change settings
pdfSettings.EnableRendering = true;
pdfSettings.DetectPageResolution = false;
pdfSettings.Resolution = 200; // DPI
pdfSettings.Smoothing = PixPDFSmoothing.None;
// Set new PDF rendering settings
ReadFileDriver.PDFRendering = pdfSettings;
}

You know other way to do this?

Vankir

unread,
Oct 2, 2009, 9:02:28 AM10/2/09
to PixTools (scanning & imaging SDK)
Hi,
There is no other way. You can try to decrease resolution and use, for
example, 150 DPI or less instead of 200 so images will be generated
faster.

When you say slow performance do you compare it with the first case
when you convert image only PDF?

Thanks,
Kirill

Felipe

unread,
Oct 2, 2009, 1:01:33 PM10/2/09
to PixTools (scanning & imaging SDK)
Yes, only image PDF and Pdf make by Pix is super fast.
I will try to decrease resolution...
Kirill, have any problem if I use Threads to convert PDF to Tiff?

Thanks!
Felipe Guarneri

Vankir

unread,
Oct 2, 2009, 3:13:34 PM10/2/09
to PixTools (scanning & imaging SDK)
You can do saving in separate thread it should work without problem.

Thanks,
Kirill

Felipe

unread,
Oct 2, 2009, 4:56:00 PM10/2/09
to PixTools (scanning & imaging SDK)
Kirill, I have a other problem. When I save a text pdf page into a
tiff file, the file lost some fonts like barcode fonts. Where I can
configure pdf fonts for export?

Thanks

Vankir

unread,
Oct 5, 2009, 3:47:41 AM10/5/09
to PixTools (scanning & imaging SDK)
Hi,

You should send information about this issue to EMC support, it looks
like a bug.

Thanks,
Kirill
Reply all
Reply to author
Forward
Message has been deleted
0 new messages