PDAnnot - PDF VBA
Publicado por Oscar Rubió (19 intervenciones) el 08/11/2016 12:00:12
Sabría alguien decirme el motivo por el que no admite la propiedad textSize del siguiente script?:
Uso Adobe Acrobat X Pro, y miAr es la ruta del archivo que abro.
Gacias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Set acroApp = CreateObject("acroexch.app")
Set miPdf = CreateObject("acroexch.pddoc")
acroApp.Show
miPdf.Open (miAr)
Set jso = miPdf.GetJSObject
If Not jso Is Nothing Then
Set miPag = miPdf.AcquirePage(0)
Set pageRect = miPag.GetSize
Point(0) = 10
Point(1) = pageRect.y
popupRect(0) = 20
popupRect(1) = pageRect.y - 10
popupRect(2) = 570
popupRect(3) = pageRect.y - 55
Set miAnot = jso.AddAnnot
Set props = miAnot.getprops
props.Page = i
props.Name = "LLOPEZ PROCURADORES, SLP"
props.Type = "FreeText"
props.Rect=popupRect
props.textSize=8
props.Contents="prueba"
End if
miAnot.setProps.props
Uso Adobe Acrobat X Pro, y miAr es la ruta del archivo que abro.
Gacias
Valora esta pregunta


0