Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 14th, 2004, 02:44 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create a Read-Only PDF in C#.NET?


Greetings p2p,

Here is my problem: my boss wants to create a PDF file for our clients that they can open (without entering a password) that cannot be viewed or modified programmatically. This file may be passed on to our clients' clients, and while we want everyone to be able to reuse (or "re-view") the contents, we want to make it as difficult as possible to programatically reuse the contents (as there are IP issues involved).

I have looked at encrypting the PDF, but this appears to require a password everytime the file is used. This, unfortunately, does not work for our situation. I know that PDFs have two levels of encryption: one for general viewing and one for modification. Putting a password on modification and not general viewing does not solve our problem either.

Any ideas as to how this could be achieved (or not)?

Thanks,

-=John

  #2 (permalink)  
Old September 15th, 2004, 08:52 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I can't say I am clear as to what the problem is- A PDF can be "annotated" but not changed. by default. If your concern is someone will read the PDF into another file and modify it- the modified file will show the signs of change (EG: A different date). If you encypt it, of course, it can be un-encrypted and then changed.

I don't know if there's a way to prevent a programatic attack on an PDF other than encryption- and that's not foolproof.

the other idea is to digitally sign (but not encrypt) the file. If the file is changed, the signature will drop out. A CRC check could also show changes in the file.



Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
read pdf files in C# prasannatele Visual Studio 2005 0 September 12th, 2007 05:46 AM
Handler to read and load a PDF file Mehdi6002 ASP.NET 2.0 Professional 0 May 8th, 2007 04:39 PM
Create pdf files from VB.net hoeknu VB How-To 4 October 27th, 2006 10:03 AM
Create a PDF with VB.NET medwar76 Pro VB.NET 2002/2003 5 October 29th, 2003 01:16 PM
Create a PDF with VB.NET medwar76 VS.NET 2002/2003 0 September 4th, 2003 02:38 PM



All times are GMT -4. The time now is 06:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.