Search found 914 matches

by jeffp
Fri May 19, 2017 3:42 pm
Forum: PDF-XChange Editor SDK
Topic: IIXC_Image.Load
Replies: 5
Views: 1386

Re: IIXC_Image.Load

Is this something you can add to a future build?

--Jeff
by jeffp
Fri May 19, 2017 2:16 pm
Forum: PDF-XChange Editor SDK
Topic: IIXC_Image.Load
Replies: 5
Views: 1386

Re: IIXC_Image.Load

Ok. Do this. Grab the file I just attached to this message and place it in a folder in Windows Explorer (running Windows 10). Set the View to Large Icons so you see the thumbnail of the image. You'll note that the W x H is 3096 x 4128, Now run the code below and you'll see that it switches the W and...
by jeffp
Thu May 18, 2017 11:15 pm
Forum: PDF-XChange Editor SDK
Topic: Combine Issu
Replies: 3
Views: 1045

Re: Combine Issu

Sorry wrong thread. Should be Editor SDK.
by jeffp
Thu May 18, 2017 8:46 pm
Forum: PDF-XChange Editor SDK
Topic: IIXC_Image.Load
Replies: 5
Views: 1386

IIXC_Image.Load

I'm loading a jpg image using IIXC_Image.Load. The issue is that it seems to rotate the image from the way it appears in the Windows thumbnail or Windows Photo viewer. I'm I correct in seeing this? It looks like there is some attempt to rotate it correctly when it loads. Is there a way to control or...
by jeffp
Thu May 18, 2017 4:49 pm
Forum: PDF-XChange Editor SDK
Topic: Combine Issu
Replies: 3
Views: 1045

Combine Issu

I have a user who has various PDF files that have been digitally signed, but wants to combine other PDFs into this document. I told her that it defeats the purpose of the digital signature to allow this and that's why our code can't do it (by default). So now she is asking if there is any way to bre...
by jeffp
Wed May 17, 2017 2:21 pm
Forum: PDF-XChange Editor SDK
Topic: InsertPages Issue
Replies: 5
Views: 1368

Re: InsertPages Issue

Thanks was it. Awesome.

Thanks so much for finding that.

--Jeff
by jeffp
Wed May 17, 2017 12:47 pm
Forum: PDF-XChange Editor SDK
Topic: InsertPages Issue
Replies: 5
Views: 1368

Re: InsertPages Issue

Please re-read my initial post. That is not the case I described. I'm dealing with two opened documents inside the PDF Editor. Use ASrcDoc and set ASrcFileName to ''; That is, set ASrc to DocA and ASrcDoc to DocB, two document already opened in the PDF Editor. The code works fine with ASrcDoc set to...
by jeffp
Tue May 16, 2017 3:03 pm
Forum: PDF-XChange Editor SDK
Topic: InsertPages Issue
Replies: 5
Views: 1368

InsertPages Issue

I'm experiencing an issue with op.document.insertPages. It is performing one way in code, but correctly if I use your Document>>Insert Pages>>Insert Pages command. Here's how to reproduce it: I have to document DocA.pdf and DocB.pdf, where DocA has one page and DocB has two pages. - Open both docume...
by jeffp
Mon May 08, 2017 2:32 pm
Forum: PDF-XChange Editor SDK
Topic: Customize Toolbars
Replies: 4
Views: 1088

Re: Customize Toolbars

I didn't think I gave him the dev build but maybe I did.

Is .322 coming out today or tomorrow?

If so, I'll just wait and give him that one.

--Jeff
by jeffp
Mon May 08, 2017 2:09 pm
Forum: PDF-XChange Editor SDK
Topic: Customize Toolbars
Replies: 4
Views: 1088

Customize Toolbars

I have one user that is running on VMWare Win7 pro and reports that he can't add a new custom toolbar in the Customize Toolbars window. The "New" button does not do anything when it is pushed. He sent me a screen shot and it looks different than mine. It has a row of toolbar button just ab...
by jeffp
Sun May 07, 2017 2:27 pm
Forum: PDF-XChange Editor SDK
Topic: Scanning
Replies: 1
Views: 753

Scanning

Are there any calls I can make to get access to your scanning functionality. In our old Pro DLL package you had a bunch of scanning calls that would work with TWAIN drivers. I see the Editor has scanning built in, but I'd like to access it in code even with the Editor is not visible. Thanks. --Jeff
by jeffp
Wed May 03, 2017 4:09 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13737

Re: How to Replace the image of a IPXC_ContentItem SOLVED

Ok. Now you really have me excited.

You say next week or so, do you have a more specific date than that?
by jeffp
Wed May 03, 2017 1:54 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13737

Re: How to Replace the image of a IPXC_ContentItem SOLVED

I look forward to trying it out.
by jeffp
Wed May 03, 2017 12:41 pm
Forum: PDF-XChange Editor SDK
Topic: How to Replace the image of a IPXC_ContentItem SOLVED
Replies: 63
Views: 13737

Re: How to Replace the image of a IPXC_ContentItem SOLVED

So how will that Edit image feature work? Will you press a button and then the image will be extracted and opened in MS Paint? Then how does it get inserted back into the PDF once the image editing is done?

--Jeff
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: 13737

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

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

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

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

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

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

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

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 w...
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: 13737

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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