axacropdf

Prevent user from printing/saving PDF file in C#

别来无恙 提交于 2021-02-05 07:24:26
问题 I am writing an application that views PDF files, this application uses AxAcroPDFLib AxAcroPDF My problem here is that I want to prevent user from saving and/or printing PDF files that are being viewed in my application Or in other words I want to hide toolbar of the PDF viewer any ideas ?! Thanx in advance 回答1: I solved the problem by using another plugin to view PDF files PDF Viewer 回答2: You can able to hide the toolbar by axAcroPDF1.setShowToolbar(false); 来源: https://stackoverflow.com

Disable Adobe Reader toolbar from my ActiveX

半世苍凉 提交于 2019-12-31 04:59:45
问题 I am loading a PDF document in my ActiveX using AxAcroPDFLib and iTextSharp libraries. I want to disable the toolbar (that have Save, Print etc options) from the loaded PDF so that user cannot 'Save' the PDF from ActiveX. I have following code: axAcroPDF1.Width = someWidth; axAcroPDF1.Height = someHeight; axAcroPDF1.LoadFile(documentPath); axAcroPDF1.setPageMode("none"); axAcroPDF1.setShowToolbar(false); axAcroPDF1.Show(); axAcroPDF1.Focus(); The axAcroPDF1.setShowToolbar(false) disables the

AcroPDFlib, AxAcroPDFLib commercial use

你离开我真会死。 提交于 2019-12-22 05:13:05
问题 I'm C# developer and i'd like to use this libraries: AcroPDFlib, AxAcroPDFLib from Visual Studio COM References. Is it't legal to sell software which using these libraries ? I know that it's required to have installed Adobe Reader on PC. Can I sell it without contact with Adobe ? It's not easy to find clear find clear information. Best regards, Baton. 回答1: No it is not legal. The current license fee is: One-time License Fee - $5,000 The following libraries are from Adobe and you need to get

Embed a PDF into a WPF application

强颜欢笑 提交于 2019-12-13 15:12:00
问题 I'm trying to embed/display a PDF in a WPF application. So far, I've tried those solutions, without success: Display the PDF in a WindowsFormsHost hosting an AxAcroPdf control, similarly to what's shown here. The problem is that my application sets AllowsTransparency = True to create a style similar to Modern UI, but that doesn't blend well with a WindowsFormsHost (the control becomes invisible). Display the PDF in a WebBrowser control. The problem is the same. Set AllowsTransparency = False

PDF Viewer hosting forms hugging control after closing

懵懂的女人 提交于 2019-12-08 13:58:25
A bunch of my C# and VB programs utilize PDFViewer control and AxAcroPDFlib . It's been serving me well for years but recently, after installing Adobe Reader DC, all applications using PDFViewer started to have problems. PDFViewer controls open PDF documents really fast, instantly. However, when I go to close the form hosting PDFViewer control with open PDF document, the form takes anywhere between 5-10 seconds to return control to other form in the same program. Other forms just remain disabled, with hourglass mouse pointer for an extended time. Is there new AxAcroPDFlib that should be used

PDF Viewer hosting forms hugging control after closing

北战南征 提交于 2019-12-08 04:16:08
问题 A bunch of my C# and VB programs utilize PDFViewer control and AxAcroPDFlib . It's been serving me well for years but recently, after installing Adobe Reader DC, all applications using PDFViewer started to have problems. PDFViewer controls open PDF documents really fast, instantly. However, when I go to close the form hosting PDFViewer control with open PDF document, the form takes anywhere between 5-10 seconds to return control to other form in the same program. Other forms just remain

AxAcroPDF - Vista64 Class Not Registered Error

*爱你&永不变心* 提交于 2019-12-05 21:57:15
问题 We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (on Vista 64) unless I remove the AxAcroPDF component. I get the following error when the application runs: "System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E

AcroPDFlib, AxAcroPDFLib commercial use

烈酒焚心 提交于 2019-12-05 07:55:16
I'm C# developer and i'd like to use this libraries: AcroPDFlib, AxAcroPDFLib from Visual Studio COM References. Is it't legal to sell software which using these libraries ? I know that it's required to have installed Adobe Reader on PC. Can I sell it without contact with Adobe ? It's not easy to find clear find clear information. Best regards, Baton. Nasenbaer No it is not legal. The current license fee is: One-time License Fee - $5,000 The following libraries are from Adobe and you need to get any license if you want to sell it commercial. http://www.datalogics.com/products/pdfl The

AxAcroPDF - Vista64 Class Not Registered Error

筅森魡賤 提交于 2019-12-04 04:08:47
We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (on Vista 64) unless I remove the AxAcroPDF component. I get the following error when the application runs: "System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." I have been advised on the Adobe Forums that the reason for the error is that they do not have a

AxAcroPDF swallowing keys, how to get it to stop?

守給你的承諾、 提交于 2019-12-01 08:51:07
The AxAcroPDF swallows all key-related events as soon as it gets focus, including shortcuts, key presses, etc. I added a message filter, and it doesn't get any key-related messages either. It's a COM component, could that be relevant? Is there any way to catch these before the control starts swallowing them? Kevin McCormick Hans is correct, the Acrobat Reader spawns two child AcroRd32 processes which you have no direct access to from within your managed code. I have experimented with this and you have three viable options: You can create a global system hook , and then look for and filter out