Search found 18 matches

by JesseH
Tue Dec 20, 2016 2:18 pm
Forum: PDF-XChange Core API SDK
Topic: TextBlock - Rect vs RectF SOLVED
Replies: 9
Views: 2073

Re: TextBlock - Rect vs RectF SOLVED

Thanks. Both of the last posts helped immensely.
by JesseH
Wed Dec 14, 2016 2:35 pm
Forum: PDF-XChange Core API SDK
Topic: TextBlock - Rect vs RectF SOLVED
Replies: 9
Views: 2073

Re: TextBlock - Rect vs RectF SOLVED

Thanks, I suspected they were relative to different planes, but hadn't noticed the distinction on the wiki pages. One more thing, what about IPXC_TextBlockInfo.BBox? It appears to not be on plane with a lower-left origin as well. That's what initially set me on this tangent of double vs float. I was...
by JesseH
Tue Dec 13, 2016 4:06 pm
Forum: PDF-XChange Core API SDK
Topic: TextBlock - Rect vs RectF SOLVED
Replies: 9
Views: 2073

Re: TextBlock - Rect vs RectF SOLVED

But how are the values converted? Casting them to doubles is pointless when the numbers themselves aren't the same.
by JesseH
Tue Dec 13, 2016 4:04 pm
Forum: PDF-XChange Core API SDK
Topic: TextBlock - Rect vs RectF SOLVED
Replies: 9
Views: 2073

Re: TextBlock - Rect vs RectF SOLVED

As a followup, is the answer to the question above the same for determining the values of a PXC_PointF?
by JesseH
Tue Dec 13, 2016 3:52 pm
Forum: PDF-XChange Core API SDK
Topic: TextBlock - Rect vs RectF SOLVED
Replies: 9
Views: 2073

TextBlock - Rect vs RectF SOLVED

How can I translate a PXC_Rect to a PXC_RectF? So far I'm having a lot of success in identifying text locations via PXC_Rect, using x,y coords with an origin at the lower left corner and in units of pixels. However when I run an analysis on the characters in PageText, I get this output: (Note: each ...
by JesseH
Wed Nov 09, 2016 7:26 pm
Forum: PDF-XChange Core API SDK
Topic: ContentItem.Text_GetData[2|SA]()
Replies: 1
Views: 747

ContentItem.Text_GetData[2|SA]()

Hi, I'm trying to extract text from a content item using the Text_GetData methods. It seems to work with some text, but not so much with others. For instance, in the attached PDF there are two lines of text. When extracting the text using PageText, it reads like this: Footer around this locationThis...
by JesseH
Thu Sep 08, 2016 6:13 pm
Forum: PDF-XChange Core API SDK
Topic: MetaData question
Replies: 3
Views: 949

Re: MetaData question

I can't post my test documents as I grab them from our production environment. Long story short, the contents of the documents are protected by HIPPA. But, by the time I need the guid the documents have already been loaded and saved using CoreAPI with PDF spec 1.3 and the document write flag set to ...
by JesseH
Wed Sep 07, 2016 6:13 pm
Forum: PDF-XChange Core API SDK
Topic: MetaData question
Replies: 3
Views: 949

MetaData question

I'm trying to access the xmpmm:DocumentID property of a pdf, but GetProperty() keeps coming back empty for me.

Can you provide some example C# code for using IPXC_XMPMetadata::GetProperty?

Thanks.
by JesseH
Thu Aug 25, 2016 2:26 pm
Forum: PDF-XChange Core API SDK
Topic: Text_GetText() - Missing Method?
Replies: 7
Views: 1505

Re: Text_GetText() - Missing Method?

Ok. Thanks for looking into it.
by JesseH
Wed Aug 24, 2016 4:44 pm
Forum: PDF-XChange Core API SDK
Topic: Text_GetText() - Missing Method?
Replies: 7
Views: 1505

Re: Text_GetText() - Missing Method?

In the meantime, I've written a workaround that seems to work: static public string GetContentText(IPXC_ContentItem pSrcContent) { StringBuilder sRet = new StringBuilder(); ; Array oByteBuffer; pSrcContent.Text_GetDataSA(out oByteBuffer); var oByteList = oByteBuffer.OfType<byte>().ToList(); for (int...
by JesseH
Tue Aug 23, 2016 12:55 pm
Forum: PDF-XChange Core API SDK
Topic: Text_GetText() - Missing Method?
Replies: 7
Views: 1505

Re: Text_GetText() - Missing Method?

Change the variable names, add some logging, and you pretty much have the same code I'm working with. The method doesn't appear in the object browser.

I'm using CoreAPI SDK, does this method require Editor SDK?
by JesseH
Mon Aug 22, 2016 6:52 pm
Forum: PDF-XChange Core API SDK
Topic: Text_GetText() - Missing Method?
Replies: 7
Views: 1505

Text_GetText() - Missing Method?

Hi. I'm trying to use the method documented here: http://sdkhelp.tracker-software.com/view/PXV:IPXC_ContentItem_Text_GetText I'm using C# and Visual Studio doesn't recognize it as a method. The code I'm currently working needs to analyze the text from hundreds of documents and be able to identify er...
by JesseH
Thu Jul 28, 2016 4:02 pm
Forum: PDF-XChange Core API SDK
Topic: Bad variable type
Replies: 5
Views: 1335

Re: Bad variable type

It looks like that is what's happening. I tried having my program wait until the external process exits and it works.
by JesseH
Thu Jul 28, 2016 1:01 pm
Forum: PDF-XChange Core API SDK
Topic: Bad variable type
Replies: 5
Views: 1335

Re: Bad variable type

The two are active at the same time, but they shouldn't be accessing the file concurrently. Does the OpenDocumentFromFile() method not open the file in read mode, or require exclusive access to the file?

Given the lack of a specific file interface I assumed the file was read and released.
by JesseH
Wed Jul 27, 2016 9:02 pm
Forum: PDF-XChange Core API SDK
Topic: Bad variable type
Replies: 5
Views: 1335

Bad variable type

Me again. Hopefully this time it won't be from something ridiculous I did elsewhere in the code. In my wrapper I have a simple function: public IPXC_Document OpenPDF(String sFilePath) { IPXC_Document pDoc = g_Inst.OpenDocumentFromFile(sFilePath, null); return pDoc; } This method is successfully call...
by JesseH
Mon Jul 25, 2016 7:10 pm
Forum: PDF-XChange Core API SDK
Topic: Error when using Pages.InsertPagesFromDoc
Replies: 5
Views: 1352

Re: Error when using Pages.InsertPagesFromDoc

Thanks! While running the snippet provided resulted in the same error occurring on the OpenDocFrom call, it did lead me to the cause of the issue. After storing the list of pages, the document object got redefined elsewhere in the code.
by JesseH
Mon Jul 25, 2016 12:52 pm
Forum: PDF-XChange Core API SDK
Topic: Error when using Pages.InsertPagesFromDoc
Replies: 5
Views: 1352

Re: Error when using Pages.InsertPagesFromDoc

The values used by the calling method are already zero-based. The source file is arranged such that the first page is the first of the first letter being built. So the first call to the InsertPagesFromDoc looks like this at runtime: pDoc.Pages.InsertPagesFromDoc(pPage.Document, 0, 0, 1, 0); Edit: pD...
by JesseH
Fri Jul 22, 2016 9:05 pm
Forum: PDF-XChange Core API SDK
Topic: Error when using Pages.InsertPagesFromDoc
Replies: 5
Views: 1352

Error when using Pages.InsertPagesFromDoc

Hi, I'm developing a C# app that takes a large PDF file and breaks it into smaller documents (letter packets) based on commented lines in the source file. Prior to saving the letters to pdf files, the pages are stored in a helper class (List<IPXC_Page>). When it gets to the point of saving it tries ...