a Little Big Problem

Discussions about PDF management.
Post Reply
User avatar
m.cordini
Posts: 20
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )
Contact:

a Little Big Problem

Post by m.cordini » Tue Mar 19, 2013 5:18 pm

Hi everybody
i've a little big problem with merge pdf in a webservice compiled with framework 2.0
In the bin folder I copied the following files in the redist folder framework 2.0 of the installation package GdPicture 9.4
GdPicture.NET.9.dll,
GdPicture.NET.9.PDF.dll,
GdPicture.NET.9.filters.64.dll
GdPicture.NET.9.image.gdimgplug.64.dll
(The server is a windows 2003 64bit)
but I have a strange behavior.
on my development pc windows 7 64 bit pdf is created correctly on the server while the pdf that is generated can not open it with acrobat with the following error
"There was opening this document. The file is damaged and could not be repaired"
attached the two files the first 000_FATTURA ACCOMPAGNATORIA_25.pdf is the original while the other is the one obtained with the merge command


any ideas ?

Best regards
Marco

Code: Select all

 Public Sub MergeGdiPdf(ByVal Destinazione As String, ByVal files() As String)

        Dim oLicenceManager As New LicenseManager()
        oLicenceManager.RegisterKEY("xxx")
        'Dim oSrcPDF As New GdPicturePDF
        Dim oDstPDF() As GdPicturePDF

        ReDim Preserve oDstPDF(files.GetLength(0) - 1)

        Dim n As Integer
        For n = 0 To files.GetLength(0) - 1
            oDstPDF(n) = New GdPicturePDF
            oDstPDF(n).LoadFromFile(files(n), False)

        Next
        Dim oNewGdPicturePDF As GdPicturePDF = oDstPDF(0).MergeDocuments(oDstPDF)
        Dim status As GdPictureStatus = oDstPDF(0).GetStat
        If status = GdPictureStatus.OK Then


            oNewGdPicturePDF.SaveToFile(Destinazione)
            oNewGdPicturePDF.CloseDocument()
        End If
        For n = 0 To files.GetLength(0) - 1
            oDstPDF(n).CloseDocument()
        Next
end sub
Attachments
test.zip
(250.25 KiB) Downloaded 266 times

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: a Little Big Problem

Post by Loïc » Tue Mar 19, 2013 5:57 pm

Hello Marco,

Seems there is a compression issue. Are you able to update to latest GdPicture.NET release? We've fixed a problem in this version that can solve your issue.

If the problem persists it would be great if you could open a ticket to https://www.gdpicture.com/support/getting-support-from-our-team. So we will be able to assist in emergency. This is a critical problem...

Cheers,

Loïc

User avatar
m.cordini
Posts: 20
Joined: Mon Jun 25, 2007 11:41 am
Location: Piacenza ( Italy )
Contact:

Re: a Little Big Problem

Post by m.cordini » Tue Mar 19, 2013 6:38 pm

ok i've open a ticket...
bye
Marco

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest