Change PDF Properties Q

I am looking to change/add features to Ron De Bruins excellent e-mail Excel via PDF format, as per below, this works great but how can I Add a security password to prevent the e-mailed document from been altered and printed?  I have Acrobat Pro extended 9.1.2
Is this even possible? I've checked some Excel forums and I've had nothing positive back
Sub Mail
    Dim FileExtStr As String
    Dim FileFormatNum As Long
    Dim Sourcewb As Workbook
    Dim Destwb As Workbook
    Dim TempFilePath As String
    Dim TempFileName As String
    Dim OutApp As Outlook.Application
    Dim OutMail As Outlook.MailItem
    Dim sh As Worksheet
    Dim cell As Range
    Dim strbody As String
    Dim FilenameStr As String
    Dim TempWb As Workbook
    Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon
    Set OutMail = OutApp.CreateItem(olMailItem)
    Set Sourcewb = ActiveWorkbook
    If Dir(Environ("commonprogramfiles") & "\Microsoft Shared\OFFICE" _
         & Format(Val(Application.Version), "00") & "\EXP_PDF.DLL") <> "" Then
    Sourcewb.Sheets(Array("By Area")).Copy
        Set TempWb = ActiveWorkbook
        On Error Resume Next
    Sheets("By Area").Select
    ActiveSheet.DrawingObjects.Visible = True
    ActiveSheet.DrawingObjects.Delete
    On Error GoTo 0
          'Change all cells in the worksheets to values if you want
    With TempWb.Sheets(1).UsedRange
    .Cells.Copy
    .Cells.PasteSpecial xlPasteValues
    .Cells(1).Select
    End With
    Application.CutCopyMode = False
        FilenameStr = Application.DefaultFilePath & "\" & "Part of " & Sourcewb.Name & " " & Format(Now, "dd-mmm-yy h-mm") & "~.pdf"
        ActiveSheet.ExportAsFixedFormat _
                Type:=xlTypePDF, _
                Filename:=FilenameStr, _
                Quality:=xlQualityStandard, _
                IncludeDocProperties:=True, _
                IgnorePrintAreas:=False, _
                OpenAfterPublish:=False
        'Close the new workbook you create file without saving
        TempWb.Close False
        Set OutApp = CreateObject("Outlook.Application")
        OutApp.Session.Logon
        Set OutMail = OutApp.CreateItem(0)
    For Each cell In ThisWorkbook.Sheets("By Area").Range("AB1:AB15")
    strbody = strbody & cell.Value & vbNewLine
    Next
    For Each cell In ThisWorkbook.Sheets("Report") _
    .Columns("AA").Cells.SpecialCells(xlCellTypeConstants)
        If cell.Value Like "?*@?*.?*" Then
            strto = strto & cell.Value & ";"
        End If
    Next
    strto = Left(strto, Len(strto) - 1)
        On Error Resume Next
        With OutMail
            .To = strto
            .CC = ""
            .BCC = ""
            .Subject = ThisWorkbook.Sheets("By Area").Range("AA1").Value
            .Body = strbody
            .Attachments.Add FilenameStr
            .ReadReceiptRequested = False
            .Importance = 1
            .DeferredDeliveryTime = ThisWorkbook.Sheets("By Area").Range("AD1").Value
            .SendUsingAccount = OutApp.Session.Accounts.Item(1)
            .Send
        End With
        On Error GoTo 0
    'Delete the file you send
    Kill FilenameStr
    Set OutMail = Nothing
    Set OutApp = Nothing
    With Application
        .ScreenUpdating = True
        .EnableEvents = True
    End With
    Else
    MsgBox "PDF add-in Not Installed"
    End If
End Sub

This macro uses the PDF add-in from Microsoft, not Adobe Acrobat.
You can open the PDF document in Adobe Acrobat and add a security password.

Similar Messages

  • PDF properties (meta tags) can't be changed (error 0x80040154 - class not registered)

    Hello,
    Changing PDF properties (meta tags: author, title, comment, theme etc) in  Adobe Reader as well as in Windows Explorer are disabled rsp does not funtion.
    1. In Adobe Reader "File properties", the overwriting rsp insertion of text is disabled in grey.
    2. In Windows  Explorer, following message window appears: "Properties change: Due to an unexpected error, properties can't be changed - Error  0x80040154: class not registered"
    (Sorry for the bad translation, but I am running the German version)
    Is there a technical explanation and  solution for this problem? In other PDF programms, the change of meta data does work fine.
    =====================
    Windows 7 64-bit, Acrobat Reader X 10.1.1. (Standard PDF Viewer)
    =====================
    Many thanks & best regards
    adiflis

    @MadEyes: I found out you had to set a site address in wordpress the hard way, i set it for a dns host and I couldn't get into the wp-admin page or load any sort of image or css.
    At the moment i have a server root directory with a wordpress folder on it. Eg:
        (/srv/http)/wp/
    and a  test index file in the root. Eg:
        (/srv/http)/index.html
    The index file doesn't show up publicly, but it will on the local network.
    I set the apache port back to 61669 and tested with canyouseeme.org. I got (i will email you the ip addy):
        Success: I can see your service on X.X.X.X on port (61669)       >EDIT: If I close apache, then it fails. Start it back up, it succeeds.
        Your ISP is not blocking port 61669
    I also nmap'd myself and got this:
        Host is up (0.025s latency).
        Not shown: 996 closed ports
        PORT     STATE    SERVICE
        23/tcp   open     telnet
        5989/tcp open     wbem-https
        6881/tcp filtered bittorrent-tracker
        8080/tcp open     http-proxy
    A port forward is definitely set up, so i dont know how much I can trust this (I did make 6881, but them program isn't open).
    Any of this any help?
    >EDIT: Excerpt from Webmin: "System hostname    localhost.localdomain" this doesn't seem right.
    Localhost:
    #<ip-address>   <hostname.domain.org>   <hostname>
    127.0.0.1       localhost.localdomain   localhost  ablanck
    #::1            ablanck.localdomain     localhost
    Last edited by lucytheboydog (2011-02-07 04:34:24)

  • Adobe PDF Properties

    I am having an issue with the Properties that need to be set at installtion of Acrobat Adobe 7 Standard. I install this package via SMS Server and use Microsoft SMS Installer. When Acrobat installs the Paper available setting under the General Tab and the For to Tray Assignment under the Device Settings always defaults to LETTER size. I deliver to 1500+ computers and need to have the Default set to A4 size.
    I run the following registry key changes but these do not seem to do the trick:
    (1)[HKEY_CURRENT_USER\Printers\DevModePerUser] with value set to
    "Adobe PDF"=(then the proper hex:# for A4). I know the hex number is correct because LETTER changes to A4.
    (2)[HKEY_CURRENT_USER\Printers\DevModes2] value set to "Adobe PDF"=hex:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Adobe PDF] value set to "Default DevMode"=hex:
    (3)[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Adobe PDF\DsDriver] values set to "printMediaReady"=hex(7):41,00,34,00,00,00,00,00 and "TrayFormTable"=hex:
    (4)[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Adobe PDF\PrinterDriverData] value set to "TrayFormTable"=hex:
    (5)KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Adobe PDF] value set to "Default DevMode"=hex:
    (6)[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Adobe PDF\DsDriver] values set to "printMediaReady"=hex: 41,00,34,00,00,00,00,00 and "TrayFormTable"=hex:
    (7)[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Adobe PDF\PrinterDriverData] value set to "TrayFormTable"=hex:
    (8)[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Adobe PDF] value set to "Default DevMode"=hex:
    (9)[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Adobe PDF\DsDriver] value set to "printMediaReady"=hex(7):41,00,34,00,00,00,00,00
    (10)[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Adobe PDF\PrinterDriverData] value set to "TrayFormTable"=hex:
    (11)[HKEY_USERS\.DEFAULT\Printers\DevModePerUser] value set to "Adobe PDF"=hex:
    (12)[HKEY_USERS\S-1-5-18\Printers\DevModePerUser] value set to "Adobe PDF"=hex:
    I have run the regestry change right after the installation and have run it also after the reboot of the installation. The registry changes shoe Aç but the actual properties in the reference above remain LETTER size. Would someone be so kind as to explain just where I am going wrong?

    Hi,
    you can modify the language setting with a workaround in Acrobat.
    LiveCycle Blog: Gesperrte PDF-Eigenschaften in XFA-Formularen ändern//Edit locked PDF properties in XFA forms

  • PDF Properties/Document Protection/Security/show details. List differs from Document Restriction Summary.

    Hello
    I have a number of PDFs that have user permissions.  When the files are opened in Adobe Reader the document's restriction summary lists differ and the form cannot be used as intended.
    Example  Open PDF Properties /Document Protection/ Security/ Show Details                                                    Properties/ Document Restriction/Security/Summary (I have changed
                                                                                                                                                                         the order to make easier for comparison.)
    Doc. Open Password         NO                                                                                                                                   
    Permissions Pass Word    YES                                                                                                                                                                                                                        
    Printing High Resolution     YES ......................................................................................... .....................................................YES                                                       
    Changing the Document     ALLOWED ........................................................................................... ..........................................NOT ALLOWED
    Commenting                     ALLOWED.......................................................................................... ............................................NOT ALLOWED                                                                                                                           
    Form Fill-in and Sign          ALLOWED ......................................................................................... ........................................... Fill ALLOWED........ Sign NOT ALLOWED                                                                                                      
    Document Assembly         ALLOWED............................................................................................ ..........................................NOT ALLOWED
    Content Copying                NOT  ALLOWED.................................................................................. ............................................NOT ALLOWED
    Accessibility                      ENABLED.................................................................................. ....................................................YES  (Content copy for Accessibility)
    Page Extraction                 NOT ALLOWED.................................................................................. ............................................NOT ALLOWED
    Template                           NOT SPECIFIED................................................................................ .............................................NOT ALLOWED.
    I am mystified why the two lists differ and the document when in use seems to be controlled by the list on the right, which takes away some of the user rights.
    Is there an explanation for this. I would have thought that as the documents were password protected for permissions such as commenting and signing Adobe Reader could not change this.
    Eric.

    Yes, thats right. I used Open Office 3 to generate the pdf. I have also tried using pdftk and Adobe Distiller 5 with the same result.
    Your statement implies, the 'Adobe Reader' features cannot be fully utilized without a valid Adobe Acrobat Pro.
    This is a document to which I have the source. I have been able to create the pdf with the required set of permissions based on standards. But I am being hassled because I didn't generate it with Adobe Pro! Well, I suppose this must have been a business decision, but its one thats standards contrary and morally low!
    Adobe just lost an avid Reader user. I shall circulate my findings within my work and social circles. Thanks to competition and open source, I am sure to find a standards compliant reader without much delay.
    Thanks for your help - graffiti
    Rahul Iyer

  • Cannot change Printer Properties in Word 2010 with J6480. Properties revert to default setting

    When I attempt to change Printer Properties in Word 2010, they simply revert back to the default setting.  I am unable to use the Printer Properties within the Word 2010.  If the default is grayscale, that is all the printer will print unless I change the default setup in the Control Panel. It appears to be an incompatibility with Office 2010 software as other programs allow the change of Printer properties.

    I have the exact identical problem.  Brand new printer (HP PhotoSmart C4780) on a brand new PC (Windows 7).  I cannot access the printer properties dialog box when the PDF file has been opened in an embedded Adobe Viewer window in Internet Explorer.
    When I select [Print] from Word or Adobe Viewer, or anywhere else, I can then press the [Properties] button and it opens the printer properties just fine.
    But if I open a PDF document through Internet Explorer, clicking on that [Properties] button doesn't do anything.  No error or anything.  If I press the [Save] in the Adobe Acrobet-embedded Internet Explorer window, it too does nothing.  This leads me to think it is an Adobe Acrobat issue.  However, I have found nothing in their support forums on this topic.
    Does anyone out there have any ideas?
    Scott

  • Sometimes PDDocSaveWithParams does not change PDF version

    Hi,
    In a plug-in we are changing document properties like, Initial view, Page layout, Fast web view, pdf version etc, it is working fine most of the time, But for some documents it is not changing version backwards i mean, if the original file version is 1.5, it can change to 1.6 but does not changing to 1.4, why it is happening so, where could be the problem?
    part of that code is given below for your reference
    PDDocGetVersion( pdDoc, &asiMajor, &asiMinor );
    asiMajor = 1;
    asiMinor = 4;
    PDDocSaveParamsRec pdDocSaveParams;
    ProgressMonitorRec pMonitor;
    pdDocSaveParams.saveFlags=PDSaveLinearized|PDSaveFullPDSaveCollectGarbage ;
    pdDocSaveParams.newPath= asPath;
    pdDocSaveParams.fileSys=ASGetDefaultFileSys();
    pdDocSaveParams.mon=NULL;
    pdDocSaveParams.monClientData=NULL;
    pdDocSaveParams.cancelProc=NULL;
    pdDocSaveParams.cancelProcClientData=NULL;
    pdDocSaveParams.major=asiMajor;
    pdDocSaveParams.minor=asiMinor;
    PDDocSaveWithParams(pdDoc,&pdDocSaveParams);

    You can do it like this:
    _t_PDDocSaveParams sp;
    memset(&sp,0,sizeof(_t_PDDocSaveParams));
    sp.size = sizeof(_t_PDDocSaveParams);
    sp.saveFlags = PDSaveFull;
    sp.major = 1;
    sp.minor = 4;
    sp.newPath = [some pathName];
    sp.saveFlags2 = PDSaveUncompressed; // <------ This will do the trick!
    PDDocSaveWithParams([your pdDcoc], &sp);
    This was tested with the SDK of Acrobat 9

  • Changing security properties

    how do I change security properties in Adobe Reader X or in Acrobat.com? I can create pdf's and convert but my documents have no security.

    There is no mechanism for changing the security on a PDF file from within Acrobat.com. You can choose to make it private or public, but that's all.
    To add password protection, you'll need to use Adobe Acrobat.
    Hope this helps!

  • Changing document properties

    Hi,
    I want to change the properties of my PDF documents on Mac OS but it's impossible to change anything. Has someone got a solution ?
    Thank you

    You mean "properties" as in File>Properties?
    If so, you would need Acrobat and not the free Reader.

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties.
    First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It works fine in itunes, though. But when I tried to access it from "my computer" it only
    showed me the one and only picture I had on my ipod. I deleted that picture hoping it would no longer show up as a camera. When it still did I right-clicked on it in "my computer" and selected "properties". Under "autoplay" I
    chose for it to 'not show up' or 'take no action' or some such deal when I plugged it in. I thought that would stop it from popping up the window that asks whether i want to 'open camera wizard' or 'open camera scanning' or 'open folder to view files' or 'take
    no action' , etc. But now it won't show up in "my computer" at all. I also have a Mac with SnowLeopard. When I plugged my ipod into it my ipod doesn't show up in "finder" either! So basically my problem is not a mechanical one with hardware
    or software; yht ipod still works fine in itunes. I just need to undo the change I made. I've searched all around my preferences, utilities, options, etc. It shows up on my "Device Manager" but not on "Disk Management".
    Any help would be very much appreciated. Thanks.

    Hi,
    To show up in Windows Explorer, you can try placing the iPod into
    disk mode.
    Moreover, i recommend you to
    restore ipod to factory settings.
    If this issue still persists, locate to device manager, uninstall and reinstall USB Mass Storage Device driver.
    Here is an article you can refer to below:
    http://support.apple.com/kb/TS1369
    To get more help, you can also redirect to apple support forum:
    http://www.apple.com/support/ipod/
    Thanks!
    Andy Altmann
    TechNet Community Support

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • How to change the properties of a directory using java code

    Hai All,
    I need to change the properties of directory( websharing).
    Can i do this using java code.
    Regards,
    Charan

    I need to change the properties of
    directory( websharing).
    an i do this using java code.Depends on whether the server has a Java API to do it. Most likely it hasn't.

  • How to change shape properties after having created one?

    Photoshop CC 2014 -- latest update as of October 06, 2014
    Windows 7
    How can I change a shapes properties after having created one.
    I have created a simple ellipse.
    When I drew the ellipse with the tool, I had the option for the fill color/style and stroke, etc.
    After I have created said ellipse, I wish to change its properties.
    I can use the Paint Bucket, gradient tool, etc for the fill, but is there way to get back to the original set of tools with which I created the ellipse in the first place?
    If I use Edit > Stroke... it adds a new stroke around the existing shape.
    If I use Edit > Fill... the entire layer is filled.
    There must surely be a way to reenter the tool set to edit an existing shape. No?
    Thanks,

    Hi everyone,
    Thanks for the helpful tips, advice, etc.
    I didn't explain myself very well--I apologize.
    However, with your tips I figured it out:
    When I create a rectangle or ellipse, I can later click on its layer and the Properties window appears with options to change their "Live Shape Properties."
    However, not so with the Polygon and Shape tools. With them, the Properties window shows only the Masks, but the Toolbar still shows some basic properties I can change.
    I was stymied by the above differences while working only on a Shape.
    I've attached two JPEG screenshots.
    I didn't need to change the actual shape, just the fill/stroke, etc.
    Later, I may wish to change the actual shape, but that appears to be done by simply creating something new.
    Thanks much!!

  • I have the converter to change pdf to word. Works sometime, other time says conversion is taking too long. Can I get what it has translated so I can use the parts?

    I have the converter to change pdf to word. Works sometime, other time says conversion is taking too long. Can I get what it has translated so I can use the parts?

    I would ask in the ExportPDF forum, Adobe ExportPDF (read only) (assuming that's the service to which you have subscribed). This is the Reader one.

  • "Click To Change All Properties" Not Working In Dreamweaver CC For Padding/Margins

    Every time I try to use the "Click To Change All Properties" option in Dreamweaver CC (the chain link icon in the middle of the Magin/Padding box), it never seems to work. Nor does it use the CSS shorthand, it lists the top, bottom, left and right margins/padding separately no matter if I have the chain link icon connected or broken.  If I have it set to link all four sides, then enter a value into the top, nothing happens to the other sides. It's not until I enter a value in to the bottom that it auto fills in the other two sides. Anyone else having this issue?

    Thank you for your help. I think I figured out what I might have been doing wrong when setting the margins. I would first clickt the chain icon to join everything, then enter in a value in the Top box, but I wouldn't see the other boxes update with that same value, so I would immediately click the Bottom value box. Instead, if I just click on the inner white box, just outside of the perimeter of the chain icon, it updates all of the remaining values.
    The shorthand setting worked as well for the Padding/Margins. Thank you!

  • How to change the properties of individulal elements in an array?

    Hi all,
    I have an array (size is 25) of string and I want to disable and grayout half of them. But how do I do it? How do I change the properties of individual elements in an array? I have tried to use some of the examples given in the discussion forums, but it didint work for the task mentioned above. Anybody would be able to help me with a suitable example that can be specifically used for disable or enable the individual array  elements?
    Dev

    Telemaque wrote:
    The user will see the first half of the string elements filled-in and the lower half grayed-out (to be filled in later).  Make a test VI, play around.
    ... except that all elements "greyed out" with this method contain the default string for the array element (blank by default, but changeable). There is no way to have meaningful, unique text in the greyed out elements.
    I would suggest to use a listbox as control/indicator. Here elements can easily be disabled programmatically.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for