I need to perform below mentioned actions programatically using Editor SDK?

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Mon Apr 22, 2019 10:54 am

Hi team,

I need perform below actions using PDF Xchange editor SDk Programatically. please provide code snippets for the below mentioned actions . We need to use PDF Xchange Editor SDK in our c# application to perform certain task's .

1.Conversion of Word to PDF
2.XFDF import / export of annotaions.
3.Write annotations
4.Opening multiple PDF
5.Updating opened PDF with annotations programatically
6.Usage of PDF Xchange Editor SDK to perform above tasks programatically in WPF application


Regards,
Madhu

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Mon Apr 22, 2019 1:00 pm

Hello Madhu,

Our product can do all of these requirements. Have you tried using the FullDemo application? It holds answers to many questions.
As for the WPF sample - here you go:
https://github.com/tracker-software/PDFEditSDK-WPF

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Mon Apr 22, 2019 2:27 pm

Hi team,

In full demo i cant see conversion of doc to PDF . can you provide me code snippet for this.


Regards,
Madhu

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Tue Apr 23, 2019 7:08 am

Hello Madhu,

Here's the topic that you need:
viewtopic.php?f=66&t=27488&hilit=ConvertPDF

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Tue Apr 23, 2019 8:59 am

Hello shasha,

In the similar way can you provide sample code snippet for copying annotations from one doc to other doc using SDK , preferable Import and export of annotations in XFDF format.


Regards,
Madhu

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Tue Apr 23, 2019 9:18 am

Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Tue Apr 23, 2019 12:42 pm

Sasha - Tracker Dev Team wrote:
Tue Apr 23, 2019 7:08 am
Hello Madhu,

Here's the topic that you need:
viewtopic.php?f=66&t=27488&hilit=ConvertPDF

Cheers,
Alex

hi Sasha,

Sample coded provided by you is not working ,providing the screen shot regarding this.



Regards,
Madhu
Attachments
image.png
please find the screen shot

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Tue Apr 23, 2019 12:44 pm

Hello Madhu,

Please read forum rules at the top of this page and specify the full error information, so that we can continue.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Tue Apr 23, 2019 12:51 pm

Sasha - Tracker Dev Team wrote:
Tue Apr 23, 2019 9:18 am
Hello Madhu,

https://sdkhelp.tracker-software.com/vi ... nnots_move

Cheers,
Alex
Hello Sasha,

i need to export to xfdf file not like moving in the same doc.can i get a sample code using op.document.importCommentsAndFields .

Regards,
Madhu

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Tue Apr 23, 2019 12:54 pm

Hello Madhu,

Have you used forum search - there are topics on how to use these operations.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Tue Apr 23, 2019 1:29 pm

Sasha - Tracker Dev Team wrote:
Tue Apr 23, 2019 12:44 pm
Hello Madhu,

Please read forum rules at the top of this page and specify the full error information, so that we can continue.

Cheers,
Alex
hi sasha,

converting WORD to PDF is working , i am able to run the sample code :D .


Regards,
madhu

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Tue Apr 23, 2019 1:59 pm

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Tue Apr 23, 2019 2:14 pm

hi Sasha,

I am able to run the full demo code in my local machine ,but while i tried to run the same code in other project by adding required dll's i am facing issues , is there any license restrictions . can you suggest me a method to run the code in local project other than full demo.

Regards,
Madhu

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Wed Apr 24, 2019 12:52 pm

Hi Sasha,

1.Is there chance to work on exporting and importing of annotations with out opening the doc , where we can mention the source and destination path with out opening the doc.

2.While import and Export of annotations status of annotatin is not beeing carried while importing using the sample code in the below

var op = ole_pdf.Inst.CreateOp(ole_pdf.Inst.Str2ID("op.document.importCommentsAndFields"));
if (op == null)
{
return;
}
op.Params.Root["Input"].v = "D:\\Exchange_app_test\\Dest_2_no_annote.pdf"; // put target-document
op.Params.Root["Options.FileName"].v = "D:\\Exchange_app_test\\sample1.xfdf"; // *.xfdf too
op.Do();

is there any other way to import so that status can be imported along with annotations.

3.I tried with the code from one of your support forums wherr we can import comments with out opening a file in the viewer but it is not working . can you suggest me the code snippet for this both import and export .
/PDFXEdit.PXV_Inst _pdfInst;
//PDFXEdit.IPXC_Inst _pxcInst;
//_pdfInst = new PDFXEdit.PXV_Inst();
//_pxcInst = (PDFXEdit.IPXC_Inst)_pdfInst.GetExtension("PXC");

//PDFXEdit.IPXC_DocAuthCallback authCallBack = null;
//PDFXEdit.IPXC_Document docTest = _pxcInst.OpenDocumentFromFile(@"D:\\Exchange_app_test\\Dest_2_no_annote.pdf", authCallBack);

//int nIDImport = _pdfInst.Str2ID("op.document.importCommentsAndFields", false);
//PDFXEdit.IOperation opImport = _pdfInst.CreateOp(nIDImport);
//PDFXEdit.ICabNode inputImport = opImport.Params.Root["Input"];
//inputImport.v = docTest;
//PDFXEdit.ICabNode optionsImport = opImport.Params.Root["Options"];
//optionsImport["FileName"].v = @"D:\\Exchange_app_test\\sample1.xfdf";
//opImport.Do();





Regards,
Madhu
Last edited by madhu1528 on Thu Apr 25, 2019 12:46 pm, edited 1 time in total.

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Thu Apr 25, 2019 12:21 pm

Hello Madhu,

1. As the description of the operation says - you have to specify the IPXC_Document as an input.
2. Have you tried doing the same with the End-User Editor?
3. What is not working exactly?

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Thu Apr 25, 2019 1:05 pm

Hi Sasha,

1.What is the source code for the EDITOR SDK?
2.when we purchase the SDk will we get the source code?
3.What is the road map of SDK future updates and how long it get updates,when updated how we are going to get the Updated SDK?

4.How to read PDF from a local path with out opening to export or import annotations?
-Export and Import annotations should be done with out opening doc in the active x control.Doc should be taken from the local path and it should import annotations and as well export annotaitons.

-sample code used for export and import annotation

exporting annotation
IOperation op = this.ole_pdf.Inst.CreateOp(this.ole_pdf.Inst.Str2ID("op.document.exportCommentsAndFields", false));
op.Params.Root[(object)"Input"].v = ole_pdf.Doc;
ICabNode cabNode = (ICabNode)op.Params.Root[(object)"Options"];
cabNode[(object)"ExportAnnots"].v = (object)true;
cabNode[(object)"ExportFields"].v = (object)true;
cabNode[(object)"Format"].v = "XFDF";
IAFS_Name name = ((IAFS_Inst)this.ole_pdf.Inst.GetExtension("AFS")).DefaultFileSys.StringToName(@"D:\Exchange_app_test\\sample1.xfdf", 0, (IAFS_Name)null);
cabNode[(object)"DestFile"].v = (object)name;
//cabNode[(object)"DestFile"].v = @"D:\\Exchange_app_test\\sample1.xfdf";
op.Do(0);

-import of annotaion

var op = ole_pdf.Inst.CreateOp(ole_pdf.Inst.Str2ID("op.document.importCommentsAndFields"));
if (op == null)
{
return;
}
op.Params.Root["Input"].v = ole_pdf.Doc; // put target-document
op.Params.Root["Options.FileName"].v = "D:\\Exchange_app_test\\sample1.xfdf"; // *.xfdf too
op.Do();

-We are able to export and import the annotations of opend doc in the activex.


5.How to get the status of annotations?

-We need to Import annotations along with status into the new version of the PDF doc

-Using the import code we are not able to achieve this please provide the solution.

6.How to save PDFs from activexcontrol to any path?
-When we convert a Doc,XLS and PPT files to PDF ,we need to store them in a desired path.
-With below code snippet i am able to convert the doc to PDF and open it in activex control.
for (int i = 0; i < ole_pdf.Inst.ImportConvertersCount; i++)
{
PDFXEdit.IPXV_ImportConverter cov = ole_pdf.Inst.get_ImportConverter((uint)i);

if (cov.ID == "conv.imp.office.doc")
{
PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)ole_pdf.Inst.GetExtension("AFS");
PDFXEdit.IAFS_Name name = fsInst.DefaultFileSys.StringToName("D:\\Exchange_app_test\\HATCH_CodeSetup.docx");
int openFileFlags = (int)(PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_Read | PDFXEdit.AFS_OpenFileFlags.AFS_OpenFile_ShareRead);

PDFXEdit.IAFS_File destFile = fsInst.DefaultFileSys.OpenFile(name, openFileFlags);

PDFXEdit.PXV_FmtCheckResult ret = cov.CheckFormat(ole_pdf.Inst, destFile);
PDFXEdit.ICab cab = ole_pdf.Inst.GetFormatConverterParams(true, "conv.imp.office.doc");
PDFXEdit.IPXC_Document doc = cov.Convert(ole_pdf.Inst, destFile, 0, cab);
ole_pdf.OpenDocFrom(doc);
}

}
-there is no option to save the converted pdf doc into local path using , if there is a posibility to save the into local path .

7.While using java script for import and export we are not able to import status from the XFDF file which was exported.


Regards,
Madhu
Last edited by madhu1528 on Fri Apr 26, 2019 12:08 pm, edited 3 times in total.

madhu1528
User
Posts: 14
Joined: Mon Apr 22, 2019 10:02 am

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by madhu1528 » Thu Apr 25, 2019 1:06 pm

Sasha - Tracker Dev Team wrote:
Thu Apr 25, 2019 12:21 pm
Hello Madhu,

1. As the description of the operation says - you have to specify the IPXC_Document as an input.
2. Have you tried doing the same with the End-User Editor?
3. What is not working exactly?

Cheers,
Alex

hi alex,

I didnt get can you mention in which part of the code i need to place the IPXC_Document as an input.

regards,
Madhu



Hi Alex,

I am able to save the doc with out opening .it got resolved .

Regards,
Madhu

User avatar
Sasha - Tracker Dev Team
User
Posts: 4400
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: I need to perform below mentioned actions programatically using Editor SDK?

Post by Sasha - Tracker Dev Team » Mon Apr 29, 2019 11:11 am

Hello Madhu,

Glad you got it working.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply