Search found 993 matches

by zarkogajic
Fri May 07, 2021 3:28 pm
Forum: PDF-XChange Editor
Topic: Creating a Link to a Document in Different Tab Group
Replies: 0
Views: 13

Creating a Link to a Document in Different Tab Group

Hi Support, Say I have 2 documents open in one Frame, each document in a tab: image.png Say I want to create a link from the 1st document to the 2nd document. Activating the Link tool would bring up the "Browse for Link Target" dialog. image1.png I will then activate the second tab (/2nd document), ...
by zarkogajic
Fri May 07, 2021 1:48 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception
Replies: 10
Views: 91

Re: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception

Hi Alex, So basically, if doing the PlaceHeaderFooter for couple hundred of times on some document set can recreate this - I can try doing this. Should this be multithreaded? And also - a small code snippet if you can Uh, oh. no small code snippet I can give you , but here's what my code looks like:...
by zarkogajic
Fri May 07, 2021 1:26 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception
Replies: 10
Views: 91

Re: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception

Hi Alex, Some more info: When I used PlaceWatermark to test, the issue also appeared. But, if I set to place the watermark only on, for example, first 10 pages - no issue. So, seems like only when I want the Watermark or Header/Footer on all pages I can "reproduce" this. Also, as stated initially, t...
by zarkogajic
Fri May 07, 2021 1:21 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception
Replies: 10
Views: 91

Re: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception

Hi Alex,

Always testing on the same set of documents. Yes, on random documents, not always the same. Sometimes without any document being affected, sometimes more documents affected - so very very sporadic and not catchable.



by zarkogajic
Fri May 07, 2021 12:37 pm
Forum: PDF-XChange Editor SDK
Topic: Text highlight annotations
Replies: 4
Views: 17

Re: Text highlight annotations

Hi

"Highlight" ?

p.s.
Not "Highligt"


-žarko
by zarkogajic
Fri May 07, 2021 12:18 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception
Replies: 10
Views: 91

Re: IPXC_Document.PlaceHeadersAndFooters sporadic "unknow error" exception

Hi Alex, This again is occurring randomly :( I've implemented ILogListener and wrapped the call to PlaceHeadersAndFooters with RegisterListener/UnregisterListener. Sadly, the OnLogMsg is never called - even though PlaceHeadersAndFooters throws "unknow error". Is ILogListener designed to be used like...
by zarkogajic
Wed May 05, 2021 11:38 am
Forum: PDF-XChange Editor SDK
Topic: Refrase: Is this correct? SOLVED
Replies: 9
Views: 86

Re: Refrase: Is this correct? SOLVED

Happens to all :)

by zarkogajic
Wed May 05, 2021 9:51 am
Forum: PDF-XChange Editor SDK
Topic: Refrase: Is this correct? SOLVED
Replies: 9
Views: 86

Re: Refrase: Is this correct? SOLVED

Hi JustWest,

You are sending "nText" to "newAnnot = AddAnnotLine(dAnnot, pPage, nText);" while you want to send "nLine" value.

-žarko
by zarkogajic
Wed May 05, 2021 8:08 am
Forum: PDF-XChange Editor SDK
Topic: Order of e.document.* events (strange case with an XFA)
Replies: 2
Views: 25

Re: Order of e.document.* events (strange case with an XFA)

Hi Alex, Thanks. I just went back to 352 version, and the event order *is* different (when compared to 354) for that particular document. The event order is: e_document_initialized e_pagesView_ready e_documentView_prepare/e_documentView_ready e_pagesView_ready (2nd time! but a different instance) e_...
by zarkogajic
Tue May 04, 2021 3:44 pm
Forum: PDF-XChange Editor SDK
Topic: Order of e.document.* events (strange case with an XFA)
Replies: 2
Views: 25

Order of e.document.* events (strange case with an XFA)

Hi Support, When looking at the following events: e_document_initialized, e_pagesView_ready, e_documentView_ready and e_document_activated, the order how events are fired for a newly opened document is how I ordered them. I have a strange case with one XFA document, where the order of events fired i...
by zarkogajic
Wed Apr 28, 2021 2:39 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_Page.PlaceContent (IIXC_Page) - image exists but not added to the page SOLVED
Replies: 5
Views: 55

Re: IPXC_Page.PlaceContent (IIXC_Page) - image exists but not added to the page SOLVED

Hi Alex,

Thanks. Yes, I'm looking there.

Actually, I had an error in my code, sorry :)

-žarko
by zarkogajic
Wed Apr 28, 2021 2:02 pm
Forum: PDF-XChange Editor SDK
Topic: IPXC_Page.PlaceContent (IIXC_Page) - image exists but not added to the page SOLVED
Replies: 5
Views: 55

IPXC_Page.PlaceContent (IIXC_Page) - image exists but not added to the page SOLVED

Hi Support, I've been using the SavePageRectAsAnImage method from this post https://forum.tracker-software.com/viewtopic.php?f=66&t=30710&p=122842&hilit=Page_CreateEmpty#p122842. As a result: I can save a page as an image - works as expected. Now, what I really need is to place an image as a content...
by zarkogajic
Wed Apr 28, 2021 11:02 am
Forum: PDF-XChange Editor SDK
Topic: Clone Content from one CoreDoc page to another SOLVED
Replies: 5
Views: 51

Re: Clone Content from one CoreDoc page to another SOLVED

Hi Alex,

Ok, noted, thanks.

by zarkogajic
Wed Apr 28, 2021 8:28 am
Forum: PDF-XChange Editor SDK
Topic: Clone Content from one CoreDoc page to another SOLVED
Replies: 5
Views: 51

Re: Clone Content from one CoreDoc page to another SOLVED

Hi Alex,

ok, thanks.
you will need to copy a needed page to the needed document
Any other way than InsertPagesFromDoc ?




-žarko
by zarkogajic
Wed Apr 28, 2021 8:08 am
Forum: PDF-XChange Editor SDK
Topic: Print a PDF to PDF via SDK
Replies: 8
Views: 79

Re: Print a PDF to PDF via SDK

Hi Vasyl, Of course, I do agree with what you are saying. However, the entire thing depends on the point of view and perspective :) PDF Printers are nothing but applications knowing how to open and manipulate PDF documents (and of course other supported formats). Once a PDF Printer receives a PDF fo...
by zarkogajic
Wed Apr 28, 2021 7:48 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Alex, Vasyl, Some more thingies to consider, please. For the moment: Setting IPXV_DocPreSaveOptimizedDataEvent's Handled to true will only stop it from propagating to other PXVControls listening to the event. Getting IProgressMon's Cancel flag from IID_IPXV_DocPreSaveOptimizedDataEvent.Progress a...
by zarkogajic
Tue Apr 27, 2021 9:19 pm
Forum: PDF-XChange Editor SDK
Topic: Print a PDF to PDF via SDK
Replies: 8
Views: 79

Re: Print a PDF to PDF via SDK

Hi Vasyl,

Thanks. Yes, I know what I'm up to is kind of against the security .

But, if a document allows printing, and I can print it using "pdfx lite printer" (or any pdf printer) - then is that apprach also against what should be disallowed?


-žarko
by zarkogajic
Tue Apr 27, 2021 2:12 pm
Forum: PDF-XChange Editor SDK
Topic: Clone Content from one CoreDoc page to another SOLVED
Replies: 5
Views: 51

Clone Content from one CoreDoc page to another SOLVED

Hi Support, What's wrong with the below code - why is the resulting page newDoc's empty: //pseduo IPXC_Content pContent = CoreDoc.Pages[0].GetContent(CAccessMode_FullClone); //not sure if needed, but no changes in resulting page: //IPXC_Content pContentClone = pContent.Clone(false) CoreDoc.Pages[0]....
by zarkogajic
Mon Apr 26, 2021 11:22 am
Forum: PDF-XChange Editor SDK
Topic: Default ProgressMon dialog - show marquee (/indeterminate duration) SOLVED
Replies: 3
Views: 36

Re: Default ProgressMon dialog - show marquee (/indeterminate duration) SOLVED

Hi Alex,

Oh. Harder and harder to find a tree from the forest :) Thanks!

-žarko
by zarkogajic
Mon Apr 26, 2021 11:21 am
Forum: PDF-XChange Editor SDK
Topic: Print a PDF to PDF via SDK
Replies: 8
Views: 79

Re: Print a PDF to PDF via SDK

HI Alex,

Thanks. Yes, I see that,

I'm asking for something else... note that I do not want to pick the installed printer (as I might not have one)

I'm looking for a "converter" that knows how to *print* a PDF to PDF.


-žarko
by zarkogajic
Mon Apr 26, 2021 9:36 am
Forum: PDF-XChange Editor SDK
Topic: op.combineDocs -> callback when documents being combined + default action for "Cannot Add File"
Replies: 21
Views: 483

Re: op.combineDocs -> callback when documents being combined + default action for "Cannot Add File"

Hi Alex,
Sasha - Tracker Dev Team wrote:
Thu Apr 22, 2021 1:51 pm
OK, so the place where that value was filled was not the place for all of the error handling. Moved that code piece and now it will always be filled on bad HRESULT. The fix itself will be available from the 354 build.
Working as expected in 354.

-žarko
by zarkogajic
Mon Apr 26, 2021 8:46 am
Forum: PDF-XChange Editor SDK
Topic: Print a PDF to PDF via SDK
Replies: 8
Views: 79

Re: Print a PDF to PDF via SDK

Hi Alex, Thanks. But for "op.document.printPages" I still need a virtual PDF printer installed, correct? I was hoping for something like : use op.document.printPages to create a new CoreDocument . So, in the similar way how, for example, the SDK, via converters, can open a DOC and convert (/print) t...
by zarkogajic
Mon Apr 26, 2021 8:33 am
Forum: PDF-XChange Editor SDK
Topic: Default ProgressMon dialog - show marquee (/indeterminate duration) SOLVED
Replies: 3
Views: 36

Default ProgressMon dialog - show marquee (/indeterminate duration) SOLVED

Hi Support, How would I go about setting the undetermined Duration for the default progress monitor's dialog - so that progress renders as animation that continuously cycles across the bar? Example: when opening a doc that's not a PDF, the default dialog would first show a marquee style progress unt...
by zarkogajic
Mon Apr 26, 2021 7:43 am
Forum: PDF-XChange Editor SDK
Topic: Default ProgressMon dialog - timerid to show it SOLVED
Replies: 2
Views: 45

Re: Default ProgressMon dialog - timerid to show it SOLVED

Hi,

Nevermind, figured out and took a different approach ...

-žarko
by zarkogajic
Fri Apr 23, 2021 3:50 pm
Forum: PDF-XChange Editor SDK
Topic: Default ProgressMon dialog - timerid to show it SOLVED
Replies: 2
Views: 45

Default ProgressMon dialog - timerid to show it SOLVED

Hi Support, I know default progress monitor's dialog will appear only after some time has passed after Start method called. Can you please let me know the timerID so I can send the message to the window - as I really need it to appear right after Start... p.s. Of course, I'm hoping that having that ...
by zarkogajic
Fri Apr 23, 2021 2:46 pm
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Alex, Vasyl, Even thought ... :) ... one more question, given that using all the above I actually do not need the "DestFileName" from IPXV_DocPreSaveOptimizedDataEvent. Since e.document.preSaveOptimizedData is raised after the user has selected the destination file, my code runs after SaveAs dial...
by zarkogajic
Fri Apr 23, 2021 2:29 pm
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Alex, Vasyl, Bingo! All working how I wanted it :) Using: 1. TempOptimizedDoc.SrcInfo.File.Read(buffer) 2. Send buffer to my linearization code 3. Receive buffer from linearization 4. Write received buffer back to TempOptimizedDoc.SrcInfo.File Case finally closed :) :) Further: Also: in the new 3...
by zarkogajic
Fri Apr 23, 2021 1:35 pm
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Support,

After a lot of what-to-try-next ... I've "found" the Reopen(nNewOpenFlags) method. Included AFS_OpenFile_Write. Write works!!

-žarko
by zarkogajic
Fri Apr 23, 2021 9:56 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Support,

I've checked OpenFlags for TempOptimizedDoc.SrcInfo.File and they are:

AFS_OpenFile_Read + AFS_OpenFile_OpenExisting + AFS_OpenFile_ShareRead + AFS_OpenFile_Cache + AFS_OpenFile_FullCache

Seems like no writing allowed ? As a result, Write method "fails" (writes 0 bytes)?

-žarko
by zarkogajic
Fri Apr 23, 2021 9:12 am
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Vasyl, Yes, should be straightforward, but unfortunately, Writing part seems not to work - written bytes count is 0. Here's my code: pPv: Pointer; nSize, nRead, nWrite, nNewPos: Int64; pErrDetails: IString; ... eventData.TempOptimizedDoc.SrcInfo.File_.GetSize(nSize, nil, nil); pPv := AllocMem(nSi...
by zarkogajic
Thu Apr 22, 2021 9:09 pm
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

Re: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Vasyl,

Omg, I completely failed to see Read/Write methods exist for iafs_file - those two should be enough for all I need.

Btw, any code samples for those two methods?

-žarko
by zarkogajic
Thu Apr 22, 2021 2:50 pm
Forum: PDF-XChange Editor SDK
Topic: IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc
Replies: 14
Views: 124

IPXV_DocPreSaveOptimizedDataEvent and altering the TempOptimizedDoc

Hi Support, I'm moving this to a new separate topic, as this is really not related to the original question, ref: https://forum.tracker-software.com/viewtopic.php?f=66&t=35186#p150385 From what I understand when the e.document.preSaveOptimizedData ends, the temporary (optimized) file is saved to (ov...
by zarkogajic
Thu Apr 22, 2021 2:25 pm
Forum: PDF-XChange Editor SDK
Topic: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup
Replies: 6
Views: 551

Re: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup

Hi Alex, Thanks. 1. ok. 2. ok. 3. ok. 4. "Disabled Copy": please allow to disable default context menu, or to specify custom context menu, or at least to catch its display to hide it. Since we (SDK users) can, obviously, add custom Info Groups/Items - the default context menu you would have will pro...
by zarkogajic
Thu Apr 22, 2021 2:16 pm
Forum: PDF-XChange Editor SDK
Topic: Print a PDF to PDF via SDK
Replies: 8
Views: 79

Print a PDF to PDF via SDK

Hi Support, Having a PDF document with some security restrictions like "no page extraction", but "allow printing", I'm looking for a way to print a PDF to PDF - as the resulting PDF will be without restrictions. I can do this in EU Editor, by printing the document via "PDF-XChange Lite Printer" - as...
by zarkogajic
Thu Apr 22, 2021 1:43 pm
Forum: PDF-XChange Editor SDK
Topic: Export a specific annot
Replies: 27
Views: 432

Re: Export a specific annot

Hi Alex,

Thanks. Good to know.

-žarko
by zarkogajic
Thu Apr 22, 2021 1:03 pm
Forum: PDF-XChange Editor SDK
Topic: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup
Replies: 6
Views: 551

Re: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup

Btw, I imagine this might not be fully implemented, as when I right click:

image.png

-žarko
by zarkogajic
Thu Apr 22, 2021 12:40 pm
Forum: PDF-XChange Editor SDK
Topic: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup
Replies: 6
Views: 551

Re: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup

Ah, ah .. have to do all the hard work: image.png Looks nice and I have some ideas for it ... A few questions: 1. what would the "IPXV_InfoWindowGroup.Flags" be used for? 2. What is IPXV_InfoWindowGroup.SetTitle2 with integer parameter? 3. The user can move the "window" and dock to pages view edges ...
by zarkogajic
Thu Apr 22, 2021 12:16 pm
Forum: PDF-XChange Editor SDK
Topic: Export a specific annot
Replies: 27
Views: 432

Re: Export a specific annot

Hi Alex, Eh, if it would be that simple - we would not have so many posts here :) I'm using op.document.importCommentsAndFields having "Input" be a Core Document - so *no IPXV* thingies whatsoever. The idea is to "copy" annotations from one Core document to another. Yes, I am primarily interested in...
by zarkogajic
Thu Apr 22, 2021 11:36 am
Forum: PDF-XChange Editor SDK
Topic: Export a specific annot
Replies: 27
Views: 432

Re: Export a specific annot

Hi Alex,

Yes, I edited my previous post to say that it works if XFDF is used (and not FDF).

However, when importing from the same file - links not imported. By design, or?

-žarko
by zarkogajic
Thu Apr 22, 2021 11:23 am
Forum: PDF-XChange Editor SDK
Topic: Export a specific annot
Replies: 27
Views: 432

Re: Export a specific annot

Hi Alex, In that above (pseudo) code, even if "LinksOnly" is added and set to true - links are not exported. EDIT: Only if XFDF is used then links (only links) are part of it (so does not work with FDF). BUT: op.document.importCommentsAndFields does not import those links from the same document. -ža...
by zarkogajic
Thu Apr 22, 2021 8:28 am
Forum: PDF-XChange Editor SDK
Topic: Export a specific annot
Replies: 27
Views: 432

Re: Export a specific annot

Hi, Pseudo code: IPXC_AnnotsList annotsToExport = IPXC_Inst::CreateAnnotsList for IPXC_Page aPage in sourceDocument, for IPXC_Annotation anAnnot in aPage if index of anAnnot MOD 2 = 0 //(so every second) annotsToExport.Insert(anAnnot, -1 + annotsToExport.Count); ... op.document.exportCommentsAndFiel...
by zarkogajic
Wed Apr 21, 2021 3:33 pm
Forum: PDF-XChange Editor SDK
Topic: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup
Replies: 6
Views: 551

Re: v9 IPXV_InfoWindow / IPXV_InfoWindowGroup

Hi Support,

Ping here ...

-žarko
by zarkogajic
Wed Apr 21, 2021 2:55 pm
Forum: PDF-XChange Editor SDK
Topic: op.bookmarks.export / op.bookmarks.import via IStream : "the parameter is incorrect" exception
Replies: 9
Views: 139

Re: op.bookmarks.export / op.bookmarks.import via IStream : "the parameter is incorrect" exception

Hi Alex, I'm using the IStream implementation from my framework (Delphi's TStreamAdapter) - and it works without issues when, for example, using it to open files from IStream. Also, saving to IStream works - I see data inside. Only reading from it results in AV - and without any further exception de...