{"action":"created","issue":{"url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work/issues/12","repository_url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work","labels_url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work/issues/12/comments","events_url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work/issues/12/events","html_url":"https://github.com/adbertram/Random-PowerShell-Work/issues/12","id":195515940,"number":12,"title":"Powershell PDF form fill issue","user":{"login":"Babble-on","id":19955245,"avatar_url":"https://avatars.githubusercontent.com/u/19955245?v=3","gravatar_id":"","url":"https://api.github.com/users/Babble-on","html_url":"https://github.com/Babble-on","followers_url":"https://api.github.com/users/Babble-on/followers","following_url":"https://api.github.com/users/Babble-on/following{/other_user}","gists_url":"https://api.github.com/users/Babble-on/gists{/gist_id}","starred_url":"https://api.github.com/users/Babble-on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Babble-on/subscriptions","organizations_url":"https://api.github.com/users/Babble-on/orgs","repos_url":"https://api.github.com/users/Babble-on/repos","events_url":"https://api.github.com/users/Babble-on/events{/privacy}","received_events_url":"https://api.github.com/users/Babble-on/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-14T12:15:55Z","updated_at":"2016-12-14T14:45:49Z","closed_at":"2016-12-14T13:09:11Z","body":"Hello,\r\n\r\nI found your powershell script that fills out PDF forms on TomsITPro and it was perfect for what i was trying to accomplish.  However I have run into an issue that i was hoping you might be able to assist with.  The script I am using it in is quite complicated so I will spare you the details.\r\n\r\nI am having no issue loading the iTextSharp.dll or finding the correct fields with your expertly written function. The issue arises when i try to fill in the data of my PDF template with the data from a variable. For Example: \r\n\r\nSave-PdfField -Fields @{'W R' = '$Global:PDF_WR';\r\n'Territory' = '$Global:PDF_Territory';\r\n'Project Name' = '$Global:PDF_Project';\r\n'Date' = '$Global:PDF_Date';\r\n'Stock ID' = '$Global:PDF_STOCK';\r\n'Stock ID-0' = '$Global:PDF_STOCK0';\r\n'Stock ID-1' = '$Global:PDF_STOCK1';\r\n} -InputPdfFilePath \"$template\" -ITextSharpLibrary \"$U\\itextsharp.dll\" -OutputPdfFilePath 'C:\\MISC Projects\\test.pdf'\r\n\r\n\r\nThe PDF is being created but the fields are being filled in with the literal variable names and not the data contained within.  As you can see I have attempted to make changes to the scope of the variables as well as a few other tweaks to attempt to get this to work.  \r\n\r\nI will continue to try new ideas as I go and will update you if i find a solution but i figured i would ask the master if you had any insight.   Any help would be greatly appreciated.\r\n\r\nEDIT:\r\n\r\nAlso forgot to mention , I am running PSVersion 5 build 10240 revision 16384\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work/issues/comments/267051684","html_url":"https://github.com/adbertram/Random-PowerShell-Work/issues/12#issuecomment-267051684","issue_url":"https://api.github.com/repos/adbertram/Random-PowerShell-Work/issues/12","id":267051684,"user":{"login":"Babble-on","id":19955245,"avatar_url":"https://avatars.githubusercontent.com/u/19955245?v=3","gravatar_id":"","url":"https://api.github.com/users/Babble-on","html_url":"https://github.com/Babble-on","followers_url":"https://api.github.com/users/Babble-on/followers","following_url":"https://api.github.com/users/Babble-on/following{/other_user}","gists_url":"https://api.github.com/users/Babble-on/gists{/gist_id}","starred_url":"https://api.github.com/users/Babble-on/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Babble-on/subscriptions","organizations_url":"https://api.github.com/users/Babble-on/orgs","repos_url":"https://api.github.com/users/Babble-on/repos","events_url":"https://api.github.com/users/Babble-on/events{/privacy}","received_events_url":"https://api.github.com/users/Babble-on/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T14:45:49Z","updated_at":"2016-12-14T14:45:49Z","body":"@aaroncalderon  Indeed it was.   Apologies in my excitement i forgot to give details"}}
{"actor":{"display_login":"Babble-on"}}