Buy Questpond's video subscriptions on
huge discount
.
Online: 2063
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
Control PDF Viewer (Saving & Print)
Posted by
Donomar
under
ASP.NET
on 10/19/2015 |
Points: 10
| Views : 1282 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hello guys, I have some important PDFs to be displayed on webpages, but i want to control it by allowing particular users to save and print. How can i get this ?
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Sheonarayan
on: 10/19/2015
[Administrator]
HonoraryPlatinum
|
Points: 25
0
Here is an article that describe how to generate a .pdf using iTextSharp (a third party free .dll).
http://www.dotnetfunda.com/articles/show/977/pdf-generator-in-net-dynamically-generate-pdf-in-aspnet
In this article, we have GenerateOnlyPDF, GeneratePDFAndDownload, and GeneratePDFWithText methods. In these methods, check for that particular user and then only call GeneratePDF method. If for that particular user you do not want to generate .pdf, show an error message.
Hope this helps.
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Donomar
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Rghotra
on: 10/29/2015
[Member]
Starter
|
Points: 25
0
If you want to restrict the PDF view to certain users, I think its something that will require a database for users and each each user will have his own permissions. Based on the permissions, the PDF settings will be set. Is that what you need?
If you want to set a PDF file specific options to disable editing or printing, I think “Sheonarayan” link is a good start. I used leadtools sdk that allowed me to set the PDF options using PdfDocumentOptions & PDFInitialViewOptions classes.
Donomar
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
How white label Uber app clone can help you start a taxi business like Uber?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
Where can I found sample MVC projects to learn and improve skills
(1)
Extract a value from HTML string
(0)
Get only year part from date string in SQL server
(0)
More ...