Hello,
I've been trying to use this component to get ínformation from pdf documents in a web page made in classic ASP. I've registered the COM and gotten the hello world test with aspose.pdf.generator working, but what I actually need is the aspose.pdf.document class. Problem is, to open a document, you use the constructor (new Document("test.pdf")) which doesn't work in classic ASP since you need to use Server.CreateObject("aspose.pdf.document"). This means I can create a document object, but it's completely empty. I've been scratching my head over the API for an hour now and I can't seem to find any way to load a .pdf into a document object without using the constructor, since unlike the License class, there doesn't seem to be any kind of SetDocument method.
Am I missing something, is it just aspose.pdf.generator which is "supported" by classic ASP?
Basically, what I need is a Document.Open("test.pdf") method so I can get a document object of a specific pdf (what I actually want to look at later is the documents Form collection).
<!–[if gte mso 10]>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
<![endif]–>
Hi Tobberoth,
Thank you for considering Aspose.Pdf.
We are working on your query and will get back to you
soon.
Sorry for the inconvenience,
Hi Tobberoth,
Sorry for a delayed response.
I checked your scenario but I am afraid I am unable to find any solution regarding your requirement. As per my findings, VBScript does not allow the creation of parameterized objects. I searched the internet as well and found the same problem from the users. You can also check the following link regarding a similar issue:
http://stackoverflow.com/questions/1975664/creating-a-net-streamwriter-object-from-classic-asp-constructor-parameter-pro
Now, a solution can be that you may create your own wrapper class in .NET which can interact with Aspose.Pdf. In your wrapper class you can create parameter-less class with properties which can interact with Document class.
Sorry for the inconvenience.