pdf manipulation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Mosser

    pdf manipulation

    I have a client who would like to host a PDF on his site, but make it so
    that each individual that downloads it has to open it with a separate
    username and password. My question is if any php classes or libraries have
    the capabilities to load an existing PDF into memory and basically add in
    the login portion of it dynamically. Or, if anyone knows of a 3rd party
    executable that can handle this, that would be great too.

    --
    thnx,
    Chris Mosser


  • Guest's Avatar

    #2
    Re: pdf manipulation


    "Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
    news:2IadndgUYr pZPkKiRVn-tA@comcast.com. ..[color=blue]
    > I have a client who would like to host a PDF on his site, but make it so
    > that each individual that downloads it has to open it with a separate
    > username and password. My question is if any php classes or libraries[/color]
    have[color=blue]
    > the capabilities to load an existing PDF into memory and basically add in
    > the login portion of it dynamically. Or, if anyone knows of a 3rd party
    > executable that can handle this, that would be great too.
    >
    > --
    > thnx,
    > Chris Mosser
    >
    >[/color]

    Where are the usernames & passwords maintained ?
    Just place the pdf in its own subdirectory and protect that directory with
    the web server.




    Comment

    • Chris Mosser

      #3
      Re: pdf manipulation



      --
      Chris Mosser
      <xyzzy> wrote in message news:KJKdnamTT4 h6OUKiRVn-uw@comcast.com. ..[color=blue]
      >
      > "Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
      > news:2IadndgUYr pZPkKiRVn-tA@comcast.com. ..[color=green]
      > > I have a client who would like to host a PDF on his site, but make it so
      > > that each individual that downloads it has to open it with a separate
      > > username and password. My question is if any php classes or libraries[/color]
      > have[color=green]
      > > the capabilities to load an existing PDF into memory and basically add[/color][/color]
      in[color=blue][color=green]
      > > the login portion of it dynamically. Or, if anyone knows of a 3rd party
      > > executable that can handle this, that would be great too.
      > >
      > > --
      > > thnx,
      > > Chris Mosser
      > >
      > >[/color]
      >
      > Where are the usernames & passwords maintained ?
      > Just place the pdf in its own subdirectory and protect that directory with
      > the web server.
      >
      >
      >
      >[/color]

      my client wants the people who download it to have to provide a password
      when they try to open the file on their own computer...to help cutdown on
      piracy

      Chris Mosser


      Comment

      • Guest's Avatar

        #4
        Re: pdf manipulation


        "Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
        news:VMidnQEOH6 iZM0Ki4p2dnA@co mcast.com...[color=blue]
        >
        >
        > --
        > Chris Mosser
        > <xyzzy> wrote in message news:KJKdnamTT4 h6OUKiRVn-uw@comcast.com. ..[color=green]
        > >
        > > "Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
        > > news:2IadndgUYr pZPkKiRVn-tA@comcast.com. ..[color=darkred]
        > > > I have a client who would like to host a PDF on his site, but make it[/color][/color][/color]
        so[color=blue][color=green][color=darkred]
        > > > that each individual that downloads it has to open it with a separate
        > > > username and password. My question is if any php classes or libraries[/color]
        > > have[color=darkred]
        > > > the capabilities to load an existing PDF into memory and basically add[/color][/color]
        > in[color=green][color=darkred]
        > > > the login portion of it dynamically. Or, if anyone knows of a 3rd[/color][/color][/color]
        party[color=blue][color=green][color=darkred]
        > > > executable that can handle this, that would be great too.
        > > >
        > > > --
        > > > thnx,
        > > > Chris Mosser
        > > >
        > > >[/color]
        > >
        > > Where are the usernames & passwords maintained ?
        > > Just place the pdf in its own subdirectory and protect that directory[/color][/color]
        with[color=blue][color=green]
        > > the web server.
        > >
        > >
        > >
        > >[/color]
        >
        > my client wants the people who download it to have to provide a password
        > when they try to open the file on their own computer...to help cutdown on
        > piracy
        >
        > Chris Mosser
        >
        >[/color]

        Well then, the PHP group cant help. Looks like you are buying software.





        Comment

        • adamt

          #5
          Re: pdf manipulation

          On Tue, 16 Dec 2003 17:14:33 -0800, Chris Mosser wrote:
          [color=blue]
          >
          > my client wants the people who download it to have to provide a password
          > when they try to open the file on their own computer...to help cutdown on
          > piracy[/color]

          That won't stop piracy. Take a look on whatever napster clone /p2p
          sharing network you like, and you'll find plenty of PDFs called things
          like:

          copyrighted_fil e_the_password_ is_openSe5am3.p df


          Comment

          • Justin Koivisto

            #6
            Re: pdf manipulation

            Chris Mosser wrote:[color=blue]
            > <xyzzy> wrote in message news:KJKdnamTT4 h6OUKiRVn-uw@comcast.com. ..
            >[color=green]
            >>"Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
            >>news:2IadndgU YrpZPkKiRVn-tA@comcast.com. ..
            >>[color=darkred]
            >>>I have a client who would like to host a PDF on his site, but make it so
            >>>that each individual that downloads it has to open it with a separate
            >>>username and password. My question is if any php classes or libraries[/color]
            >>have[color=darkred]
            >>>the capabilities to load an existing PDF into memory and basically add[/color][/color]
            > in[color=green][color=darkred]
            >>>the login portion of it dynamically. Or, if anyone knows of a 3rd party
            >>>executable that can handle this, that would be great too.
            >>>[/color]
            >>
            >>Where are the usernames & passwords maintained ?
            >>Just place the pdf in its own subdirectory and protect that directory with
            >>the web server.[/color]
            >
            > my client wants the people who download it to have to provide a password
            > when they try to open the file on their own computer...to help cutdown on
            > piracy[/color]

            I believe the folks at http://www.phparch.com/ do that with their
            publication. Maybe drop a line in that direction to see if you can get
            answers.

            --
            Justin Koivisto - spam@koivi.com
            PHP POSTERS: Please use comp.lang.php for PHP related questions,
            alt.php* groups are not recommended.

            Comment

            • Chris Mosser

              #7
              Re: pdf manipulation


              "adamt" <adamt@ueterep. netvoss.co.uk> wrote in message
              news:pan.2003.1 2.17.13.33.24.8 14680@ueterep.n etvoss.co.uk...[color=blue]
              > On Tue, 16 Dec 2003 17:14:33 -0800, Chris Mosser wrote:
              >[color=green]
              > >
              > > my client wants the people who download it to have to provide a password
              > > when they try to open the file on their own computer...to help cutdown[/color][/color]
              on[color=blue][color=green]
              > > piracy[/color]
              >
              > That won't stop piracy. Take a look on whatever napster clone /p2p
              > sharing network you like, and you'll find plenty of PDFs called things
              > like:
              >
              > copyrighted_fil e_the_password_ is_openSe5am3.p df
              >
              >[/color]

              I know, but it's what my client wants to do. I think I found a way using
              pdflib, but my testing server is using an older version the from the pdflib
              docs that I read. If anyone is using a newer version of pdflib (5.0+ I'm
              guessing) can you please try this:

              $pass = $_POST['pass'];
              $pdf = pdf_new();
              pdf_open_file($ pdf, "some.pdf") ;
              pdf_set_paramet er($pdf, "userpasswo rd", $pass);


              I get an unknown parameter error but I am wondering if its just because my
              server has pdflib 4.x.x and that parameter was not available then.
              according to the pdflib manual, the parameter does exist.

              can anyone help?????/////
              --
              Chris Mosser


              Comment

              • Chris Mosser

                #8
                Re: pdf manipulation



                "Justin Koivisto" <spam@koivi.com > wrote in message
                news:7piEb.54$5 I6.2904@news7.o nvoy.net...[color=blue]
                > Chris Mosser wrote:[color=green]
                > > <xyzzy> wrote in message news:KJKdnamTT4 h6OUKiRVn-uw@comcast.com. ..
                > >[color=darkred]
                > >>"Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
                > >>news:2IadndgU YrpZPkKiRVn-tA@comcast.com. ..
                > >>
                > >>>I have a client who would like to host a PDF on his site, but make it[/color][/color][/color]
                so[color=blue][color=green][color=darkred]
                > >>>that each individual that downloads it has to open it with a separate
                > >>>username and password. My question is if any php classes or libraries
                > >>have
                > >>>the capabilities to load an existing PDF into memory and basically add[/color]
                > > in[color=darkred]
                > >>>the login portion of it dynamically. Or, if anyone knows of a 3rd[/color][/color][/color]
                party[color=blue][color=green][color=darkred]
                > >>>executable that can handle this, that would be great too.
                > >>>
                > >>
                > >>Where are the usernames & passwords maintained ?
                > >>Just place the pdf in its own subdirectory and protect that directory[/color][/color][/color]
                with[color=blue][color=green][color=darkred]
                > >>the web server.[/color]
                > >
                > > my client wants the people who download it to have to provide a password
                > > when they try to open the file on their own computer...to help cutdown[/color][/color]
                on[color=blue][color=green]
                > > piracy[/color]
                >
                > I believe the folks at http://www.phparch.com/ do that with their
                > publication. Maybe drop a line in that direction to see if you can get
                > answers.
                >
                > --
                > Justin Koivisto - spam@koivi.com
                > PHP POSTERS: Please use comp.lang.php for PHP related questions,
                > alt.php* groups are not recommended.
                >[/color]


                thnx, I'll check it out
                --
                Chris Mosser


                Comment

                • FLEB

                  #9
                  Re: pdf manipulation

                  Regarding this well-known quote, often attributed to adamt's famous "Wed,
                  17 Dec 2003 13:33:24 GMT" speech:
                  [color=blue]
                  > On Tue, 16 Dec 2003 17:14:33 -0800, Chris Mosser wrote:
                  >[color=green]
                  >>
                  >> my client wants the people who download it to have to provide a password
                  >> when they try to open the file on their own computer...to help cutdown on
                  >> piracy[/color]
                  >
                  > That won't stop piracy. Take a look on whatever napster clone /p2p
                  > sharing network you like, and you'll find plenty of PDFs called things
                  > like:
                  >
                  > copyrighted_fil e_the_password_ is_openSe5am3.p df[/color]

                  Well, make the password their credit card number (or some other similarily
                  sensitive info) and watch that problem vanish!

                  book_password_i s_MC-283791882738821 0-EXP-0907.pdf, anyone?

                  --
                  -- Rudy Fleminger
                  -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
                  (put "Hey!" in the Subject line for priority processing!)
                  -- http://www.pixelsaredead.com

                  Comment

                  Working...