<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Karl Heinz Kremer&#039;s Ramblings</title>
	<atom:link href="http://www.khk.net/wordpress/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khk.net/wordpress</link>
	<description>Stuff, stuff and more stuff</description>
	<lastBuildDate>Thu, 02 Feb 2012 14:48:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Vickie</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1226</link>
		<dc:creator>Vickie</dc:creator>
		<pubDate>Thu, 02 Feb 2012 14:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1226</guid>
		<description>Karl,

Thanks for explaining the formula, I can now figure out where to lay my text for the 11 x 17 and I also have some that I need to do on 8 1/2 by 11. And  I can either tell it the size I am using or use the media box to figure it out for me. 
You have been a greet help. 
I have a lot of work ahead of me to get my project done. I was just trying to figure out if I can do some things before I start on it. I have a big Database already in place that is why I am trying to do everything from Access. Being able to merge the PDFs and then add a footer   (adding text is just as good) was my goal.</description>
		<content:encoded><![CDATA[<p>Karl,</p>
<p>Thanks for explaining the formula, I can now figure out where to lay my text for the 11 x 17 and I also have some that I need to do on 8 1/2 by 11. And  I can either tell it the size I am using or use the media box to figure it out for me.<br />
You have been a greet help.<br />
I have a lot of work ahead of me to get my project done. I was just trying to figure out if I can do some things before I start on it. I have a big Database already in place that is why I am trying to do everything from Access. Being able to merge the PDFs and then add a footer   (adding text is just as good) was my goal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by khk</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1225</link>
		<dc:creator>khk</dc:creator>
		<pubDate>Thu, 02 Feb 2012 01:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1225</guid>
		<description>Let&#039;s say your page is 17&quot; wide, and you want to add the field at the bottom. As I said, the coordinates are expressed in points, so the left most x coordinate would be 0, and the right most would be 72*17=1546. If you want your field 1/2&quot; high, that would be 36pt, and let&#039;s say you want the lower edge of your field 1/4&quot; off the bottom, that would be 18pt. Let&#039;s now combine all this. The lower left corner has an x value of 0, and a y value of 18, the upper right corner has an x value of 1546 and a y value of 18+36=54, so we would use the following code to express that:
rect(0) = 0
rect(1) = 18
rect(2) = 1546
rect(3) = 54

As you&#039;ve correctly identified, if you want the text in the middle, you need to use the center alignment. 

You can actually query a page for it&#039;s size by getting the media box. With that information, you could write your routine so that it&#039;s flexible as far as the actual page size goes.</description>
		<content:encoded><![CDATA[<p>Let&#8217;s say your page is 17&#8243; wide, and you want to add the field at the bottom. As I said, the coordinates are expressed in points, so the left most x coordinate would be 0, and the right most would be 72*17=1546. If you want your field 1/2&#8243; high, that would be 36pt, and let&#8217;s say you want the lower edge of your field 1/4&#8243; off the bottom, that would be 18pt. Let&#8217;s now combine all this. The lower left corner has an x value of 0, and a y value of 18, the upper right corner has an x value of 1546 and a y value of 18+36=54, so we would use the following code to express that:<br />
rect(0) = 0<br />
rect(1) = 18<br />
rect(2) = 1546<br />
rect(3) = 54</p>
<p>As you&#8217;ve correctly identified, if you want the text in the middle, you need to use the center alignment. </p>
<p>You can actually query a page for it&#8217;s size by getting the media box. With that information, you could write your routine so that it&#8217;s flexible as far as the actual page size goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Vickie</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1224</link>
		<dc:creator>Vickie</dc:creator>
		<pubDate>Wed, 01 Feb 2012 20:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1224</guid>
		<description>Hello Karl,

Thanks for all the help. Still not sure how to get it land in the right spot. I needed it in the center, bottom of a 11 x 17 paper. But I played with it and got it to work with the following code:
rect(0) = 2
rect(1) = 2
rect(2) = 1225
rect(3) = 50

Dim field As Object
Set field = jso.AddField(&quot;theField&quot;, &quot;text&quot;, 0, rect)
field.Value = &quot;this is some text added some more&quot;
field.textFont = &quot;Arial&quot;
field.textSize = 15
field.textColor = jso.Color.BLACK
field.alignment = &quot;center&quot;
field.alignment = &quot;bottom&quot;

As far as getting it on the other pages I guess I will have to have it run in a loop as it counts the pages and put a page number field in the place where the page number goes.</description>
		<content:encoded><![CDATA[<p>Hello Karl,</p>
<p>Thanks for all the help. Still not sure how to get it land in the right spot. I needed it in the center, bottom of a 11 x 17 paper. But I played with it and got it to work with the following code:<br />
rect(0) = 2<br />
rect(1) = 2<br />
rect(2) = 1225<br />
rect(3) = 50</p>
<p>Dim field As Object<br />
Set field = jso.AddField(&#8220;theField&#8221;, &#8220;text&#8221;, 0, rect)<br />
field.Value = &#8220;this is some text added some more&#8221;<br />
field.textFont = &#8220;Arial&#8221;<br />
field.textSize = 15<br />
field.textColor = jso.Color.BLACK<br />
field.alignment = &#8220;center&#8221;<br />
field.alignment = &#8220;bottom&#8221;</p>
<p>As far as getting it on the other pages I guess I will have to have it run in a loop as it counts the pages and put a page number field in the place where the page number goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by khk</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1223</link>
		<dc:creator>khk</dc:creator>
		<pubDate>Wed, 01 Feb 2012 00:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1223</guid>
		<description>Hi Vickie, 

this is where Acrobat&#039;s JavaScript API documentation becomes a must-read: The JSO object is the JavaScript Object bridge, and on the &quot;other&quot; side of the bridge is what used to be JavaScript objects and methods. This means that in order to use the bridge, you need to be familiar with the JavaScript DOM. Take a look at the document that I link to in the original post. 

The &quot;rect&quot; is a pair of coordinates that describe the field: lower left corner and upper right corner. The units are in points (which is 1/72&quot;). And, to get to other pages, you would change the 3rd argument of AddField: That&#039;s the page number (starting at page 0). 

Let me know if you need anything else.</description>
		<content:encoded><![CDATA[<p>Hi Vickie, </p>
<p>this is where Acrobat&#8217;s JavaScript API documentation becomes a must-read: The JSO object is the JavaScript Object bridge, and on the &#8220;other&#8221; side of the bridge is what used to be JavaScript objects and methods. This means that in order to use the bridge, you need to be familiar with the JavaScript DOM. Take a look at the document that I link to in the original post. </p>
<p>The &#8220;rect&#8221; is a pair of coordinates that describe the field: lower left corner and upper right corner. The units are in points (which is 1/72&#8243;). And, to get to other pages, you would change the 3rd argument of AddField: That&#8217;s the page number (starting at page 0). </p>
<p>Let me know if you need anything else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Vickie</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1222</link>
		<dc:creator>Vickie</dc:creator>
		<pubDate>Tue, 31 Jan 2012 23:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1222</guid>
		<description>Karl,

I can not figure out what numbers to plug in to get the text in the right spot. Can you explain to me how the following works

rect(0) = 72
rect(1) = 72
rect(2) = 72 * 4
rect(3) = 108

When I change the first 3 to get in close to where I want it center then 4 th line doesn&#039;t work to get lined up on the bottom. Maybe if I understood moor about it I could get it to work.

Do you know how to get the text to show up on the rest of the pages?

All it&#039;s greatly appreciated.</description>
		<content:encoded><![CDATA[<p>Karl,</p>
<p>I can not figure out what numbers to plug in to get the text in the right spot. Can you explain to me how the following works</p>
<p>rect(0) = 72<br />
rect(1) = 72<br />
rect(2) = 72 * 4<br />
rect(3) = 108</p>
<p>When I change the first 3 to get in close to where I want it center then 4 th line doesn&#8217;t work to get lined up on the bottom. Maybe if I understood moor about it I could get it to work.</p>
<p>Do you know how to get the text to show up on the rest of the pages?</p>
<p>All it&#8217;s greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Vickie</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1221</link>
		<dc:creator>Vickie</dc:creator>
		<pubDate>Tue, 31 Jan 2012 22:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1221</guid>
		<description>Karl,

Thanks alot it works only on the first page, now I need to get it to go on the rest of the pages and have control on where it lands and change the color and the grey background and font styles and I think I am in business. Any help would be much appreciated.</description>
		<content:encoded><![CDATA[<p>Karl,</p>
<p>Thanks alot it works only on the first page, now I need to get it to go on the rest of the pages and have control on where it lands and change the color and the grey background and font styles and I think I am in business. Any help would be much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Vickie</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1220</link>
		<dc:creator>Vickie</dc:creator>
		<pubDate>Tue, 31 Jan 2012 22:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1220</guid>
		<description>Thanks alot Karl 

This is what I have now

a problem with now

Set field = jso.AddField(“theField”, “text”, 0, rect)
field.Value = “this is some text”

the field.Value = &quot;this some text&quot; doesn&#039;t work so a ignored it

And ran the program and it crashed and pointed to the &quot;theField&quot; code</description>
		<content:encoded><![CDATA[<p>Thanks alot Karl </p>
<p>This is what I have now</p>
<p>a problem with now</p>
<p>Set field = jso.AddField(“theField”, “text”, 0, rect)<br />
field.Value = “this is some text”</p>
<p>the field.Value = &#8220;this some text&#8221; doesn&#8217;t work so a ignored it</p>
<p>And ran the program and it crashed and pointed to the &#8220;theField&#8221; code</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by khk</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1219</link>
		<dc:creator>khk</dc:creator>
		<pubDate>Tue, 31 Jan 2012 20:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1219</guid>
		<description>Vicki, try this to get a string on the first page: 


    Dim AcroApp As Acrobat.CAcroApp
    Dim jso As Object
    Dim rect(0 To 3) As Integer

    Dim theDocument As Acrobat.CAcroPDDoc
    Dim numPages As Integer
    
    Set AcroApp = CreateObject(&quot;AcroExch.App&quot;)
    Set theDocument = CreateObject(&quot;AcroExch.PDDoc&quot;)
    theDocument.Open (&quot;C:\temp\Part1.pdf&quot;)
    numPages = theDocument.GetNumPages()
    Set jso = theDocument.GetJSObject
    rect(0) = 72
    rect(1) = 72
    rect(2) = 72 * 4
    rect(3) = 108
    
    Dim field As Object
    Set field = jso.AddField(&quot;theField&quot;, &quot;text&quot;, 0, rect)
    field.Value = &quot;this is some text&quot;
    field.textSize = 12
    field.textColor = jso.Color.blue
    field.fillColor = jso.Color.ltGray
    
    jso.FlattenPages
    
    If theDocument.Save(PDSaveFull, &quot;C:\temp\modified2.pdf&quot;) = False Then
        MsgBox &quot;Cannot save the modified document&quot;
    End If
    
    theDocument.Close
     
    AcroApp.Exit
    Set AcroApp = Nothing
    Set theDocument = Nothing</description>
		<content:encoded><![CDATA[<p>Vicki, try this to get a string on the first page: </p>
<p>    Dim AcroApp As Acrobat.CAcroApp<br />
    Dim jso As Object<br />
    Dim rect(0 To 3) As Integer</p>
<p>    Dim theDocument As Acrobat.CAcroPDDoc<br />
    Dim numPages As Integer</p>
<p>    Set AcroApp = CreateObject(&#8220;AcroExch.App&#8221;)<br />
    Set theDocument = CreateObject(&#8220;AcroExch.PDDoc&#8221;)<br />
    theDocument.Open (&#8220;C:\temp\Part1.pdf&#8221;)<br />
    numPages = theDocument.GetNumPages()<br />
    Set jso = theDocument.GetJSObject<br />
    rect(0) = 72<br />
    rect(1) = 72<br />
    rect(2) = 72 * 4<br />
    rect(3) = 108</p>
<p>    Dim field As Object<br />
    Set field = jso.AddField(&#8220;theField&#8221;, &#8220;text&#8221;, 0, rect)<br />
    field.Value = &#8220;this is some text&#8221;<br />
    field.textSize = 12<br />
    field.textColor = jso.Color.blue<br />
    field.fillColor = jso.Color.ltGray</p>
<p>    jso.FlattenPages</p>
<p>    If theDocument.Save(PDSaveFull, &#8220;C:\temp\modified2.pdf&#8221;) = False Then<br />
        MsgBox &#8220;Cannot save the modified document&#8221;<br />
    End If</p>
<p>    theDocument.Close</p>
<p>    AcroApp.Exit<br />
    Set AcroApp = Nothing<br />
    Set theDocument = Nothing</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Vickie</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1218</link>
		<dc:creator>Vickie</dc:creator>
		<pubDate>Tue, 31 Jan 2012 17:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1218</guid>
		<description>Not sure how that all works, but the pdfs are drawings That I need to use depending on what I am working on they get certain footers. So the only thing I would be adding is one field to these drawings. Now I am wanting to do this all this through Ms Access. Can you supply me with details of how to set it up and where I can get the coding from.</description>
		<content:encoded><![CDATA[<p>Not sure how that all works, but the pdfs are drawings That I need to use depending on what I am working on they get certain footers. So the only thing I would be adding is one field to these drawings. Now I am wanting to do this all this through Ms Access. Can you supply me with details of how to set it up and where I can get the coding from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adobe Acrobat and VBA &#8211; An Introduction by Karl Heinz Kremer</title>
		<link>http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/comment-page-1/#comment-1217</link>
		<dc:creator>Karl Heinz Kremer</dc:creator>
		<pubDate>Tue, 31 Jan 2012 13:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://khk.net/wordpress/?p=244#comment-1217</guid>
		<description>Vickie,
you can add footers via JavaScript (and the VGA/JS Bridge). It&#039;s not as straight forward as one would hope, but it works: You would add a form field at the location where you want your footer to be, then you fill in the form field with the footer text (and this can be different for the different pages in your document), and as a final step, you flatten the pages in your document to &quot;burn in&quot; the otherwise interactive form field. You just have to be careful if you want other interactive content in your document, that you flatten the footers before you add any other fields that should remain interactive. 

Let me know if you have any questions regarding the actual mechanics of doing this. 

Thanks for reading and participating on my blog.</description>
		<content:encoded><![CDATA[<p>Vickie,<br />
you can add footers via JavaScript (and the VGA/JS Bridge). It&#8217;s not as straight forward as one would hope, but it works: You would add a form field at the location where you want your footer to be, then you fill in the form field with the footer text (and this can be different for the different pages in your document), and as a final step, you flatten the pages in your document to &#8220;burn in&#8221; the otherwise interactive form field. You just have to be careful if you want other interactive content in your document, that you flatten the footers before you add any other fields that should remain interactive. </p>
<p>Let me know if you have any questions regarding the actual mechanics of doing this. </p>
<p>Thanks for reading and participating on my blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

