Search found 20 matches

by Shaun Luttin
Wed May 09, 2018 7:06 pm
Forum: PDF-XChange Viewer SDK
Topic: Localization Support
Replies: 1
Views: 3940

Localization Support

What localization support does the PDF-XChange Viewer SDK provide?
by Shaun Luttin
Wed May 09, 2018 4:50 pm
Forum: PDF-XChange Viewer SDK
Topic: Access the icons that the Viewer uses.
Replies: 1
Views: 4138

Access the icons that the Viewer uses.

We are creating a custom context menu for the PDF viewer, and we would like to use the icons that the viewer uses. For instance, for our Rotate command, we would like to use the Viewer's built-in rotate image. How can we access those icons? 1. Can we access those icons programmatically? 2. If not, c...
by Shaun Luttin
Tue May 08, 2018 10:47 pm
Forum: PDF-XChange Viewer SDK
Topic: Update page count after deleting a page
Replies: 2
Views: 5295

Re: Update page count after deleting a page

This remains unsolved. That said, here is a workaround that refreshes the navigation bar: _viewer.DoVerb(null, "ExecuteCommand", (object) "TogglePagesNavigationBar", out var _); _viewer.DoVerb(null, "ExecuteCommand", (object) "TogglePagesNavigationBar", out va...
by Shaun Luttin
Tue May 08, 2018 8:59 pm
Forum: PDF-XChange Viewer SDK
Topic: Update page count after deleting a page
Replies: 2
Views: 5295

Update page count after deleting a page

After deleting a page from a PDF, the Navigation Toolbar does not update itself automatically. Capture.PNG Expected Behavior: 1. Delete a page. 2. The Navigation Toolbar updates the number of pages. Actual Behavior: 1. Delete a page. 2. The Navigation Toolbar does not update. 3. Mouse over the Navig...
by Shaun Luttin
Tue May 08, 2018 1:44 am
Forum: PDF-XChange Viewer SDK
Topic: Notifications.Mouse.Filter = All is not surfacing mouse click events.
Replies: 1
Views: 4090

Notifications.Mouse.Filter = All is not surfacing mouse click events.

We read the documentation on Mouse Notifications here: https://help.pdf-xchange.com/DEV/default.aspx?pageid=ViewerAXSDK:topic_obj_notifications_mouse We have set this: viewer.SetProperty("Notifications.Mouse.Filter", "All"); viewer.OnEvent += On_ViewerEvent; We have also this eve...
by Shaun Luttin
Tue May 08, 2018 12:41 am
Forum: PDF-XChange Viewer SDK
Topic: Mouse click notifications for Scroll Bars...
Replies: 5
Views: 6122

Re: Mouse click notifications for Scroll Bars...

What is the status of this? Has the ability to customize the context menu made it to production?
by Shaun Luttin
Wed May 02, 2018 1:05 am
Forum: PDF-XChange Viewer SDK
Topic: Add a custom button with custom behavior to a toolbar.
Replies: 1
Views: 4134

Add a custom button with custom behavior to a toolbar.

We would like to add a custom (not built-in) button like this: Capture.PNG We have already customized which built-in toolbars/buttons are visible. See https://forum.pdf-xchange.com/viewtopic.php?f=36&t=30822 Now we would like to add a button that is not built-in. What have we tried? 1. We looked...
by Shaun Luttin
Wed May 02, 2018 12:55 am
Forum: PDF-XChange Viewer SDK
Topic: Programmatically determine whether the PDF is secured? SOLVED
Replies: 3
Views: 11338

Re: Programmatically determine whether the PDF is secured? SOLVED

We ended up doing it like this: public bool IsDocumentSecured(int docId) { // For now we assume the document is secured if the Delete Page operation is not granted. // We asked a forum question here that might surface a better approach. // https://forum.pdf-xchange.com/viewtopic.php?f=36&t=30839...
by Shaun Luttin
Wed May 02, 2018 12:52 am
Forum: PDF-XChange Viewer SDK
Topic: Customize the built-in menu bars and panes SOLVED
Replies: 6
Views: 7555

Re: Customize the built-in menu bars and panes SOLVED

We were able to make this work by exporting the settings from our application instead of from the end-user viewer. This is how we did it. public void SaveSettings() { try { // SavePath is an absolute path to a *.dat file var obj = SavePath as object; _viewer.SaveSettings(ref obj); } catch (Exception...
by Shaun Luttin
Tue May 01, 2018 6:56 pm
Forum: PDF-XChange Viewer SDK
Topic: Customize the built-in menu bars and panes SOLVED
Replies: 6
Views: 7555

Re: Customize the built-in menu bars and panes SOLVED

We tried that and are receiving an exception that says, "Source storage is wrong."
by Shaun Luttin
Wed Apr 25, 2018 6:05 pm
Forum: PDF-XChange Viewer SDK
Topic: Programmatically determine whether the PDF is secured? SOLVED
Replies: 3
Views: 11338

Programmatically determine whether the PDF is secured? SOLVED

How can we programmatically determine whether the PDF is secured?

We're looking for something like this:

Code: Select all

private bool IsDocumentSecured(int docId)
{
    _viewer.GetDocumentProperty(docId, "Document.Security", out var isSecured);
    return (int) isSecured == 1;
}
by Shaun Luttin
Wed Apr 25, 2018 5:57 pm
Forum: PDF-XChange Viewer SDK
Topic: How do we enable a currently disabled command? SOLVED
Replies: 4
Views: 6480

Re: How do we enable a currently disabled command? SOLVED

How can we programmatically determine whether the PDF is secured?
by Shaun Luttin
Wed Apr 25, 2018 5:10 pm
Forum: PDF-XChange Viewer SDK
Topic: How do we enable a currently disabled command? SOLVED
Replies: 4
Views: 6480

Re: How do we enable a currently disabled command? SOLVED

Hi Stefan,

Indeed the PDF is labeled as [Secured]. How can we work around that? For instance, can we simply create a copy of the PDF?

Best,
Shaun
by Shaun Luttin
Tue Apr 24, 2018 6:41 pm
Forum: PDF-XChange Viewer SDK
Topic: How do we enable a currently disabled command? SOLVED
Replies: 4
Views: 6480

How do we enable a currently disabled command? SOLVED

How do we enable the DeletePages command? Its current state is Disabled and when trying to run it we are receiving, "No permissions for current action". private void DeletePageFromDocument(int documentId, int pageIndex) { try { axCoPDFXCview1.SetProperty("Operations.DeletePages.RangeT...
by Shaun Luttin
Tue Apr 24, 2018 4:36 pm
Forum: PDF-XChange Viewer SDK
Topic: Customize the built-in menu bars and panes SOLVED
Replies: 6
Views: 7555

Re: Customize the built-in menu bars and panes SOLVED

Thank you. We'll give that a try.
by Shaun Luttin
Mon Apr 23, 2018 11:39 pm
Forum: PDF-XChange Viewer SDK
Topic: Customize the built-in menu bars and panes SOLVED
Replies: 6
Views: 7555

Customize the built-in menu bars and panes SOLVED

We would like to use parts of the built-in menu bars and panes. For instance, in the Zoom bar, we might only want to expose the slider. How can we do that programmatically?
Capture.PNG
by Shaun Luttin
Mon Apr 23, 2018 11:33 pm
Forum: PDF-XChange Editor SDK
Topic: Error HRESULT E_FAIL has been returned from a call to a COM component. SOLVED
Replies: 3
Views: 1671

Re: Error HRESULT E_FAIL has been returned from a call to a COM component. SOLVED

We resolved the problem by properly installing the COM Server References. See our other post here:

viewtopic.php?f=66&t=30780&p=123631#p123631
by Shaun Luttin
Mon Apr 23, 2018 11:31 pm
Forum: PDF-XChange Editor SDK
Topic: Move PDF-XChange assemblies in to a different directory SOLVED
Replies: 3
Views: 1957

Re: Move PDF-XChange assemblies in to a different directory SOLVED

The problem was that we had not set up the COM references properly. The solution was to take the following steps (which are more thorough than necessary in order really to be sure that they work.) 1. Install the PDF-XChange Editor SDK from https://www.pdf-xchange.com/product/pdf-xchange-editor-sdk/d...
by Shaun Luttin
Tue Apr 17, 2018 5:23 pm
Forum: PDF-XChange Editor SDK
Topic: Error HRESULT E_FAIL has been returned from a call to a COM component. SOLVED
Replies: 3
Views: 1671

Error HRESULT E_FAIL has been returned from a call to a COM component. SOLVED

We are making the following method call:

Code: Select all

this.axPXV_Control1.OpenDocFromPath(importFile);
The importFile exists and is a PDF file. The error we receive is this:
COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Suggestions?
by Shaun Luttin
Tue Apr 17, 2018 12:21 am
Forum: PDF-XChange Editor SDK
Topic: Move PDF-XChange assemblies in to a different directory SOLVED
Replies: 3
Views: 1957

Move PDF-XChange assemblies in to a different directory SOLVED

We would like to put the PDF-XChange assemblies in to a different directory. Here is some context for what we have tried. We installed the PDF-XChange Editor SDK (https://www.pdf-xchange.com/product/pdf-xchange-editor-sdk). We then added the AxPDFXEdit and PDFXEdit COMReferences to our project. <COM...