Search found 48 matches

by omascia
Thu Jul 07, 2016 1:52 pm
Forum: PDF-XChange Core API SDK
Topic: General complain about LPWSTR in API instead of LPCWSTR...
Replies: 3
Views: 798

Re: General complain about LPWSTR in API instead of LPCWSTR.

Hello omascia, Actually we use const strings wherever possible in our COM API internal definition. The problem is that we publish our COM API in the form of MS type library (TLB). It is universal and makes COM API available for most development environment at the expense of losing some information,...
by omascia
Thu Jul 07, 2016 1:44 pm
Forum: PDF-XChange Core API SDK
Topic: Error decoding? SOLVED
Replies: 3
Views: 1162

Re: Error decoding? SOLVED

Thanks Alex, this is helpful.
by omascia
Thu Jul 07, 2016 1:43 pm
Forum: PDF-XChange Core API SDK
Topic: IPXS_PDFVariant
Replies: 9
Views: 1721

Re: IPXS_PDFVariant

What's the purpose or effect of the bIndirect parameter? It allow create string as separate (indirect) object in PDF. Please read PDF specification, section Syntax , especially its subsection Objects to know more. Hmm. I'm not sure I would use Tracker-Software products if my goal was to learn and p...
by omascia
Tue Jul 05, 2016 4:38 pm
Forum: PDF-XChange Core API SDK
Topic: IPXS_PDFVariant
Replies: 9
Views: 1721

Re: IPXS_PDFVariant

I still have questions, though, on IPXS_PDFVariant. More specifically on IPXS::NewVar_String. http://sdkhelp.tracker-software.com/view/PXV:IPXS_Inst_NewVar_String What's the purpose or effect of the bIndirect parameter? Where do I get my IPXS_Document from, when I have an IPXC_Document to work with?...
by omascia
Tue Jul 05, 2016 3:11 pm
Forum: PDF-XChange Core API SDK
Topic: General complain about LPWSTR in API instead of LPCWSTR...
Replies: 3
Views: 798

General complain about LPWSTR in API instead of LPCWSTR...

All over the brand new API, when taking a string as input, it generally is declared LPWSTR (non const), which is a pain in the {you know what :) } when calling them from C++. Why haven't these API been declared to take CONST strings (that is LPCWSTR for instance) when the intent is not to update the...
by omascia
Tue Jul 05, 2016 3:02 pm
Forum: PDF-XChange Core API SDK
Topic: Error decoding? SOLVED
Replies: 3
Views: 1162

Error decoding? SOLVED

Until 5.5 there were API like PXC_Err_FormatSeverity, PXC_Err_FormatFacility, PXC_Err_FormatErrorCode to decode and translate to useful strings the status and error codes that could be returned by APIs. Is there something new to replace this? Along the same lines, are things IS_DS_FAILED() still app...
by omascia
Tue Jul 05, 2016 10:36 am
Forum: PDF-XChange Core API SDK
Topic: IPXS_PDFVariant
Replies: 9
Views: 1721

Re: IPXS_PDFVariant

Thanks. No concern about the added properties being, possibly, removed by some other toolset. They're only meant to survive while the PDF is still within our systems. What happens to copies getting out is not a concern. Thanks for the shortcut to the right interface to initialize variants !
by omascia
Mon Jul 04, 2016 2:28 pm
Forum: PDF-XChange Core API SDK
Topic: Getting the width of a string?
Replies: 1
Views: 759

Getting the width of a string?

More or less along the lines of the old PXC_GetStringWidth() ?
by omascia
Mon Jul 04, 2016 2:02 pm
Forum: PDF-XChange Core API SDK
Topic: When is the right time to get IPXC_ContentCreator?
Replies: 1
Views: 638

When is the right time to get IPXC_ContentCreator?

Can I get that interface after document setup and re-use it until I'm done with building the whole document?
Or do I have to request a new ContentCreator interface when starting building content on each new page?
by omascia
Mon Jul 04, 2016 1:55 pm
Forum: PDF-XChange Core API SDK
Topic: IPXS_PDFVariant
Replies: 9
Views: 1721

Re: IPXS_PDFVariant

No it doesn't fit the need, if I'm not mistaken. That API is meant to read/write well-known properties (controlled by a integer representing which typical info string you want to get/set). See: http://sdkhelp.tracker-software.com/view/PXV:PXC_DocumentInfoKey What we do is really add custom key infor...
by omascia
Mon Jul 04, 2016 12:33 pm
Forum: PDF-XChange Core API SDK
Topic: PXC_SetStrokeGray / PXC_SetFillGray
Replies: 1
Views: 638

PXC_SetStrokeGray / PXC_SetFillGray

Becomes IPXC_ContentCreator-> ? For instance, I had this in 5.5, partially adapted below in 6.0 (pdf.Content() was a utility mapper, not part of the question and pdf.CC below is a ContentCreator): if (r == g && g == b) { PXC_SetStrokeGray(pdf.Content(), r); PXC_SetFillGray(pdf.Content(), r); } else ...
by omascia
Mon Jul 04, 2016 12:22 pm
Forum: PDF-XChange Core API SDK
Topic: IPXS_PDFVariant
Replies: 9
Views: 1721

IPXS_PDFVariant

How do we create an instance of that interface for the purpose of storing a string through IPXC_DocumentInfo->SetInfoVar() ?
by omascia
Mon Jul 04, 2016 9:07 am
Forum: PDF-XChange Core API SDK
Topic: Any "Release Notes" document for migration from 5.x to 6.0?
Replies: 4
Views: 950

Re: Any "Release Notes" document for migration from 5.x to 6

What replaces : PXC_SetDocumentInfoExW ?
I need to add some custom attributes to documents.
by omascia
Sun Jul 03, 2016 10:23 pm
Forum: PDF-XChange Core API SDK
Topic: Any "Release Notes" document for migration from 5.x to 6.0?
Replies: 4
Views: 950

Re: Any "Release Notes" document for migration from 5.x to 6

What's the equivalent of doing :

PXC_SaveState(page);
...
PXC_CS_Translate(page, ....);
PXC_CS_Rotate(page, ...);
PXC_PlaceImage(page, ...)
...
PXC_RestoreState(page);

Thanks.
by omascia
Sun Jul 03, 2016 3:49 pm
Forum: PDF-XChange Core API SDK
Topic: Any "Release Notes" document for migration from 5.x to 6.0?
Replies: 4
Views: 950

Re: Any "Release Notes" document for migration from 5.x to 6

What to do with such an automated API description? Taken from the slowish (from oversea at least) http://sdkhelp.tracker-software.com/view/PXV:IPXC_Document_Close Syntax HRESULT Close([in, defaultvalue(0)] ULONG nFlags); Parameters nFlags [in, defaultvalue(0)] Value of ULONG. Return Value Returns S_...
by omascia
Sun Jul 03, 2016 3:01 pm
Forum: PDF-XChange Core API SDK
Topic: Any "Release Notes" document for migration from 5.x to 6.0?
Replies: 4
Views: 950

Any "Release Notes" document for migration from 5.x to 6.0?

Are there some documentations highlighting the fundamental changes to the API between 5.0/5.5 and this 6.0 new version and recommended upgrade paths? (Especially for C/C++ usage as DLL - not COM). Are we going to have to update our hundreds of calls from the previous C API to the COM based one? What...
by omascia
Wed Nov 04, 2015 3:38 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Where should I use the new style license key?
Replies: 3
Views: 2175

Re: Where should I use the new style license key?

Ok I'll try. I already had a 5.5 build (whose most DLLs are v4) and it worked with older style keys. I just happened to see today there was a newer build available (check every *some* months) and that it had a newer style license string attached to it. I haven't yet tried it, but it looked the API a...
by omascia
Wed Nov 04, 2015 2:49 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Where should I use the new style license key?
Replies: 3
Views: 2175

Where should I use the new style license key?

PDF XChange PRO SDK here. I have got a new style license key recently. The binaries seem to be more or less unchanged (essentially V4). Do I continue using my previous (shorter) key string(s) or where should I (which API) use the newer (longer) key string? The documentation itself has not changed (d...
by omascia
Wed Apr 01, 2015 3:15 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Detecting what would qualify as a blank page?
Replies: 5
Views: 1418

Re: Detecting what would qualify as a blank page?

Understood. I have some ideas of how to do it anyway and how to dismiss non significant pixels first. Was checking if there was a known golden path with ImageXChange 4 before re-inventing the wheel.

Again thanks for these quick answers.
by omascia
Wed Apr 01, 2015 2:56 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Detecting what would qualify as a blank page?
Replies: 5
Views: 1418

Re: Detecting what would qualify as a blank page?

Thanks a lot Stefan. Though I'd say these steps I knew about them. The intent of my question was a bit broader (though reading my text, yes that was not so clear) and about image processing tricks usually used to classify a page content (represented as a raster image) as blank. I see there is a foru...
by omascia
Tue Mar 31, 2015 4:13 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Detecting what would qualify as a blank page?
Replies: 5
Views: 1418

Detecting what would qualify as a blank page?

What path could be followed to try to detect 'blank pages' from a PDF made of raster image pages?
We're talking about 1bit images here.
I'm just asking for ideas or hints, I'll dig the details.
by omascia
Tue Jan 27, 2015 9:49 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXC_AddImageFromMemory returning S_OK but _PXCImage* is 0
Replies: 4
Views: 1652

Re: PXC_AddImageFromMemory returning S_OK but _PXCImage* is

So did you manage to resolve the issue between your two posts? (I am not too sure if the second one says that the problem is solved) Oh yes, this topic is resolved. My terse comment meant that. I'm making an habit of having some problem, post about it in last resort, then finding the solution withi...
by omascia
Tue Jan 27, 2015 12:03 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXC_AddImageFromMemory returning S_OK but _PXCImage* is 0
Replies: 4
Views: 1652

Re: PXC_AddImageFromMemory returning S_OK but _PXCImage* is

Hum, err, huh...
What trivial thing have I misunderstood from the documentation?
Do not pass _PXCPage to AddImage... but _PXCDocument.
by omascia
Mon Jan 26, 2015 10:52 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXC_AddImageFromMemory returning S_OK but _PXCImage* is 0
Replies: 4
Views: 1652

PXC_AddImageFromMemory returning S_OK but _PXCImage* is 0

Hello, Attempting to add a B/W image built in memory using PXC_AddImageFromMemory using MemType_8bpp. According to the documentation: "The image has a maximum of 256 colors, and the pal (which must be valid) contains up to 256 entries. Each pixel in the image is represented by one byte, the value of...
by omascia
Fri Jan 09, 2015 9:23 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Barcode finding and reading from PDF content?
Replies: 14
Views: 5024

Re: Barcode finding and reading from PDF content?

So am I right in thinking that you have everything you need? Or is there anything else that we can help you with :) You are right! :wink: Just keep the idea of possibly adding a barcode finding and decoding feature in some future, either as a special feature of the OCR kit or separately. But I now ...
by omascia
Thu Jan 08, 2015 7:11 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Barcode finding and reading from PDF content?
Replies: 14
Views: 5024

Re: Barcode finding and reading from PDF content?

Answering my own question... :) It didn't strike me first that Image-XChange SDK is actually included along with PDF-XChange Pro SDK since versions 5.x. That is *great* (old) news. Do you want to know why I missed it? Its documentation is missing from the PDF-XChange Pro SDK download. I had to downl...
by omascia
Wed Jan 07, 2015 3:35 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Barcode finding and reading from PDF content?
Replies: 14
Views: 5024

Re: Barcode finding and reading from PDF content?

In this ongoing quest, I have successfully experimented with rendering the pages and then scanning them for the EAN8 barcodes I'm interested in. Currently experimenting with "zbar" project for that matter (quite nice, albeit clearly inferior and more limited than some commercial tools I have quickly...
by omascia
Wed Jan 07, 2015 3:17 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_SaveDocImageIntoFileA() -> HRESULT 0x82030014
Replies: 2
Views: 817

Re: PXCp_SaveDocImageIntoFileA() -> HRESULT 0x82030014

OK, self-reply on my (dumb) question. I'm sorry: fm40tiff.dll was missing from my runtime directory (fm40base.dll was present though). And the documentation (page about redistribution of components) clearly answer the second part of my initial question : fm40base.dll is enough to support PNG, JNG, G...
by omascia
Wed Jan 07, 2015 2:24 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: PXCp_SaveDocImageIntoFileA() -> HRESULT 0x82030014
Replies: 2
Views: 817

PXCp_SaveDocImageIntoFileA() -> HRESULT 0x82030014

Hello, Calling PXCp_SaveDocImageIntoFileA() with a current valid document, page number and imageID, using the save to TIFF sample code from the documentation, I get HRESULT 0x82030014 error, which to my understanding and translation is "ImagesCore, Invalid format identifier". To what formats -- if a...
by omascia
Fri Jan 02, 2015 9:05 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Barcode finding and reading from PDF content?
Replies: 14
Views: 5024

Re: Barcode finding and reading from PDF content?

Yes thanks, it helps to know I'm not wrong in seeking some additional tool for that need. The barcodes I'd like to recognize will be found as images or part of images within the PDF pages. That could be usual text PDF along with embedded images (built using PDF-Tools SDK) or PDF coming from scanners...
by omascia
Fri Jan 02, 2015 5:27 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Barcode finding and reading from PDF content?
Replies: 14
Views: 5024

Barcode finding and reading from PDF content?

Are there know good paths to recognize (should I ask this in the OCR topic?) barcodes within a PDF? Through means offered by PDF-Tools SDK or through additional third-parties? It surely would be easy to rasterize a page then hand it for processing to another SDK. Just checking if I'm not about to in...
by omascia
Fri Aug 29, 2014 9:34 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Re: Missing text / fonts / images in PXC_WriteDocument files

What we were experiencing, now that we have some background and a solution is this. Using GDI API which are NOT meant to deal with actual windows painting is possible from a NON-GUI (command-line type) executable, without even a Windows messages loop (typically a blind service application). This has...
by omascia
Fri Aug 29, 2014 8:51 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Does PXC_AddImageFromMemory() does any GDI calls internally?
Replies: 3
Views: 1318

Re: Does PXC_AddImageFromMemory() does any GDI calls interna

- when I call PXC_AddImageFromMemory(), does this one makes *any* GDI call to do its work? (I assume no). In case of raster formats - no, we do not need GDI. But when you use EMF/WMF files we use GDI functions. Pardon me asking, but are you sure about EMF/WMF, I do not see how this API could take E...
by omascia
Thu Aug 28, 2014 4:15 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Does PXC_AddImageFromMemory() does any GDI calls internally?
Replies: 3
Views: 1318

Does PXC_AddImageFromMemory() does any GDI calls internally?

You might help me, regarding an issue that started hitting me one week and a half ago (which I have documented in this other thread http://www.tracker-software.com/forum3/viewtopic.php?f=44&t=22283 ), by answering this precise question : - when I call PXC_AddImageFromMemory(), does this one makes *a...
by omascia
Wed Aug 27, 2014 2:15 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Re: Missing text / fonts / images in PXC_WriteDocument files

I'll post a conclusion here within the next 24h (when we will have enough returns from field) but it looks like we have suffered from a very inextricable cross libraries issue, which only started after receiving some Windows update fixes, and that PDF-Tools (and we're so happy if this is so) was NOT...
by omascia
Tue Aug 26, 2014 9:30 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Re: Missing text / fonts / images in PXC_WriteDocument files

We're still fighting this issue and having a hell of a time with every of our customers running Windows Server 2008 R2, fully updated (since mid-august). By fully updated, I mean in the state where Windows Update reports nothing to install : every service pack, important or recommend update is insta...
by omascia
Fri Aug 22, 2014 2:04 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Re: Missing text / fonts / images in PXC_WriteDocument files

Just got informed of one of those cases with missing texts and fonts and indeed, as I expected after seeing PXC_AddImage returning an unexplainable 'not found', the PXC_AddFont calls start returning : PXC_AddFont('Courier New'): Error [PdfLib]: Invalid font. And this for font names as "Arial" or "Co...
by omascia
Fri Aug 22, 2014 1:55 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Re: Missing text / fonts / images in PXC_WriteDocument files

We uninstalled the KB2976897 and... we have had only one case since 08:00 today (it is 15:45 here at time of posting). This case we had minutes ago is the limited one (where only the images are missing). And as we added some trace code yesterday evening, we can show the decoded error code returned b...
by omascia
Thu Aug 21, 2014 5:01 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Re: Missing text / fonts / images in PXC_WriteDocument files

I can simulate a similar behavior by doing the following in our ordinary listing engine. This one PXC_AddFont(..."Courier New"...), which I comment out. We normally AddFont "Courier New" 400 and 700, non-italic. Then, assuming we do not test error returns of most other APIs, the whole printing proce...
by omascia
Thu Aug 21, 2014 10:31 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Missing text / fonts / images in PXC_WriteDocument files
Replies: 10
Views: 3659

Missing text / fonts / images in PXC_WriteDocument files

We experience a strange problem on Server 2008 R2 since this monday. There have been a bunch of Windows Updates on sunday 17 Aug and since monday, after *some* time our binaries start producing PDF files where either only the images are missing or images and all text. Lines and boxes are the only vi...
by omascia
Tue Jul 23, 2013 2:28 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: How to add images to existing PDF?
Replies: 3
Views: 1759

Re: How to add images to existing PDF?

Even though I have a workaround for my needs of adding background images after the facts, the part one of my initial post might still see an answer. But there is no hurry. It may be a bug in the library or an inherent limitation of the PDF file formats. I don't know (else I would not use PDF Tools t...
by omascia
Tue Jul 23, 2013 2:22 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: How to add images to existing PDF?
Replies: 3
Views: 1759

Re: How to add images to existing PDF?

Answering myself... after some more ideas and quick and dirty code testing... To add those images to the original PDF, I create a new PDF using PXC_ library made of blank pages of the same dimensions as the original PDF, add and place images on this one, taking care of adding once even if placing th...
by omascia
Tue Jul 23, 2013 12:57 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: How to add images to existing PDF?
Replies: 3
Views: 1759

How to add images to existing PDF?

How would you proceed to add images to an existing PDF ? Here's the background for the request. I may need to create many different rather small PDF files, each including nearly always the same 1, 2 or 3 images, everything else is text and is different on each PDF. To make it real life : consider th...
by omascia
Fri Mar 12, 2010 3:39 pm
Forum: PDF-XChange Viewer SDK
Topic: Black page using PXCV_DrawPageToDC() on a printer DC
Replies: 7
Views: 1542

Re: Black page using PXCV_DrawPageToDC() on a printer DC

omascia wrote:I'm still cleaning my code from all the debug experiments of these last hours, then I'll re-run a full test suite and report here.
Confirmation after cleanup and full test suite: issue fixed, case closed.
Thanks for your support.
:)
by omascia
Fri Mar 12, 2010 1:54 pm
Forum: PDF-XChange Viewer SDK
Topic: Black page using PXCV_DrawPageToDC() on a printer DC
Replies: 7
Views: 1542

Re: Black page using PXCV_DrawPageToDC() on a printer DC

Hi Oliver. Please try to pass pxvrpf_NoTransparentBkgnd flag when call PXCV_DrawPageToDC. HTH. This is it. I discovered it right before my noon break too. Though I don't seem to even need it because the vector renderer works well even on the anisotropic coordinates system of the matrix printer as l...
by omascia
Fri Mar 12, 2010 1:45 pm
Forum: PDF-XChange Viewer SDK
Topic: Black page using PXCV_DrawPageToDC() on a printer DC
Replies: 7
Views: 1542

Re: Black page using PXCV_DrawPageToDC() on a printer DC

Got your mail as well as this topic. Thanks Stefan. I indeed first wrote the mail then I saw the warning about spam issues and the hint to preferably use the forum, so I duplicated here. I'll switch to the forum from now on for anything non related to licensing / commercial / private matters. Thank...
by omascia
Fri Mar 12, 2010 6:52 am
Forum: PDF-XChange Viewer SDK
Topic: Black page using PXCV_DrawPageToDC() on a printer DC
Replies: 7
Views: 1542

Black page using PXCV_DrawPageToDC() on a printer DC

Dear, I have an issue with PXCV_DrawPageToDC when using it on a printer device context. The page prints black. If you look at the following code, until yesterday the lines CRect rect... and FillRect where NOT there and the green section was NOT commented out. So there was no attempt to FillRect and ...