Search found 857 matches

by jeffp
Wed May 03, 2017 3:14 am
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 5652

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I believe you mentioned above, or in one of my other threads, that the build was going to have a new Image Editor to edit an embedded image in the PDF.

Is this still the case? And when will build .322 be released? Is there a dev build with this there for me to test out?

Thanks.

--Jeff
by jeffp
Tue Apr 25, 2017 5:45 pm
Forum: PDF-XChange Editor SDK
Topic: ExecCmd
Replies: 3
Views: 391

Re: ExecCmd

Thanks.

This works:

Code: Select all

FControl.Inst.ExecUICmd(ACmd, nil);
And so does this.

Code: Select all

pOwner := FControl.Inst.ActiveMainView.MenuBar.Owner;
INST_UIX.CmdManager.ExecCmd(ACmd, pOwner);
by jeffp
Tue Apr 25, 2017 5:22 pm
Forum: PDF-XChange Editor SDK
Topic: ExecCmd
Replies: 3
Views: 391

ExecCmd

I know this should be really simple, but I can't get the code below to work. I'm just trying to execure one of the command via code but nothing happens when the code fires. Do I need an actual pOwner? If so, what do I set it to?

Code: Select all

pOwner := nil;
INST_UIX.CmdManager.ExecCmd('cmd.print', pOwner);
by jeffp
Mon Apr 24, 2017 9:26 pm
Forum: PDF-XChange Editor SDK
Topic: Watermarks when Saving Form field
Replies: 1
Views: 269

Watermarks when Saving Form field

I'm using build 6.0321.17893 and when I add a Form field to a PDF page and immediately save the file, tracker watermarks appear on the top corners of the page.

Please advise.

---

Just called into main office and it looks like it is a product key issue. Getting it resolved with Chris.

--Jeff
by jeffp
Wed Apr 19, 2017 1:16 pm
Forum: PDF-XChange Editor SDK
Topic: List of Commands
Replies: 7
Views: 611

Re: List of Commands

I see that in the full demo, but where do I get the proper Ids to make the calls. The neither of the calls in the code below work. The calls in the full demo reference an emun of values IDS. Also, can I hide a CommandBar right after initialization or does it have to be hidden after a document gets o...
by jeffp
Tue Apr 18, 2017 11:09 pm
Forum: PDF-XChange Editor SDK
Topic: List of Commands
Replies: 7
Views: 611

Re: List of Commands

I've found the list of commands in the FullDemo and can hide individual menu items just fine using the code below. However, I can't see to hide an entire toolbar. For example, how do I hide cmd.view.toolbar.contentEditing cmd.view.toolbar.form procedure TMyPDFControl.SetCommandState(AName: String; A...
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: 5652

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: Change in IPXV_Control SOLVED

Ok. Thanks.