Search found 914 matches

by jeffp
Fri Mar 31, 2017 6:28 pm
Forum: PDF-XChange Editor SDK
Topic: Old ViewerAx Settings and New Editor SDK
Replies: 2
Views: 871

Old ViewerAx Settings and New Editor SDK

Is the functionality of the Old ViewerAX below available in the new Editor SDK?

Code: Select all


FControl.SetDocumentProperty(ADocID, 'Temp', ADataIn, 0);

FControl.SetDocumentProperty(ADocID, 'SilentSaveTmpToDispFile', ADataIn, 0); 

FControl.SetDocumentProperty(ADocID, 'DispFileName', ADataIn, 0);

by jeffp
Fri Mar 31, 2017 4:20 pm
Forum: PDF-XChange Editor SDK
Topic: Updating Issue
Replies: 9
Views: 1875

Re: Updating Issue

You mentioned something about telling the Editor about changes made in the Core Doc.

Another example would be if I changed Doc.CoreDoc.SrcInfo.CustFileName how do I get the change to reflect itself in the Editor document tab?
by jeffp
Fri Mar 31, 2017 3:47 pm
Forum: PDF-XChange Editor SDK
Topic: Updating Issue
Replies: 9
Views: 1875

Re: Updating Issue

Code: Select all

InsertFile('D:\Test\Test.pdf', 'D:\Test\Source.pdf', 0, '');
D:\Test\Test.pdf is already open in the Editor. I just find it from the name.

Again, it insert fine. It just doesn't display. If I save the file after the insert, and then reopen the file then it displays fine.
by jeffp
Fri Mar 31, 2017 2:44 pm
Forum: PDF-XChange Editor SDK
Topic: Updating Issue
Replies: 9
Views: 1875

Re: Updating Issue

Ok. I tried using operations this time. But using the operation below still doesn't refresh Thumbnails and the Editor once the insert happens. Is this another Delphi refresh issue? function TMyPDFControl.InsertFile(AFileName, ASrcFileName: String; ABeforePage: Integer; ASrcPagesAsCommaText: String =...
by jeffp
Fri Mar 31, 2017 2:05 pm
Forum: PDF-XChange Editor SDK
Topic: Updating Issue
Replies: 9
Views: 1875

Re: Updating Issue

It has to be #2 since my changes in this context happen on an a document already loaded in the Editor. As such, how do I send the events you are talking about? Two simply examples would be adding a page and deleting a page. I also when ahead and wrote another insert page procedure this time using op...
by jeffp
Thu Mar 30, 2017 6:32 pm
Forum: PDF-XChange Editor SDK
Topic: Updating Issue
Replies: 9
Views: 1875

Updating Issue

I have written a utils library that does things to the Core Doc or IPXC_Document. Things like insert page, delete page, etc. However, when in the Editor or IPXV_Control I run some of these calls on the core doc or FControl.Frame.View.DocViewsArea.Doc.CoreDoc The view of the doc doesn't seem to updat...
by jeffp
Thu Mar 30, 2017 4:20 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 3731

Re: Small Toolbar Icons? SOLVED

So am I the only Delphi developer on this board that gives you guys grief? :-)

I at least try to post my code snippets in case there are others out there.

--Jeff
by jeffp
Thu Mar 30, 2017 4:18 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13729

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Perfect.That did it. Many thanks on this one. Here's the complete code: procedure RotatePDFImages(APage: IPXC_Page); var i, AIndex: Integer; AItemsCount, AHandle, W: Cardinal; AContent: IPXC_Content; AItems: IPXC_ContentItems; AItem: IPXC_ContentItem; AType: PXC_CIType; ixcPage: IIXC_Page; AImage: I...
by jeffp
Thu Mar 30, 2017 3:35 pm
Forum: PDF-XChange Editor SDK
Topic: Error in IPXV_Document.Save
Replies: 1
Views: 735

Error in IPXV_Document.Save

Don't know why but this is throwing and error in Delphi. Am I not setting something right? procedure TMyPDFControl.SaveDoc(AFileName: String); var destPath: IAFS_Name; begin destPath := INST_AFS.DefaultFileSys.StringToName(PChar(AFileName), 0, nil); FControl.Inst.ActiveDocView.Doc.Save(destPath, 0, ...
by jeffp
Thu Mar 30, 2017 2:01 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13729

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Here's my code on with your suggestions, but it's still not working. I must still be missing something. procedure RotatePDFImages(APage: IPXC_Page); var i, AIndex: Integer; AItemsCount, AHandle, W: Cardinal; AContent: IPXC_Content; AItems: IPXC_ContentItems; AItem: IPXC_ContentItem; AType: PXC_CITyp...
by jeffp
Thu Mar 30, 2017 12:41 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13729

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I'm not following how you want me to use IPXC_Document::AddImageFromIXCPage In my code sample, I can get the IIXC_Page from the Image Item and I can rotate it. Using IPXC_Document::AddImageFromIXCPage would get me a new IPXC_Image from the IIXC_Page, but then what? I'm not trying to add a new IPXC_I...
by jeffp
Wed Mar 29, 2017 4:44 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13729

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. I'm trying to follow your suggestion but I can't figure out how to set the image handle of the content item using the IIXC_Page I rotated. So, the following code seems to get and rotate the IIXC_Page from the content item. I just need some help is resetting the content item image. Also, do I nee...
by jeffp
Wed Mar 29, 2017 4:06 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 3731

Re: Small Toolbar Icons? SOLVED

Not luck. I've tried running the code when the form loads and it doesn't change anything. Not sure if there is something wrong with my code or not.

Any other thoughts?
by jeffp
Tue Mar 28, 2017 10:38 am
Forum: PDF-XChange Editor SDK
Topic: Change in IPXV_Control SOLVED
Replies: 5
Views: 1620

Re: Change in IPXV_Control SOLVED

Ok. Thanks.
by jeffp
Mon Mar 27, 2017 3:22 pm
Forum: PDF-XChange Editor SDK
Topic: Change in IPXV_Control SOLVED
Replies: 5
Views: 1620

Re: Change in IPXV_Control SOLVED

Not quite. I need an event or property that indicates that the user changed something that would affect what gets saved out as user settings. For example, once settings are loaded, I need to know whether I need to save them out again once I close. For example, if the user changes a toolbar, a layout...
by jeffp
Sun Mar 26, 2017 1:27 am
Forum: PDF-XChange Editor SDK
Topic: Change in IPXV_Control SOLVED
Replies: 5
Views: 1620

Change in IPXV_Control SOLVED

Is there a property in the TPXV_Control that indicates a user setting has changed, like modifying the toolbar or changing view options. I'm trying to be smart about saving the user settings only when I need to. I'm using the TPXV_Control as both an editor and file preview in the same app, so I need ...
by jeffp
Fri Mar 24, 2017 6:52 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13729

How to Replace the image of a IPXC_ContentItem SOLVED

I'm writing a clean up routine that will pull out the images inside a PDF page, clean them up with an outside image clean up routine (things like despeckle, deskew, etc.), and then replace the original image with the cleaned up image. In looking at IPXC_ContentItem, it can get the images by calling:...
by jeffp
Fri Mar 24, 2017 5:02 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_ContentItem and AnisChars
Replies: 3
Views: 906

Re: IPXC_ContentItem and AnisChars

Ok. I better not user 0 then. What's the Word value of an empty space?

Would this be right?

ord(#32)
by jeffp
Fri Mar 24, 2017 3:07 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_ContentItem and AnisChars
Replies: 3
Views: 906

IPXC_ContentItem and AnisChars

I've run into an old issue I posted a while back. That is, when getting the text from a IPXC_ContentItem it appears I can only do it if the text is AnsiChars. My note says that you were going to work on a fix for this. I'm in need of this now. I'm extracting the text from a PDF page by looping throu...
by jeffp
Wed Mar 22, 2017 5:08 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 3731

Re: Small Toolbar Icons? SOLVED

Here's what I have in Delphi but it doesn't seem to hide the captions on the buttons. procedure TMyPDFControl.EnableSmallIcon(AEnable: Boolean); var cmds: IUIX_CmdCollection; cmd: IUIX_Cmd; i, cnt: Integer; begin cmds := INST_UIX.CmdManager.Cmds; cnt := cmds.Count; for i := 0 to cnt - 1 do begin cmd...
by jeffp
Wed Mar 22, 2017 1:59 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 3731

Re: Small Toolbar Icons? SOLVED

In the old ViewerX sdk all the toolbar icons were smaller and had not text. I was just wondering if there was a way to force the Editor SDK toolbar icons to say 24x24 and not show the text below. The default seems to be 32x32 with a text caption below. Some of my users like to conserve vertical real...
by jeffp
Tue Mar 21, 2017 10:49 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 3731

Small Toolbar Icons? SOLVED

Is there a way to force the toolbar icons to display with small icons, instead of the large icons with text?

--Jeff
by jeffp
Fri Mar 17, 2017 12:15 pm
Forum: PDF-XChange Editor SDK
Topic: Selected Pages
Replies: 7
Views: 1820

Re: Selected Pages

Is there another way to get the CurrentPage?
by jeffp
Thu Mar 16, 2017 4:38 pm
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Re: Settings

That doesn't work. I've added some code to save the ZoomMode before I close the document and then reset the ZoomMode after I open the new document. As I said before, you had a setting in the old viewer SDK that did this automatically. Also, what is the difference between FControl.Doc.ActiveView.Page...
by jeffp
Thu Mar 16, 2017 4:34 pm
Forum: PDF-XChange Editor SDK
Topic: Selected Pages
Replies: 7
Views: 1820

Re: Selected Pages

The kind that crashes my program. Here are some lines from madExcept 005afe7a +07a FileCenter.exe System.Win.ComObj DispatchInvokeError 007a58d5 +061 FileCenter.exe Vcl.OleCtrls TOleControl.GetProperty 007a54bd +005 FileCenter.exe Vcl.OleCtrls TOleControl.GetIntegerProp 0097138c +044 FileCenter.exe ...
by jeffp
Thu Mar 16, 2017 3:38 pm
Forum: PDF-XChange Editor SDK
Topic: Rotation does not Modify SOLVED
Replies: 5
Views: 1671

Re: Rotation does not Modify SOLVED

Perfect. Thanks.
by jeffp
Thu Mar 16, 2017 2:59 pm
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Re: Settings

CABNodeExplorer is great and very useful. However, I can't find the equivalent of this one: FOldViewerControl.SetProperty('Documents.RestoreLastPageDisp', 1, 0); These two are close, but not the same thing. FControl.Inst.Settings['PagesView.RestoreLastView'].v := True; // true by default FControl.In...
by jeffp
Thu Mar 16, 2017 2:22 pm
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Re: Settings

Until then, can you give me a quick translation of these old ones. FControl.SetProperty('PageDisplay.DefaultZoom', 'FitWidth', 0); FControl.SetProperty('PageDisplay.DefaultLayout', 'Single', 0); FControl.SetProperty('PageDisplay.DefaultView', 'ThumbnailsAndPage', 0); FControl.SetProperty('Documents....
by jeffp
Thu Mar 16, 2017 2:22 pm
Forum: PDF-XChange Editor SDK
Topic: Rotation does not Modify SOLVED
Replies: 5
Views: 1671

Re: Rotation does not Modify SOLVED

I am embedding the TPXV_Control inside my Delphi app. As such, I then display the toolbars and open a PDF. I then press the Rotate CW button to rotate the PDF page. At that point, IPXV_Document.Modified is still false and PXC_Document.SrcInfo.IsDirty is still false.

--Jeff
by jeffp
Thu Mar 16, 2017 2:19 pm
Forum: PDF-XChange Editor SDK
Topic: Selected Pages
Replies: 7
Views: 1820

Re: Selected Pages

Your selected pages code works great.

However, I'm getting an exception when I call

TPXV_Control.CurrentPage

Is there another way to get the current page of the active document?

And yes, I want to change the Theme programatically.

Thanks.

--Jeff
by jeffp
Thu Mar 16, 2017 4:21 am
Forum: PDF-XChange Editor SDK
Topic: Rotation does not Modify SOLVED
Replies: 5
Views: 1671

Rotation does not Modify SOLVED

Is there a reason why the document is not marked Modified after pressing the Rotate CW or Rotate CCW buttons?

Is there a way to make that happen.

If I place a comment on a Page, then the Modified property gets set to True, but now with Rotation.

Why? Is it possible to do that?

--Jeff
by jeffp
Thu Mar 16, 2017 4:12 am
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Re: Settings

Looking for some more settings. The following work: FControl.Inst.Settings['Docs.SingleWnd'].v := False; FControl.Inst.Settings['Docs.HideSingleTab'].v := False; But now I need these translated into the new SDK like the above: (from old Viewer SDK) FControl.SetProperty('PageDisplay.DefaultZoom', 'Fi...
by jeffp
Wed Mar 15, 2017 11:00 pm
Forum: PDF-XChange Editor SDK
Topic: Freezing issue with TPDF_Control
Replies: 1
Views: 742

Freezing issue with TPDF_Control

I have an issue with the TPDF_Control freezing when embedded in my application. However, when I create a simple demo project to show this issue to you, it doesn't freeze. I'm using the exact same code in both. So here's what I'm doing. The control gets embedded just fine in my app and the demo app. ...
by jeffp
Wed Mar 15, 2017 7:15 pm
Forum: PDF-XChange Editor SDK
Topic: Selected Pages
Replies: 7
Views: 1820

Selected Pages

[1] How can I get all the selected pages from TPXV_Control? I can get the current page with TPXV_Control.CurrentPage But I don't see where I can get all the selected pages. [2] Also, in the old viewer SDK there was a way to change the color of the app workspace. Where is that found in the new SDK? T...
by jeffp
Tue Mar 07, 2017 4:12 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_ContentItem.Get_BBox
Replies: 1
Views: 862

IPXC_ContentItem.Get_BBox

I'm using IPXC_ContentItem to get the BBox of a word in the PDF.

However, it seems that the BBox PXC_Rect doesn't always give coordinates relative to the entire page.

How can I ensure that the BBox PXC_Rect give me coordinates based on the entire size of the PDF page?

--Jeff
by jeffp
Wed Feb 22, 2017 6:20 pm
Forum: PDF-XChange Editor SDK
Topic: OpenDocumentFromFile nFlags SOLVED
Replies: 9
Views: 2475

Re: OpenDocumentFromFile nFlags SOLVED

Got it. Thanks.
by jeffp
Wed Feb 22, 2017 3:30 pm
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Re: Settings

I can open the C# source files and view them, so if the settings info will be there in the code, that should be fine. I just can't compile them.

--Jeff
by jeffp
Wed Feb 22, 2017 3:29 pm
Forum: PDF-XChange Editor SDK
Topic: OpenDocumentFromFile nFlags SOLVED
Replies: 9
Views: 2475

Re: OpenDocumentFromFile nFlags SOLVED

FControl.Frame.View.DocViewsArea.ActiveDocView.Close(nFlags); Seems to work for my purposes, but one interesting thing is that if I call ADoc.Close(0) where the ADoc is the CoreDoc of the document in the ActiveDocView above, it does not get closed from the UI. That is, it stays in the view. --Jeff
by jeffp
Wed Feb 22, 2017 1:56 pm
Forum: PDF-XChange Editor SDK
Topic: OpenDocumentFromFile nFlags SOLVED
Replies: 9
Views: 2475

Re: OpenDocumentFromFile nFlags SOLVED

Sorry, I missed that one. But just to confirm is this the best/only way to programatically close a document from the Control.

FControl.Frame.View.DocViewsArea.ActiveDocView.Close(nFlags);

--Jeff
by jeffp
Wed Feb 22, 2017 1:49 pm
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Re: Settings

I'm using Delphi, so will it be a compiled exe I can run so I can still run it and use it?
by jeffp
Tue Feb 21, 2017 6:25 pm
Forum: PDF-XChange Editor SDK
Topic: OpenDocumentFromFile nFlags SOLVED
Replies: 9
Views: 2475

Re: OpenDocumentFromFile nFlags SOLVED

Ok. What about this one in the Editor layer. I want to close a document opened in the Editor but skip any dialog that would appear if the document was modified. That is, skip the "Do you want to save changes dialog". Is there a value for nFlags in this case? Also, is this the right way to ...
by jeffp
Tue Feb 21, 2017 5:15 pm
Forum: PDF-XChange Editor SDK
Topic: Settings
Replies: 13
Views: 2317

Settings

Where I can find a description and comprehensive list of all the settings I can access like 'Docs.SingleWnd' and 'Docs.HideSingleTab' below.

FControl.Inst.Settings['Docs.SingleWnd'].v := False;
FControl.Inst.Settings['Docs.HideSingleTab'].v := False;

--Jeff
by jeffp
Mon Feb 20, 2017 10:01 pm
Forum: PDF-XChange Editor SDK
Topic: Events
Replies: 3
Views: 8198

Re: Events

Ok. I now see the pdfCtl.EnableEventListening. And I also found this page listing all the events. https://sdkhelp.pdf-xchange.com/view/PXV:PXV_Events In the past, you had an event that would tell me when the Documents.Count changed so I can know if a new document was opened. Do you have something si...
by jeffp
Mon Feb 20, 2017 8:53 pm
Forum: PDF-XChange Editor SDK
Topic: OpenDocumentFromFile nFlags SOLVED
Replies: 9
Views: 2475

OpenDocumentFromFile nFlags SOLVED

Can you tell me where to find the available nFlags for

IPXC_Inst.OpenDocumentFromFile()

I need to make sure there is NoProgross and NoUI popping up when the file is opened.

--Jeff
by jeffp
Mon Feb 20, 2017 5:52 pm
Forum: PDF-XChange Editor SDK
Topic: Multiple TPXV_Control Objects
Replies: 3
Views: 10708

Re: Multiple TPXV_Control Objects

Ok. That should work in the context of my Preview control since I will open PDF files into that control via my own code. However, the Editor control I use, the user will be opening files via your Open button on the Editor toolbar. In that case I don't have control over the open procedure. So in that...
by jeffp
Sat Feb 18, 2017 3:43 pm
Forum: PDF-XChange Editor SDK
Topic: Events
Replies: 3
Views: 8198

Events

In the old SDK there was and event TCoPDFXCview.OnEvent that I was able to implement to get event info passed to me when things changed in the editor. I'm looking to implement that now in the new SDK. I see that there is an event TPXV_Control.OnEvent but when I hook it up it doesn't seem to pass me ...
by jeffp
Sat Feb 18, 2017 7:19 am
Forum: PDF-XChange Editor SDK
Topic: Multiple TPXV_Control Objects
Replies: 3
Views: 10708

Multiple TPXV_Control Objects

I'm using two TPXV_Control objects in my application. One acts like an editor and can have multiple documents open (Docs.SingleWnd = true). The other acts like a preview window and can only have one document open (Docs.SingleWnd = false);. Each control has its own MainFrame and I keep a separate Use...
by jeffp
Sat Feb 18, 2017 7:01 am
Forum: PDF-XChange Editor SDK
Topic: Loading and Saving User Settings
Replies: 1
Views: 678

Loading and Saving User Settings

I am currently saving and loading the user setting to file like this: FControl.Inst.LoadUserSettings(FControl.Inst.CreateString(FSettingsFile), 0); FControl.Inst.SaveUserSettings(FControl.Inst.CreateString(FSettingsFile), 0); Is it possible to save and load to a memory stream or some string variable...
by jeffp
Thu Feb 16, 2017 1:47 pm
Forum: PDF-XChange Editor SDK
Topic: DrawToIXCPage with Rotated Page
Replies: 7
Views: 1482

Re: DrawToIXCPage with Rotated Page

Until I can better understand the matrix code, I will just call

APage.Set_Rotation(0);

before drawing the page. Then I'll rotate it back to the original angle after I draw the page.

I assume that this will be fine too.
by jeffp
Thu Feb 16, 2017 1:33 pm
Forum: PDF-XChange Editor SDK
Topic: IIXC_Page Darkness
Replies: 3
Views: 941

Re: IIXC_Page Darkness

Let me try again. The image will already be a B&W image so ColorCount will be 2.

I'm looking for the fraction of a B&W image that contains dark pixels.

--Jeff