Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    72
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Secret to a Pro (.pdf) One Sheet ???

    OK...

    The band just released our debut CD; & I created a really nice One-Sheet in Illustrator 10 (a One-Sheet being an 8.5 X 11 promotional press release for an album...containing band bio, release & contact info, gigs, assorted graphics, etc., etc.)

    I saved it for the web (as a .jpg), opened it in Photoshop (6) & saved it as a .pdf (I did it this way to retain the resolution (300 ppi) but reduce the file size...when I save it as a .pdf directly from Illustrator...it's 34 MB in size. Using the above method, it's only 2.8.)

    Anyway...forgetting creation method for a moment...the main problem is:

    If you go to any decent music distributor's website; & click on any artist's One-Sheet link...the file save/open dialog comes up; & if open is chosen, the .pdf opens in Adobe Reader (like it's supposed to.)

    With ours...it opens right away...in some sort of Internet Explorer, Adobe Reader interface.

    How do I code (or configure) our .pdf to open in Adobe Reader (solely)?

    Thanks,

    mark4man

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Whether it opens in the browser or separately depends on how your browser is configured. People who have it open in their browser window have specifically configured their browser to do that and so you will annoy them if you change the document to not open that way.

    The simplest way to ensure a file is offered for download is to place it in a zip file and upload that.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    New Coder
    Join Date
    Aug 2003
    Posts
    72
    Thanks
    3
    Thanked 0 Times in 0 Posts
    felgall...

    Thanks.

    You don't understand...both ways are happening on my computer.

    When I visit a distibutor's site & click on a one-sheet, it opens in Reader (on my computer, connected to the web.)

    Wnen I click on ours on our website...it opens in IE.

    mark4man

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,919
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    The easiest way for us to find out/help you would be if you provided the links because this can't be solved just by guessing. If I had to guess I'd say this is nothing one can influence through HTML. That's the user's/browser's choice how it will be handled.

  • #5
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    You can't control the behavior through HTML (as it's just a markup language) but you can control it if you have .htaccess on your server:

    Code:
    ForceType application/octet-stream
    Usually works for me. Putting that rule in a .htaccess file and saving it in the directory your pdf is in should force anything in that directory to be downloaded rather than opened.

    Hope this helps…

  • #6
    New Coder
    Join Date
    Aug 2003
    Posts
    72
    Thanks
    3
    Thanked 0 Times in 0 Posts
    VIP & rmedak...

    Thanks...I think we're getting somewhere, now.

    I went & looked at the code (for a succesful one-sheet link) at a typical music distribution site; & it read like this (arrows reversed for full code viewing, of course):

    >a href="download.php?file=Perfect.pdf"<img src="images/icon/One-Sheet.gif" border="0" alt="Click Here to view One-Sheet" width="18" height="15"<

    I think the php? may have something to do with it, maybe?

    Thanks again,

    mark4man
    Last edited by mark4man; 01-01-2007 at 11:37 PM.

  • #7
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Sorry, I missed the part where you said you wanted to open it in Adobe only… I thought you wanted it to download only.

    So a browser reacts to whatever's in the header (the info sent to the browser detailing what file it's about to open); chances are the headers being sent from your site and the music site you're visiting are different. You're right in that the headers are most likely being written via code in the .php file. I can't help you there; if you want to use PHP to control the headers let me know and I'll move this post to the PHP forum.

    You'll have to post a link to the sites you're talking about for any other help.

    Also, you can post code in [ code ] tags (or click the "#" in the editor).


  •  

    Posting Permissions

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