Search found 679 matches

by zarkogajic
Wed Sep 09, 2020 11:59 am
Forum: PDF-XChange Editor SDK
Topic: Code for: Optimize PDF - Make Compatible With SOLVED
Replies: 3
Views: 49

Re: Code for: Optimize PDF - Make Compatible With SOLVED

Aaaaand, yes it is "op.document.optimize" - so case closed.

p.s.
I love it when users post questions and provide answer at the same time :)
by zarkogajic
Wed Sep 09, 2020 11:25 am
Forum: PDF-XChange Editor SDK
Topic: Code for: Optimize PDF - Make Compatible With SOLVED
Replies: 3
Views: 49

Re: Code for: Optimize PDF - Make Compatible With SOLVED

Aha .. should be "op.document.optimize" - will try...

by zarkogajic
Wed Sep 09, 2020 9:35 am
Forum: PDF-XChange Editor SDK
Topic: Code for: Optimize PDF - Make Compatible With SOLVED
Replies: 3
Views: 49

Code for: Optimize PDF - Make Compatible With SOLVED

Hi Support,

image.png

How can I achieve the same from code - to save a document "compatible with" some PDF version?

-žarko
by zarkogajic
Tue Jul 21, 2020 9:37 am
Forum: PDF-XChange Editor SDK
Topic: Update UI after setting IUIX_Layout.NewContainerStyle (add/remove UIX_LayoutItemStyle_AddNewTabBtn) SOLVED
Replies: 8
Views: 302

Re: Update UI after setting IUIX_Layout.NewContainerStyle (add/remove UIX_LayoutItemStyle_AddNewTabBtn) SOLVED

Hi Alex, Does not seem to work. Do I need to call something else to refresh UI? Note: I need to set/remove "UIX_LayoutItemStyle_AddNewTabBtn", so I've tried: to SET View.DocViewsArea.Panes.Layout.Obj.SetStyle(UIX_LayoutItemStyle_AddNewTabBtn, UIX_LayoutItemStyle_AddNewTabBtn) to REMOVE View.DocViews...
by zarkogajic
Fri Jul 17, 2020 2:52 pm
Forum: PDF-XChange Editor SDK
Topic: Update UI after setting IUIX_Layout.NewContainerStyle (add/remove UIX_LayoutItemStyle_AddNewTabBtn) SOLVED
Replies: 8
Views: 302

Update UI after setting IUIX_Layout.NewContainerStyle (add/remove UIX_LayoutItemStyle_AddNewTabBtn) SOLVED

Hi Support, I need to, on the fly, show/hide the "add new tab" [+] button on IPXV_DocumentViewsArea. The code to add/remove the style (UIX_LayoutItemStyle_AddNewTabBtn) works, but the UI does not reflect the change. I've tried calling IUIX_Layout.Update - but no go. Here's the (kind of pseudo) code ...
by zarkogajic
Thu Jul 16, 2020 1:53 pm
Forum: PDF-XChange Editor SDK
Topic: Disable Command Tooltip when Command Disabled SOLVED
Replies: 3
Views: 219

Disable Command Tooltip when Command Disabled SOLVED

Hi Support, Is there a way to disable / not-show the commanditem's tooltip when the command item is disabled (UIX_CmdItemState_Disabled) ? Like in: image.png The cmd.open is disabled (UIX_CmdItemState_Disabled set in IUIX_CmdHandler.OnGetItemState) - and I would like the tooltip not to get displayed...
by zarkogajic
Wed Jul 15, 2020 10:09 am
Forum: PDF-XChange Editor SDK
Topic: XFA IsSigned? SOLVED
Replies: 6
Views: 485

Re: XFA IsSigned? SOLVED

HI Alex,

Ah, I've been using wrong search terms :)

Thanks!

by zarkogajic
Wed Jul 15, 2020 9:12 am
Forum: PDF-XChange Editor SDK
Topic: XFA IsSigned? SOLVED
Replies: 6
Views: 485

Re: XFA IsSigned? SOLVED

Ping...

by zarkogajic
Tue Jun 30, 2020 1:50 pm
Forum: PDF-XChange Editor SDK
Topic: XFA IsSigned? SOLVED
Replies: 6
Views: 485

Re: XFA IsSigned? SOLVED

Thanks Alex, I'll give it a shot.

Btw, how do I know if there's a signature on a non-XFA PDF?

-žarko
by zarkogajic
Tue Jun 23, 2020 10:35 am
Forum: PDF-XChange Editor SDK
Topic: XFA IsSigned? SOLVED
Replies: 6
Views: 485

XFA IsSigned? SOLVED

Hi Support,

Re: viewtopic.php?f=62&t=34599

How do I know if a document (XFA) is signed or not via SDK?

I see there's "FormSig_HasSignature" - but am not sure how to use it (and if this is to be used)....

-žarko
by zarkogajic
Thu Jun 18, 2020 3:28 pm
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Re: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

Hi Alex,

Yes, this seems to do it!

InstUI.CmdManager.UpdateCmdItems(UIX_CmdItemUpdate_State, 0);

Thanks. Case not only solved but closed :)

by zarkogajic
Thu Jun 18, 2020 8:01 am
Forum: PDF-XChange Editor
Topic: Existing digital signature not visible on a XFA form document SOLVED
Replies: 6
Views: 415

Existing digital signature not visible on a XFA form document SOLVED

Hi Support, From what I can figure out by searching the forum, digitally signing an XFA PDF document is not supported: https://forum.tracker-software.com/viewtopic.php?f=62&t=33399 I have an XFA document that is digitally signed and Adobe displays the signature. PDF-XChange Editor displays the field...
by zarkogajic
Thu Jun 18, 2020 7:49 am
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Re: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

HI Alex, I've tried both events with nParam1=nParam2=0 for CreateNewEvent. No changes in UI. I'm passing Inst for pFrom in FireEvent //kinda pseudo IEvent evt = Inst.EventServer.CreateNewEvent(e.cmdCustomization/e.customizeCmdLayout , 0, 0); Inst.EventServer.FireEvent(evt, Inst); Any other idea? -ž
by zarkogajic
Wed Jun 17, 2020 4:13 pm
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Re: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

Hi Alex,

Ok.

Is here an even I can fire so that update happens?

I do not like this iterating code over CommandPanes/CommandLines/CommandBars.

-žarko
by zarkogajic
Wed Jun 17, 2020 2:19 pm
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Re: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

Hi Alex,

But that's not what happens.

As described in the first post in this topic, when I do pxvControl.Doc.CoreDoc.SetRestrictedPermissions(0) - the UI sometimes updates, sometimes it does not. And there's no difference in what I do.

-žarko
by zarkogajic
Wed Jun 17, 2020 9:49 am
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Re: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

Hi Alex,

Thanks, as said works but not ideal.

Why the following does not do it - as from what I (think I) know about UpdateCmdItemsByTarget - this should do it:

InstUI.CmdManager.UpdateCmdItemsByTarget(UIX_CmdItemUpdate_State, Document Frame's MainView)

?

by zarkogajic
Wed Jun 17, 2020 9:45 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_PagesPreviewCtl event when current page changes ? SOLVED
Replies: 3
Views: 222

IPXV_PagesPreviewCtl event when current page changes ? SOLVED

Hi Support,

What would be the proper way to get notified when the current page changes in IPXV_PagesPreviewCtl?

At the moment I'm catching e_ScrollChanged in IUIX_ObjImpl.OnEvent for IPXV_PagesPreviewCtl.Obj.

Is this to be used or is there something better?

-žarko
by zarkogajic
Wed Jun 17, 2020 7:55 am
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Re: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

Hi Support,

I've managed to solve this by iterating over *all* IUIX_CmdPanes.IUIX_CmdLines.IUIX_CmdBars of IPXV_MainView and calling IUIX_CmdBar.UpdateItems(UIX_CmdItemUpdate_State, -1);

Not an ideal fix, but works. Still, the issue is there somewhere in your code...

by zarkogajic
Tue Jun 16, 2020 3:07 pm
Forum: PDF-XChange Editor SDK
Topic: Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED
Replies: 14
Views: 443

Altering CoreDoc.SetRestrictedPermissions (PXC_PermsFlags) - refresh command items sometimes fails SOLVED

Hi Support, I cannot reproduce this in EU Editor as there's some coding required. Can be reproduced in FullDemo. Here's what I have: I'm loading a document in pxvControl using IPXV_MainFrame.OpenDocFrom + specifying PermF_All - PermF_Copy for SecPermMask in pOpenParams. This all works fine and opens...
by zarkogajic
Wed Jun 10, 2020 8:31 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_SearchView.GetParams - what's inside? SOLVED
Replies: 13
Views: 823

Re: IPXV_SearchView.GetParams - what's inside? SOLVED

Hi Alex, If you are to reimplement this, please consider: Ideally I would like to be able to add multiple folders and/or files (not ipxc or ipxv documents, but an array of IAFS_Name, IAFS_File or IString) to the op.search input list. Also, I would want to be able to skip/ignore some of the added fil...
by zarkogajic
Fri Jun 05, 2020 11:43 am
Forum: PDF-XChange Editor SDK
Topic: searchView - "Clear Folder List" command - custom handle / or react on event SOLVED
Replies: 8
Views: 1100

Re: searchView - "Clear Folder List" command - custom handle / or react on event SOLVED

Solved this by posting (and handling) a custom WM_USER message to the PXVControl when clicking on that "Yes" (clear recent folders) button.

p.s.
I guess I could also do my custom IEvent and then Inst.EventServer.FireEvent ... but above works - so let's not complicate :)

by zarkogajic
Fri Jun 05, 2020 9:46 am
Forum: PDF-XChange Editor SDK
Topic: searchView - "Clear Folder List" command - custom handle / or react on event SOLVED
Replies: 8
Views: 1100

Re: searchView - "Clear Folder List" command - custom handle / or react on event SOLVED

Hi Support, Is there an event to catch when "RemoveRecentFolders" is (to be) executed in SearchView? Previous posts in this topic discuss how to catch the "Yes" or "No" buttons in that dialogs EndModal event: image.png So, I have my custom IUIX_EventMonitor for "std:MsgBox" and I can get into if the...
by zarkogajic
Thu Jun 04, 2020 1:24 pm
Forum: PDF-XChange Editor SDK
Topic: Adding/injecting IUIX_ObjImpl (Label) onto an IUIX_Dialog
Replies: 7
Views: 611

Re: Adding/injecting IUIX_ObjImpl (Label) onto an IUIX_Dialog

H Alex,

Tried with 0 and 1 and -1. Always the same.

I believe something special is going on behind the scenes as the Options button is always aligned to the right - but never goes over Start/Stop button.


-žarko
by zarkogajic
Thu Jun 04, 2020 1:08 pm
Forum: PDF-XChange Editor SDK
Topic: Adding/injecting IUIX_ObjImpl (Label) onto an IUIX_Dialog
Replies: 7
Views: 611

Re: Adding/injecting IUIX_ObjImpl (Label) onto an IUIX_Dialog

Hi Alex,

This ends up with the same result:

image.png
image.png (12.24 KiB) Viewed 526 times

BUT also:

image1.png
image1.png (10.25 KiB) Viewed 526 times


Btw, having nCreateFlags = UIX_CreateObj_InsertBefore - what do you specify for "nInsertBefore" ?


-žarko
by zarkogajic
Thu Jun 04, 2020 8:13 am
Forum: PDF-XChange Editor SDK
Topic: View thumbnails when scrolling through pages - like with IPXV_PagesPreviewCtl SOLVED
Replies: 9
Views: 708

Re: View thumbnails when scrolling through pages - like with IPXV_PagesPreviewCtl SOLVED

Hi Alex,

What are other possible values ?

Also, can this setting be specified per IPXV_PagesView - and not global?

-žarko
by zarkogajic
Thu Jun 04, 2020 8:09 am
Forum: PDF-XChange Editor SDK
Topic: SrcInfo.CustDispTitle + Event (e.document.propsChanged, DocViewFlag_DisplayDocTitle) + IUIX_LayoutItem.Title[Prefix] SOLVED
Replies: 10
Views: 651

Re: SrcInfo.CustDispTitle + Event (e.document.propsChanged, DocViewFlag_DisplayDocTitle) + IUIX_LayoutItem.Title[Prefix] SOLVED

Hi Alex. This can be tested in Full Demo (having document's tab displayed and having a document loaded): pdfCtl.Doc.CoreDoc.SrcInfo.CustDispTitle = "my custom title"; //need to call this so that tab is updated, if not no change in tab's title PDFXEdit.IEvent evt = pdfCtl.Doc.EventServer.CreateNewEve...
by zarkogajic
Wed Jun 03, 2020 1:09 pm
Forum: PDF-XChange Editor SDK
Topic: SrcInfo.CustDispTitle + Event (e.document.propsChanged, DocViewFlag_DisplayDocTitle) + IUIX_LayoutItem.Title[Prefix] SOLVED
Replies: 10
Views: 651

Re: SrcInfo.CustDispTitle + Event (e.document.propsChanged, DocViewFlag_DisplayDocTitle) + IUIX_LayoutItem.Title[Prefix] SOLVED

Hi Alex,

I've tried catching e_app_prefsChanged in PXVControl's OnEvent (event is registered for listening) - but it seems never to happen...

Btw, why would it be e_app_prefsChanged when changing document's CustDispTitle - as this is per document / not per app/instance.

-žarko
by zarkogajic
Wed Jun 03, 2020 12:52 pm
Forum: PDF-XChange Editor SDK
Topic: Adding/injecting IUIX_ObjImpl (Label) onto an IUIX_Dialog
Replies: 7
Views: 611

Re: Adding/injecting IUIX_ObjImpl (Label) onto an IUIX_Dialog

Hi Alex, 1. Get IPXV_SearchView from MainFrame.View.Panes 2. Get IUIX_Dialog from it 3. Get "btn.startStop" IUIX_Button on it 4. IUIX_Inst.CreateLabel having IUIX_Dialog [2] as parent 5. Push custom IUIX_ObjImpl for the "btn.startStop" button 6. In button's e_Render read its Rect 6.1. "Move" rect to...
by zarkogajic
Wed Jun 03, 2020 10:45 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_SearchView.GetParams - what's inside? SOLVED
Replies: 13
Views: 823

Re: IPXV_SearchView.GetParams - what's inside? SOLVED

HI Alex,

Yes, an array of IPXC_Document does. But only the fist IAFS_Name.

by zarkogajic
Tue Jun 02, 2020 12:37 pm
Forum: PDF-XChange Editor SDK
Topic: View thumbnails when scrolling through pages - like with IPXV_PagesPreviewCtl SOLVED
Replies: 9
Views: 708

View thumbnails when scrolling through pages - like with IPXV_PagesPreviewCtl SOLVED

Hi Support,

When using the vertical scroll bar to scroll through pages in IPXV_PagesPreviewCtl - page thumbnails gets displayed.

image.png
image.png (37.93 KiB) Viewed 708 times

Is there some setting to achieve the same in the IPXV_PagesView (that is within IPXV_Control) ?


-žarko
by zarkogajic
Tue Jun 02, 2020 10:53 am
Forum: PDF-XChange Editor SDK
Topic: Extract link annotation text, change text color
Replies: 22
Views: 1946

Re: Extract link annotation text, change text color

Hi Support, I'm back to this "problem" I need to solve: change the text color of some selected text, more specifically change the text color of the text "under" a specific PXC_Rect (link annotation rectangle). As discussed this would involve "breaking" of content items (IPXC_ContentItem / PXC_CIType...
by zarkogajic
Mon Jun 01, 2020 8:21 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_SearchView.GetParams - what's inside? SOLVED
Replies: 13
Views: 823

Re: IPXV_SearchView.GetParams - what's inside? SOLVED

Hi Alex,

I've tried adding two afsName files into Input - only the first one is searched.

Also , I've tried adding two folders - only the first one added is searched upon.

-žarko
by zarkogajic
Mon Jun 01, 2020 8:15 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_SearchCallback - OnStartPtr / OnStopPtr
Replies: 7
Views: 531

Re: IPXV_SearchCallback - OnStartPtr / OnStopPtr

Hi Alex,

Thanks.

When searching in folder it would be ideal to get notified even before a subfolder is about to be processed or even better per file - so I could say "skip".


by zarkogajic
Thu May 28, 2020 3:54 pm
Forum: PDF-XChange Editor SDK
Topic: IPXV_SearchCallback - OnStartPtr / OnStopPtr
Replies: 7
Views: 531

Re: IPXV_SearchCallback - OnStartPtr / OnStopPtr

Hi Alex,

Does that mean that for each "entity" first the OnStartPtr is called, then a series of OnNewEntry for that entity, and finally OnStopPtr ?

Is there a way to skip/stop OnNewEntry being called for a specific IPXV_SearchPtr in OnStartPtr by returning some hresult?

-žarko