Hi,
Is there a way to add a triangle to a page or can you only add circles and rectangles?
Thanks,
Jim
Add Triangle
Re: Add Triangle
Support · Jan 11, 2017Hello Jim,
There is no direct page element like Rectangle or Circle to add triangle symbol to the PDF but you can use the Line page elements to draw a triangle. You can refer to the documentation on Line page element here
. Also please note that it is not possible to fill the triangle using DynamicPDF for COM/ActiveX product. Below is the VBScript code sample to draw a triangle using Line page elements.
Dim objDoc, objPage
'Create Document object and set properties
Set objDoc = WScript.CreateObject("DynamicPDF.Document")
'Add a page to the document
Set objPage = objDoc.AddPage()
Dim MyLine1
Set MyLine1 = objPage.AddLine(10, 10, 10, 100)
Dim MyLine2
Set MyLine2 = objPage.AddLine(10, 100, 100, 100)
Dim MyLine3
Set MyLine3 = objPage.AddLine(10, 10, 100, 100)
'Output the Document to a file
objDoc.DrawToFile("C:\HelloWorld.pdf")
Thanks,
ceTe Software Support Team.