Article View: adobe.forum.comments
Article #403Merging FDF with PDF with ASP.NET on server
From: Basit_Sheikh
Date: Tue, 20 Jul 2004 15:50
Date: Tue, 20 Jul 2004 15:50
35 lines
2381 bytes
2381 bytes
Well...i am using ASP.NET to submit a form. It saves the FDF on the server. Everything works fine uptil now. My next step is to update my PDF lying on the server with the FDF i.e. to import the FDF into PDF. Now i use AformAUtLib methods and functions to do that. Here is my code:
Dim acroapp As Acrobat.CAcroApp
Dim formApp As AFORMAUTLib.AFormApp
Dim acroForm As AFORMAUTLib.Fields
acroapp = CreateObject("AcroExch.App")
Dim pdf1 As Acrobat.CAcroPDDoc
Dim pdd As Acrobat.CAcroAVDoc
pdd = CreateObject("AcroExch.AVDoc")
pdf1 = CreateObject("Acroexch.Pddoc")
pdd.Open("\\computername\pdftest\file.pdf", "")
pdd = acroapp.GetActiveDoc
formApp = CreateObject("AFormAut.App")
acroForm = formApp.Fields
acroForm.ImportAnFDF("\\klxvh1l\pdftest\appendupdate.fdf")
pdf1 = pdd.GetPDDoc
pdf1.Save(&H5, "\\computername\pdftest\filenew.pdf")
pdf1.Close()
pdd.Close(0)
acroapp.Exit()
formApp = Nothing
pdf1 = Nothing
pdd = Nothing
acroapp = Nothing
FdfAcX = Nothing
FDFin = Nothing
But the code does not seem to work when i use it from a remote computer. If i try using it on my local machine it does save the new PDF file with imported data, but when i try that from a remote machine it does not. It sits on looking for something. Does not display any errors too. I initially thought of it as a permission issue, so granted ASPNET account all the SYSTEM privileges on the sever. Still it does not seem to work. Any help is greatly appreciated. One thing that i know is that the problem lies with instantiating AVDOC on the server when using it from a remote machine.
Technical Details
Message-ID:
<3bb51db9.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Thread: 112c62,9b4f0862dc8cee1d,start X-Google-Attributes: gid112c62,public X-Google-Language: ENGLISH,ASCII-7-bit From: Basit_Sheikh@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.forum.comments Subject: Merging FDF with PDF with ASP.NET on server Message-ID: <3bb51db9.-1@webx.la2eafNXanI> Date: Tue, 20 Jul 2004 08:50:18 -0700 Lines: 46 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit