Search found 851 matches

by jeffp
Fri Apr 14, 2017 4:05 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

You alluded to the masks in your last thread. Does that mean there is a way to analyze the Image Item's mask to determine if I have a transparency situation or not? AItem.Get_Image_Handle(AImageHandle); AItem.Get_Image_Object(AImage); AImage.Get_MaskHandle(AMaskHandle); Also, this seem to hold true,...
by jeffp
Fri Apr 14, 2017 2:17 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. I follow you. So at the core level by default the quivalent of options["UseReverseMatrix"].v = false; and options["ExtractVisually"].v = false are set. That's why the ixcPage.Format below shows RGB and not ARGB. AItem.Image_CreateIXCPage(False, 0, ixcPage); I guess what I'm wondering is if there...
by jeffp
Fri Apr 14, 2017 12:50 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

If I load the extracted PNG from your new code into a IIXC_Page the Format property does in fact show ARGB. Can you make is so the IIXC_Page created from (cored level) AItem.Image_CreateIXCPage(False, 0, ixcPage); Shows the same. Currenlty, it shows just RGB. This way I can know to skip these images...
by jeffp
Thu Apr 13, 2017 4:53 pm
Forum: PDF-XChange Editor SDK
Topic: List of Commands
Replies: 7
Views: 467

Re: List of Commands

Perfect. Thanks.
by jeffp
Thu Apr 13, 2017 3:39 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

How do I save it with transparency? Also, is it possible to save it out of your code as a TIF or something other than PNG? I ultimately need to get that embedded image saved as a TIF file without any distortions. Alternatively, can you give me a way to detect if the embedded image has a transparency...
by jeffp
Thu Apr 13, 2017 1:33 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Is PNG the only output option?

But even so, there is still something wrong with that second image even in PNG format. Take the PNG and load it into a IXC_Page and save it out as JPG or BMP and it will turn black.

Also, load the PNG in IrfanView and it will display as black.

--Jeff
by jeffp
Wed Apr 12, 2017 11:45 pm
Forum: PDF-XChange Editor SDK
Topic: List of Commands
Replies: 7
Views: 467

List of Commands

I'm looking to hide some of your menu items and I'm using the following

ACmd := INST_UIX.CmdManager.Cmd[INST_PXV.Str2ID(AName, False)];
ACmd.Hidden := AHidden;


I looked for a comprehensive list of all the cmd string values but couldn't find it. Could you point me there.
by jeffp
Wed Apr 12, 2017 11:41 pm
Forum: PDF-XChange Editor SDK
Topic: SetStdEncryption
Replies: 1
Views: 260

SetStdEncryption

I'm using the IPXC_Document.SetStdEncryption to remove a password from the PDF by opening the PDF with the password and then setting nPermission to 0. This works on most password protected PDFs, but a customer just sent me one where this call doesn't remove the password protection. What would be the...
by jeffp
Wed Apr 12, 2017 3:24 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. I've implemented your code. However, there must be an issue with the PDF sample file I sent over earlier on this thread because the second image contained on the page still comes out all distorted, even with this new code. Can you try running your code on the PDF sample I sent over and see what ...
by jeffp
Tue Apr 11, 2017 6:31 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Sounds good, but in looking again at the problem PDF file I sent over, it still may be an issue with the PDF. I opened that PDF and then printed it to PDF using your PDF Printer driver. Then I did my clean up routine on it and the images are fine, no distortions at.
by jeffp
Tue Apr 11, 2017 1:42 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Great. Can you provide me with a small code snippet to illustrate the new calls.

Again, I need to be able to get each image in a format I can work with like IIXC_Page, modify it, and then put it back.

Thanks again.
by jeffp
Tue Apr 11, 2017 12:57 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. I'll give the operations a try. When will the new dev build be ready that contains the new calls to do this?

In the meantime, I'll study and get setup what I can the IPXV_ContentItemEntry example you just posted.

--Jeff
by jeffp
Tue Apr 11, 2017 12:44 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I would really prefer to stay at the Core level on this one. My sample code in this post works in almost all cases. Could I please ask you to give me some more help by showing me how to manipulate the item's CTM and subsequent IIXC_Page so the my code will work in all cases. I've got a new edition o...
by jeffp
Mon Apr 10, 2017 2:59 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. But will the dev build allow me to grab the image from the content item at the Core level like I am doing now? Or will it be an operation at the Editor level? I need it at the core level since I'll be calling this only at the IPXC_Document level and in many cases I would not have initialized the...
by jeffp
Mon Apr 10, 2017 1:58 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. AItem.GetCTM(ctm) ctm produces this a=1003 b=0 c=0 d=610 e=0 f=0 Looks like it is just telling me the Width and Height in points of the item. How does the above tell me how to modify the IIXC_Page with it's values (translate, rotate, scale etc)? And which IIXC_Page calls would I use? Don't mean ...
by jeffp
Mon Apr 10, 2017 1:38 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. But I do want to better understand this so I'm going to take a stab at it. I'm transforming matrices in other places in my code.
by jeffp
Mon Apr 10, 2017 12:59 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I'll give this a try.

But you say your new export/rename operations here will do this for me?
by jeffp
Mon Apr 10, 2017 12:37 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I'd be happy to try out the export/replace operations in an early build. But in the meantime, I really need to learn how to correctly calculate the transformation matrix. Can you point me the right direction? What I don't understand is that all I'm doing is finding the Item and then calling AItem.Im...
by jeffp
Sat Apr 08, 2017 3:42 pm
Forum: PDF-XChange Editor SDK
Topic: Enable Drop SOLVED
Replies: 3
Views: 359

Re: Enable Drop SOLVED

Perfect. Thanks.
by jeffp
Fri Apr 07, 2017 8:40 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 4857

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I've got two follow ups on this code: [1] This code now allow me to grab an image out of the PDF page change it and then replace it. However, this is all being done at the Core level. I need to also run this code on a PDF that I have open in the Editor. In that case, I'm dealing with a IPXV_Document...
by jeffp
Tue Apr 04, 2017 9:38 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 940

Re: Small Toolbar Icons? SOLVED

When is .322 going to be out?
by jeffp
Tue Apr 04, 2017 4:10 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 940

Re: Small Toolbar Icons? SOLVED

Perfect. Thanks.

But shouldn't these enums be listed in the PDFXEdit_TLB.pas file? They are not.
by jeffp
Tue Apr 04, 2017 4:05 pm
Forum: PDF-XChange Editor SDK
Topic: Enable Drop SOLVED
Replies: 3
Views: 359

Enable Drop SOLVED

How do I enable the ability to drop a PDF file onto the editor and have it opened from the drop?
by jeffp
Tue Apr 04, 2017 1:07 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 940

Re: Small Toolbar Icons? SOLVED

Perfect. Thanks.

Looks like this will set it back

Code: Select all

uiInst.CmdManager.ExtraOpts |= 144; //Show titles
by jeffp
Mon Apr 03, 2017 1:24 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 940

Re: Small Toolbar Icons? SOLVED

Thanks.

I vote for adding this as an Editor preference too :-)
by jeffp
Mon Apr 03, 2017 12:48 pm
Forum: PDF-XChange Editor SDK
Topic: Saving using CustFileName
Replies: 5
Views: 607

Re: Saving using CustFileName

I need to be able to open a PDF in the Editor either via the UI or code, and then change a property so that the save button in the Editor will save it to a different location that I set. The reason for this is that I am running an outside OCR process here. So my steps are as follows. 1. I open a PDF...
by jeffp
Mon Apr 03, 2017 12:42 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 940

Re: Small Toolbar Icons? SOLVED

Perfect. That works.

But just out of curiosity what do

FInst.ActiveMainView.CmdPaneTop.Item[0]
FInst.ActiveMainView.CmdPaneTop.Item[2].

Refer to.

I don't think I would have known that

FInst.ActiveMainView.CmdPaneTop.Item[1]

was the main toolbar.
by jeffp
Sun Apr 02, 2017 11:06 pm
Forum: PDF-XChange Editor SDK
Topic: Small Toolbar Icons? SOLVED
Replies: 22
Views: 940

Re: Small Toolbar Icons? SOLVED

As to the small toolbar icon issue, would it be possible to add this as a User Preference in the Editor. This way, I wouldn't need to call it in code. I could just sent it and save it out to my default user preference file.

--Jeff
by jeffp
Sat Apr 01, 2017 9:06 pm
Forum: PDF-XChange Editor SDK
Topic: Saving using CustFileName
Replies: 5
Views: 607

Saving using CustFileName

If I open a file at location c:\test\file1.pdf The Doc.DocCore.SrcInfo.ActualFileName shows c:\test\file1.pdf Then if I change Doc.DocCore.SrcInfo.CustFileName to c:\test\file2.pdf that changes the Doc.DocCore.SrcInfo.CustFileName and Doc.DocCore.SrcInfo.ActualFileName to c:\test\file2.pdf. So far s...
by jeffp
Fri Mar 31, 2017 10:26 pm
Forum: PDF-XChange Editor SDK
Topic: Updating Issue
Replies: 9
Views: 482

Re: Updating Issue

I found my issue with some of the refresh. It had to do with setting the FControl.Inst. I had another global instance of this set by just using my core library which loads directly from the DLL, where the FControl loads from the active X. In my dev environment they could very well be pulling from di...
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: 351

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: 482

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: 482

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: 482

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: 482

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: 482

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: 940

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: 4857

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: 264

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: 4857

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: 4857

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: 4857

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: 940

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: 421

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: 421

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: 421

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: 4857

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: 297

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: 297

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: 940

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...