ExportToTiff not working

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
REC3219
Posts: 4
Joined: Wed Nov 14 2007

ExportToTiff not working

Post by REC3219 »

Hi,

We are evaluating PDF Creator .NEt and we can't get the export to tiff functionality to work. I am using VS 2005 on Win XP.

The call to ExportToTiff always returns False. Is there a way to see why it failed?

Here is the code we are using:


Private Sub PrintPDFToTiff(ByVal strSourceFile As String, ByVal strDestFile As String)



'Print multiple documents using the PDF Creator library
acPDFCreatorLib.Initialize()
acPDFCreatorLib.SetLicenseKey("Evaluation Version","07EFCDAB0100010...28E778780009EE2F79")
Dim doc As New Amyuni.PDFCreator.IacDocument()
Dim exported As Boolean = False
Dim printed As Boolean = False
Try

Dim file1 As New System.IO.FileStream(strSourceFile,IO.FileMode.Open, FileAccess.Read, FileShare.Read)
'Print the first file
doc.Open(file1, "")
doc.OptimizeDocument(0)
exported = doc.ExportToTiff(strDestFile, Convert.ToUInt32(300), Convert.ToUInt32(10))

doc.Dispose()
Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Finally
acPDFCreatorLib.Terminate()

End Try

End Sub
REC3219
Posts: 4
Joined: Wed Nov 14 2007

Follow up

Post by REC3219 »

As a follow up:

I also tried the export as functionality in the example application (PDFCreatorApp) and none of them worked. I even added export to TIFF functionality and it didn't work either.
David
Amyuni Team
Posts: 89
Joined: Mon Dec 18 2006

Post by David »

Hello

The ExportToTiff will fail if the license does not have the functionality enabled.

Below is a license and activation code that have the ExportToTiff feature enabled

LicenseTo:
Evaluation Version

ActivationCode:
07EFCDAB01000100C71720CBB4034821476D5694417DB51ABBE70D4A14E5D47EF707562F287274F4AA099D562E4F6DC6F5CF1F74904B9BFE995AC248306749C9092EA202478B0E1D72748B5D78870EDB428EE6E33FD80384CD9338A9F62F041821EF48

Hope that helps?
REC3219
Posts: 4
Joined: Wed Nov 14 2007

Post by REC3219 »

David,

Thanks for the info. I got it to work but it threw the following error:

"Cannot create a file when that file already exists"

It happens after the exporttotiff has converted 2 pages of a 43 page pdf.

Is there a limit on the eval version?

Thanks,

Robert[/img]
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

The evaluation version allows you to convert only the first two pages of the document to TIff or other format.

However i didn't get the error message you are getting. I never encounter it before. Will check this.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
REC3219
Posts: 4
Joined: Wed Nov 14 2007

Post by REC3219 »

Joan,

never mind about the error. It was from another part of the code. (trying to move the original pdf)

Would it be possible to get an evaluation version that doesn't have the 2 page limit?

We want to test how long it takes to convert large pdf's to tiff.


Thanks,

Robert
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please contact support@amyuni.com concerning this issue. i am not sure if we can send you such an activation code you need to check this with out Support Team.

Thanks.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Post Reply