Search found 914 matches

by jeffp
Mon Jan 04, 2010 4:11 pm
Forum: PDF-XChange Viewer SDK
Topic: Calling ExportDocumnet in a Thread
Replies: 10
Views: 3075

Re: Calling ExportDocumnet in a Thread

I am using Delphi and would really appreciate some direction here. This is an important part of our applications. Background: We are embedding the ActiveX viewer inside our application and it works great. However, we have an additional "Work with Pages" view in our application in which we ...
by jeffp
Mon Jan 04, 2010 3:42 pm
Forum: PDF-XChange Viewer SDK
Topic: Calling ExportDocumnet in a Thread
Replies: 10
Views: 3075

Re: Calling ExportDocumnet in a Thread

Do you need a better explanation of my issue?
by jeffp
Thu Dec 31, 2009 8:18 pm
Forum: PDF-XChange Viewer SDK
Topic: Programmatically attaching files
Replies: 3
Views: 1263

Re: Programmatically attaching files

Did this make it into the Dec 30 release?
by jeffp
Wed Dec 30, 2009 5:52 pm
Forum: PDF-XChange Viewer SDK
Topic: Calling ExportDocumnet in a Thread
Replies: 10
Views: 3075

Calling ExportDocumnet in a Thread

In the ActiveX Viewer, I'm trying to call the procedure below which contains a call to SetProperty and ExportDocument. The procedure is fine if I run it in the main thread. However, I have a need to call the procedure in a separate thread. When called in a separate thread, it crashes on the first Se...
by jeffp
Thu Dec 24, 2009 6:59 pm
Forum: PDF-XChange Viewer SDK
Topic: Document Changed Prompt
Replies: 16
Views: 4341

Re: Document Changed Prompt

Great. I look forward to the new build.

Also,

1. Will there be an image for the "RotatePages" item as well. The one that brings up the dialog.

2. Have you ever considered adding a new built in Toolbar called "Rotate Pages" to go along with your "Rotate View"?
by jeffp
Thu Dec 24, 2009 4:23 pm
Forum: PDF-XChange Viewer SDK
Topic: Document Changed Prompt
Replies: 16
Views: 4341

Re: Document Changed Prompt

'RotateSelectedPages90' 'RotateSelectedPages180' 'RotateSelectedPages270' I saw these commands in the build I have, and I tried putting them on a custom toolbar, but here are the issues I found. 1. Since I didn't have thumbnails showing, these button were always disabled/dimmed out so I couldn't use...
by jeffp
Wed Dec 23, 2009 5:21 pm
Forum: PDF-XChange Viewer SDK
Topic: Document Changed Prompt
Replies: 16
Views: 4341

Re: Document Changed Prompt

Ok. I've looked further into this. I appears that the ActiveX viewer has a menu item to rotate the actual page, whereas the rotate buttons just rotate the view. Our users are going to expect that the rotate buttons will actually rotate to page. As such, is there a way to intercept the rotate button ...
by jeffp
Wed Dec 23, 2009 5:11 pm
Forum: PDF-XChange Viewer SDK
Topic: Document Changed Prompt
Replies: 16
Views: 4341

Re: Document Changed Prompt

Ok. I see. Your rotate buttons on the ActiveX toolbar do NOT trigger a change in the document but only change the viewing mode. This brings up a critical issue for me. Many of my users are viewing their scanned PDF documents in the ActiveX viewer so that they can correct incorrectly rotated page. As...
by jeffp
Tue Dec 22, 2009 10:09 pm
Forum: PDF-XChange Viewer SDK
Topic: Issue Obtaining Property Values in Code After UI interaction
Replies: 1
Views: 884

Issue Obtaining Property Values in Code After UI interaction

I've running into an issue with obtaining property values in code. The property value doesn't seem to return the correct result after a user interaction with the toolbar. For example, before opening a document I do the following: SetProperty('PageDisplay.DefaultZoom', 'FitWidth', 0); The document op...
by jeffp
Tue Dec 22, 2009 7:21 pm
Forum: PDF-XChange Viewer SDK
Topic: Document Changed Prompt
Replies: 16
Views: 4341

Document Changed Prompt

I am opening and closing PDF documents in the ActiveX viewer via code. However, I was expecting to receive a default prompt when closing a changed document just like I do if I run the Viewer stand alone. For example, here's what I'm doing. 1. OpenDocument via code 2. User then clicks the Rotate butt...
by jeffp
Tue Dec 15, 2009 4:05 pm
Forum: PDF-XChange Viewer SDK
Topic: Register/Unregister ActiveX Viewer
Replies: 1
Views: 871

Register/Unregister ActiveX Viewer

You mention in your help manual that to register the ActiveX viewer we need to follow these two steps: · Run PDFXCview.exe with the “/RegServer” parameter. · Run regsvr32.exe with the "PDFXCviewAx.dll" parameter. Questions: 1. Do the steps need to occur in that order or can they be reverse...
by jeffp
Tue Dec 01, 2009 6:29 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Attachments
Replies: 5
Views: 2289

Re: Attachments

Ok. Good to know that it's coming. Any idea when the new version will be out?
by jeffp
Tue Dec 01, 2009 1:53 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Attachments
Replies: 5
Views: 2289

Re: Attachments

I need to be able to do this through code, that is through the ActiveX SDK.
by jeffp
Mon Nov 30, 2009 7:12 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Attachments
Replies: 5
Views: 2289

Attachments

I need the ability to (1) attach an xml file to a PDF document and (2) retrieve an attached xml file already attached to a PDF document.

Can this be done in either the SDK DLLs or the ActiveX viewer?
by jeffp
Thu Nov 19, 2009 5:00 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXP_TextElement
Replies: 1
Views: 1199

PXP_TextElement

Does PXP_TextElement store any information on where the carriage returns (#13) are on the page or if a carriage return follows the last character in the text element.

When I piece that text together I'd like to know if the next line is in the same paragraph or starts a new one.

Thanks.
by jeffp
Thu Nov 19, 2009 5:19 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

Re: PXCp_ET_AnalyzePageContent Issue

No worries. It's only a slight issue on big documents.

Your libraries are fabulous, so don't take anything I say as complaining, just exploring possibilities.
by jeffp
Thu Nov 19, 2009 4:17 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

Re: PXCp_ET_AnalyzePageContent Issue

Thanks John. Right now the only call I have to make in the Viewer DLL is PXCV_DrawPageToDC in order to get an image of the page for OCR purposes. I prefer this over image extraction since often the page contains multiple images that have to be put back together. For everything else I use the pxclib4...
by jeffp
Wed Nov 18, 2009 7:07 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

Re: PXCp_ET_AnalyzePageContent Issue

Thanks. By the way, there has been chat on the forum about putting all the SDK DLL into one at some point (ie., Viewer, Lib, Lib Pro). Do you know if a decision to move in that direction has been made. At times, I am forced to open a file in one SDK and do some items, only to have to close it and re...
by jeffp
Wed Nov 18, 2009 5:43 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

Re: PXCp_ET_AnalyzePageContent Issue

Thanks.

Also, is there a URL that details all the changes and fixes made to the current release.
by jeffp
Wed Nov 18, 2009 3:00 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

Re: PXCp_ET_AnalyzePageContent Issue

Thanks for the tips. I'll redo my code.

When do you expect to release the next update with this fix?
by jeffp
Wed Nov 18, 2009 6:46 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Removing Text Elements
Replies: 5
Views: 2947

Re: Removing Text Elements

I'm afraid this may be too low level for me. I got as far as the code below. What will it take to have you include a new Text Extraction function that would delete a text element by index. Something like this: HRESULT PXCp_ET_DeleteElement(PDFDocument pDocument, DWORD index) Also, is there a way to ...
by jeffp
Tue Nov 17, 2009 9:16 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

Re: PXCp_ET_AnalyzePageContent Issue

I ran this on some other PDF docs and it doesn't happen on all of them. Here's one where the AV occurs as described in my post.
by jeffp
Tue Nov 17, 2009 8:09 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_ET_AnalyzePageContent Issue
Replies: 12
Views: 8366

PXCp_ET_AnalyzePageContent Issue

I have written a function to see if there is any text in a PDF document page. The code is below. However, when I call this function a second time I get an AV on the line that calls PXCp_ET_AnalyzePageContent. Again, the first time I call the function it's fine. Is there something I'm not cleaning up...
by jeffp
Sun Nov 15, 2009 12:48 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXC_SetCompression and PXC_AddImageFromHBITMAP
Replies: 5
Views: 2084

Re: PXC_SetCompression and PXC_AddImageFromHBITMAP

Ok. That make sense.

Also, what are "Indexed" images? and what compression do you believe is the best default for Color/Grayscale images? Does the "Auto" setting do a good job?
by jeffp
Sat Nov 14, 2009 12:21 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXC_SetCompression and PXC_AddImageFromHBITMAP
Replies: 5
Views: 2084

PXC_SetCompression and PXC_AddImageFromHBITMAP

I'm creating a PDF document using the Dibs coming in from a scanner. Since I use Delphi, I'm converting the DIBs to a TBitmap.Handle to pass to your PXC_AddImageFromHBITMAP function. I'm having an issue with file sizes. The scanner is set to B&W with a DPI of 300. If I scan to TIF, the TIF file ...
by jeffp
Fri Nov 13, 2009 4:38 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Removing Text Elements
Replies: 5
Views: 2947

Re: Removing Text Elements

I'd be in favor of your adding Text Element removal in a later version!

As to the workarounds, I'm somewhat familiar with your low level functions. Any way you can give me a simple code snippet on what functions to use for #2 to get me started.

Thanks.
by jeffp
Fri Nov 13, 2009 4:09 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCV_DrawPageToDIBSection In Delphi
Replies: 1
Views: 1192

PXCV_DrawPageToDIBSection In Delphi

Do you have an easy example of how to use PXCV_DrawPageToDIBSection with a Delphi TBitmap. I can't seem to get all the parameters of PXCV_DrawPageToDIBSection setup correctly to pass the result to a TBitmap.

Thanks.
by jeffp
Thu Nov 12, 2009 8:09 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Removing Text Elements
Replies: 5
Views: 2947

Removing Text Elements

I'm looking through your Text Extraction functions to see if I can remove a Text Element. I need the ability to remove or delete a text element from a PDF document. Is this possible? Here's my situation: I'm creating a PDF document using OCR Text. I place the OCR text onto a page using PXC_TextOutA....
by jeffp
Sat Nov 07, 2009 5:05 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: pxvrpf_UseVectorRenderer Flag Puts Demo Watermark on Page
Replies: 6
Views: 2238

Re: pxvrpf_UseVectorRenderer Flag Puts Demo Watermark on Page

Will check with sales. My understanding was the my SDK purchased included access to the Viewer DLL as well.
by jeffp
Thu Nov 05, 2009 1:51 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Loading Part of a Document?
Replies: 5
Views: 1838

Re: Loading Part of a Document?

Thanks for the detailed explanation. It helps me understand what's going on better.
by jeffp
Thu Nov 05, 2009 4:55 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Loading Part of a Document?
Replies: 5
Views: 1838

Re: Loading Part of a Document?

Can I request the same to be included in the ActiveX Viewer as well. That way, we can use the ActiveX viewer to quickly preview the first page of a file, even though the file may be huge and would take forever to load fully.
by jeffp
Wed Nov 04, 2009 8:22 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: pxvrpf_UseVectorRenderer Flag Puts Demo Watermark on Page
Replies: 6
Views: 2238

pxvrpf_UseVectorRenderer Flag Puts Demo Watermark on Page

I'm using PXCV_DrawPageToDC and have found that if I use the pxvrpf_UseVectorRenderer Flag then your Demo watermark appears on the resulting DC. If I don't use that Flag, it's not there. I am passing my Registration and Dev Codes in PXCV_Init which is called before PXCV_DrawPageToDC. Again, without ...
by jeffp
Wed Nov 04, 2009 7:34 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Loading Part of a Document?
Replies: 5
Views: 1838

Loading Part of a Document?

I am creating thumbnails of document pages using PXCV_DrawPageToDC. In most cases I only need the thumbnail of the first or second page of the document. In cases where I'm dealing with a very large PDF document of 500 pages or more, it takes a bit longer to produce the thumbnail than I would like si...
by jeffp
Wed Oct 21, 2009 3:02 pm
Forum: PDF-XChange Viewer SDK
Topic: Scroll Issue When Opening a Document
Replies: 1
Views: 892

Scroll Issue When Opening a Document

There seems to be a small scroll issue in the page display when opening a multipage document. When I open a multipage document with DefaultZoom set to FitWidth, the first page is scrolled down just a small amount (around 10 pixels or so). If you click the up scroll button, you'll see that that the p...
by jeffp
Tue Oct 20, 2009 1:44 pm
Forum: PDF-XChange Viewer SDK
Topic: OnEvent Example in Delphi
Replies: 3
Views: 1276

Re: OnEvent Example in Delphi

As was indicated in my sample code, I like to create the control from code and then hook up the event from code also. As such, I see the issue now in what I was trying to do. There is a problem with the definition of the TCoPDFXCviewOnEvent type in your PDFXCviewAxLib_TLB file. It is missing a "...
by jeffp
Mon Oct 19, 2009 5:43 pm
Forum: PDF-XChange Viewer SDK
Topic: OnEvent Example in Delphi
Replies: 3
Views: 1276

OnEvent Example in Delphi

Is there anyway I could get a simple in example in Delphi on how to hook up Events in the ActiveX Viewer. Here's what I tried to do but I get an AV when the controls gets created. procedure TPDFViewerAX.DoOnEvent(ASender: TObject; Type_: Integer; const Name: WideString; DataIn: OleVariant; out DataO...
by jeffp
Thu Oct 15, 2009 4:00 pm
Forum: PDF-XChange Viewer SDK
Topic: Help Menu Items
Replies: 3
Views: 1260

Re: Help Menu Items

Perfect! I wasn't aware of this. Thanks much.
by jeffp
Thu Oct 15, 2009 12:11 am
Forum: PDF-XChange Viewer SDK
Topic: Help Menu Items
Replies: 3
Views: 1260

Help Menu Items

From reading other posts on similar topice, there does not appear to be a way to disable the Help menu and/or the Help menu items in the ActiveX SDK. If this in fact isn't currently available, I'd would suggest this as an item to consider going forward. One reason for this is that I assume you don't...
by jeffp
Tue Oct 13, 2009 10:14 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: RunJavaScript
Replies: 1
Views: 1097

RunJavaScript

The RunJavaScript function in the ActiveX SDK is very nice. Is there anything like this in the Tools SDK? If not, is it coming? Also, I've read posts in this forum about your goals of combining the SDKs. Is there a link to a roadmap page or something that will tell us what's coming and when. Great p...
by jeffp
Wed Oct 07, 2009 3:59 pm
Forum: PDF-XChange Viewer SDK
Topic: pxvrpf_UseVectorRenderer Flag in DrawPageToDC
Replies: 4
Views: 1988

Re: pxvrpf_UseVectorRenderer Flag in DrawPageToDC

I think I discovered the problem. In the code I just posted, my TBitmap has a default PixelFormat of pfDevice.

If I set the PixelFormat to

B.PixelFormat := pf24bit;

then the vector rendering works just fine.

So what are the pros and cons of using pxvrpf_UseVectorRendering?
by jeffp
Wed Oct 07, 2009 3:30 pm
Forum: PDF-XChange Viewer SDK
Topic: pxvrpf_UseVectorRenderer Flag in DrawPageToDC
Replies: 4
Views: 1988

Re: pxvrpf_UseVectorRenderer Flag in DrawPageToDC

Here it is. Just copy the procedure below in a Delphi Unit. I've also attached the PDF file that I start with. procedure VectorTest; var hr: HRESULT; hDoc, hImg, hPage: Cardinal; B: TBitmap; ADir, APDFFile, ABmpFile, ATIFFile, ANewPDFFile, ARegKey, ADevCode: String; AWidth, AHeight: Double; H, W: In...
by jeffp
Wed Oct 07, 2009 2:27 pm
Forum: PDF-XChange Viewer SDK
Topic: Setting Form Field Values in Code
Replies: 7
Views: 2498

Re: Setting Form Field Values in Code

The following WORKS and returns the value set in the "str" variable in the JS, which is odd I feel because I haven't directed it to return anything. function TPDFViewerAX.GetTextFields: String; var js, AStr: WideString; begin js := 'var str = "";' + #10 + 'for (var i = 0; i < thi...
by jeffp
Tue Oct 06, 2009 10:10 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: pxvrpf_RenderAsGray Flag missing in PXView_36.pas Unit
Replies: 1
Views: 1056

pxvrpf_RenderAsGray Flag missing in PXView_36.pas Unit

The flag pxvrpf_RenderAsGray used in PXCV_DrawPageToDC is missing in the PXView.36.pas wrapper (at least the one I got when I downloaded the SDK). I simply added the follow to my unit and it seems to work fine, but you may want to note this for future updates to the PXView_36.pas unit. pxvrpf_Render...
by jeffp
Tue Oct 06, 2009 10:06 pm
Forum: PDF-XChange Viewer SDK
Topic: pxvrpf_UseVectorRenderer Flag in DrawPageToDC
Replies: 4
Views: 1988

pxvrpf_UseVectorRenderer Flag in DrawPageToDC

Consider the relevant code below. I'm trying to create a TBitmap from DrawPageToDC and then create a new PDF Page using the TBitmap. However, when I use the pxvrpf_UseVectorRenderer Flag (I want to use it to speed up the rendering process), the resulting PDF page does not show the image. It's as if ...
by jeffp
Tue Oct 06, 2009 5:37 pm
Forum: PDF-XChange Viewer SDK
Topic: Setting Form Field Values in Code
Replies: 7
Views: 2498

Re: Setting Form Field Values in Code

Perfect. Thanks for the examples.

I also notice that the Result parameter in RunJavaScript returns the last value set in the script to any any variable. I thought I would have had to use the return statement. However, I found that using the JS return statement won't work. It gives an AV.
by jeffp
Tue Oct 06, 2009 5:33 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: ExportDocument
Replies: 13
Views: 3973

Re: ExportDocument

The pascal files were not in that directory, so thanks for your attachment. So there is not real difference in the quality of the bitmap I get from PXCV_DrawePageToDC instead of PXCV_DrawPageToDIBSection? The reason I ask is because I'll be converting this bitmap to a TIFF in order to feed into my O...
by jeffp
Tue Oct 06, 2009 4:36 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: ExportDocument
Replies: 13
Views: 3973

Re: ExportDocument

I can't find the img_c.pas in the SDK I've download. Can you send it to me?

So are you saying that I can use PXCV_DrawePageToDC instead of PXCV_DrawPageToDIBSection? What's the difference and is one better than the other?

Thanks again.
by jeffp
Tue Oct 06, 2009 3:51 pm
Forum: PDF-XChange Viewer SDK
Topic: Setting Form Field Values in Code
Replies: 7
Views: 2498

Re: Setting Form Field Values in Code

Pefect.

Is there a js call to get an array of all the Fields on the page?
by jeffp
Tue Oct 06, 2009 2:52 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: ExportDocument
Replies: 13
Views: 3973

Re: ExportDocument

Just a couple of follow ups: 1. I see that all the image functions like IMG_PageSetFormatLongParameter you refer to are in the ixclib40.dll. However, I can't seem to find the Delphi unit that wraps these functions and in turn exposes them to me. Am I missing a unit here? 2. Do you have a small Delph...