Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Thanked 0 Times in 0 Posts

    How set document properties e.g. Title, Author - for display in Win folder view?

    document.title = "Invoice 123";
    The above sets the 'Title' property, is there a property I can set for Author or Comment, etc.

    I have Javascript that creates an Invoice - which prints OK.
    I also need the user to be able to SAVE it as a pdf - to a Windows Folder with the 'Title', 'Author' and 'Comments' fields set - i.e. so that they display in the 'detail' view (and are therefore sortable by these attributes).

    Ideally, I would like to create a custom property to store the 'Company' (the Invoice is being sent to) and to show this custom property/column in the folder view.

  2. #2
    Regular Coder
    Join Date
    Jan 2013
    Sunnyvale, CA
    Thanked 10 Times in 10 Posts
    Generally, the browser is decoupled from the operating system's file system to enforce security, so that mischievous webmasters don't access people's hard drives.

    If you want to offer users a PDF invoice by email, you might want to use XSL-FO, and if you do then you will want to install an xsl parser on your server to do it. FOP is an open source (i.e. free-to-use) parser, but the XSL-FO learning curve might cost you. Other solutions exist as well, so you might want to research options and select the one that suits you best.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts