Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Por favor, verifique o artigo intitulado Use Aspose.pdf para .NET via COM Interop.
<%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<html>
<head>
<title> using Aspose.PDF for .NET in classical ASP sample</title>
</head>
<body>
<h3>creation of sample PDF document while using Aspose.PDF for .NET with classical ASP and VBScript</h3>
<%
'Set license
Dim lic
Set lic = CreateObject("Aspose.Pdf.License")
lic.SetLicense("Aspose.Total.lic")
'Instantiate Pdf instance by calling its empty constructor
Dim document
Set document = CreateObject("Aspose.Pdf.Document")
'Create a new section in the Pdf object
Dim pdfsection
Set pdfsection = CreateObject("Aspose.Pdf.Generator.Section")
'Add section to Pdf object
document.Sections.Add(pdfsection)
'Create Text object
Dim SampleText
Set SampleText = CreateObject("Aspose.Pdf.Generator.Text")
'Add Text Segment to text object
Dim seg1
Set seg1 = CreateObject("Aspose.Pdf.Generator.Segment")
'Assign some content to the segment
seg1.Content = "HelloWorld using ASP and VBScript"
'Add segment (with red text color) to the paragraph
SampleText.Segments.Add(seg1)
'Add Text paragraph to paragraphs collection of a section
pdfsection.Paragraphs.Add(SampleText)
'Save PDF document
document.Save("HelloWorldinASP_out.pdf")
%>
</body>
</html>
Este exemplo de VBScript extrai texto de um documento PDF existente via COM Interop.
Error rendering macro 'code' : Invalid value specified for parameter lang
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.