Posts

Showing posts from June, 2022

Remove Security Protections from Adobe PDF

Image
Remove Security from Adobe If you can open and read it, but you just want to be able to extract pages and edit the document. use ghostscript Uses ghostscript... gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf Just a tip Use PDFCPU from github https://github.com/pdfcpu/pdfcpu If you try to print to a PDF you will see this error: ProductName: Distiller This PostScript file was created from an encrypted PDF file. Redistilling encrypted PDF is not permitted. Flushing: rest of job (to end-of-file) will be ignored Warning: PostScript error. No PDF file produced. Good Luck, guys!

Outlook VBA Macro Scripting Example #1

Image
 First Example of Outlook VBA Scripting in Application->Startup Option Explicit Private WithEvents inboxItems As Outlook.Items Private Sub Application_Startup () Dim outlookApp As Outlook.Application Dim objectNS As Outlook.NameSpace Set outlookApp = Outlook.Application Set objectNS = outlookApp.GetNamespace( "MAPI" ) Set inboxItems = objectNS.GetDefaultFolder(olFolderInbox).Items End Sub Private Sub inboxItems_ItemAdd ( ByVal Item As Object ) On Error GoTo ErrorHandler Dim Msg As Outlook.MailItem Dim MessageInfo Dim Result If TypeName(Item) = "MailItem" Then MessageInfo = "" & _ "Sender : " & Item.SenderEmailAddress & vbCrLf & _ "Sent : " & Item.SentOn & vbCrLf & _ "Received : " & Item.ReceivedTime & vbCrLf & _ "Subject : " & Item.Subject & vbCrLf & _ ...