.
24 | Also place the PDFXEditCore.x86.dll and Resources.dat files into this folder too. After that you will be able to start and use the FullDemo.exe even if PDFXEditCore.x86.dll is not installed as COM-server.
--------------------------------------------------------------------------------
/CSharp/FullDemo/Resources/ico.msg.warning.24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/CSharp/FullDemo/Resources/ico.msg.warning.24.png
--------------------------------------------------------------------------------
/CSharp/FullDemo/RotatePagesForm.cs:
--------------------------------------------------------------------------------
1 | using PDFXEdit;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.ComponentModel;
5 | using System.Data;
6 | using System.Drawing;
7 | using System.Linq;
8 | using System.Text;
9 | using System.Threading.Tasks;
10 | using System.Windows.Forms;
11 |
12 | namespace FullDemo
13 | {
14 | public partial class RotatePagesForm : Form, IFormHelper
15 | {
16 | private MainFrm mainFrm = null;
17 |
18 |
19 | public RotatePagesForm(MainFrm mainFrm)
20 | {
21 | this.mainFrm = mainFrm;
22 |
23 | InitializeComponent();
24 |
25 | cbDirection.SelectedIndex = 0;
26 | cbOrientation.SelectedIndex = 0;
27 | cbPagesSubset.SelectedIndex = 0;
28 | }
29 |
30 | public bool IsValid()
31 | {
32 | return mainFrm.pdfCtl.HasDoc;
33 | }
34 |
35 | public void OnUpdate()
36 | {
37 | Enabled = IsValid();
38 | if (Enabled)
39 | {
40 | lbNumPages.Text = String.Format("total {0} pages", mainFrm.pdfCtl.Doc.CoreDoc.Pages.Count);
41 | }
42 | else
43 | {
44 | lbNumPages.Text = "";
45 | }
46 | }
47 |
48 | public void OnSerialize(IOperation op)
49 | {
50 | if (op == null)
51 | return;
52 |
53 | ICabNode opts = op.Params.Root["Options"];
54 |
55 | // pages range
56 | ICabNode pagesRange = opts["PagesRange"];
57 | RangeType rangeType = RangeType.RangeType_All;
58 | if (rbCurPage.Checked)
59 | rangeType = RangeType.RangeType_Current;
60 | else if (rbPages.Checked)
61 | rangeType = RangeType.RangeType_Exact;
62 | pagesRange["Type"].v = rangeType;
63 | pagesRange["Text"].v = tPages.Text;
64 |
65 | rangeType = RangeType.RangeType_All;
66 | if (cbPagesSubset.SelectedIndex == 1)
67 | rangeType = RangeType.RangeType_Odd;
68 | else if (cbPagesSubset.SelectedIndex != 0)
69 | rangeType = RangeType.RangeType_Even;
70 | pagesRange["Filter"].v = rangeType;
71 |
72 | opts["Direction"].v = cbDirection.SelectedIndex + 1; // 0 == 0 degrees thus +1
73 | opts["PagesOrientation"].v = cbOrientation.SelectedIndex; // SelectedIndex == value
74 | }
75 |
76 | private void rbPages_CheckedChanged(object sender, EventArgs e)
77 | {
78 | tPages.Focus();
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/CSharp/FullDemo/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
57 |
58 |
59 |
60 | true
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/CmdArgsParser.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using OptimizeImagesCompression.Properties;
3 |
4 | namespace OptimizeImagesCompression
5 | {
6 | static class CmdArgsParser
7 | {
8 | public static string GetCmdArgForParam(string param)
9 | {
10 | string[] allargsparams = Environment.GetCommandLineArgs();
11 | return ParseCmdArgs(allargsparams, param);
12 | }
13 |
14 | private static string ParseCmdArgs(string[] allargsparams, string param)
15 | {
16 | for (int i = 0; i < allargsparams.Length; i++)
17 | {
18 | if (allargsparams[i] == param)
19 | {
20 | if (String.IsNullOrEmpty(allargsparams[i + 1]))
21 | {
22 | Console.WriteLine(Resources.CmdArgsParser_ParseCmdArgs_arg_is_null_for_parametr_ + param + Resources.CmdArgsParser_ParseCmdArgs__terminating___);
23 | System.Diagnostics.Debug.WriteLine(Resources.CmdArgsParser_ParseCmdArgs_arg_is_null_for_parametr_ + param + Resources.CmdArgsParser_ParseCmdArgs__terminating___);
24 | Environment.Exit(0);
25 | }
26 | else
27 | {
28 | return allargsparams[i + 1];
29 | }
30 | }
31 | }
32 | Console.WriteLine(Resources.CmdArgsParser_ParseCmdArgs_arg_is_not_found_for_ + param + Resources.CmdArgsParser_ParseCmdArgs__terminating___);
33 | System.Diagnostics.Debug.WriteLine(Resources.CmdArgsParser_ParseCmdArgs_arg_is_not_found_for_ + param + Resources.CmdArgsParser_ParseCmdArgs__terminating___);
34 | Environment.Exit(0);
35 | return "ArgNotFound";
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/GetTestFiles.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 |
3 |
4 | namespace OptimizeImagesCompression
5 | {
6 | class GetTestFiles
7 | {
8 | public static string FolderWithTestFilesPath { get; set; }
9 | public static string[] GetAllFilesInFolder()
10 | {
11 | return Directory.GetFiles(FolderWithTestFilesPath);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/Logger.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using System.IO;
4 | using System.Text;
5 |
6 | namespace OptimizeImagesCompression
7 | {
8 | internal class Logger
9 | {
10 | public string Path;
11 | public FileStream Log;
12 |
13 | public void StartLogging()
14 | {
15 | Log = File.Open(Path, FileMode.Append);
16 | WriteDelimitrToLog(Log);
17 | WriteUnicodeString(DateTime.Now.ToString("h:mm:ss tt", CultureInfo.CurrentCulture) + " Start logger" + "\n");
18 | var newline = Encoding.ASCII.GetBytes(Environment.NewLine);
19 | Log.Write(newline, 0, newline.Length);
20 | }
21 |
22 | public void EndLogging()
23 | {
24 | Log.Close();
25 | }
26 |
27 | public void WriteUnicodeString(string info)
28 | {
29 | Console.WriteLine(info);
30 | var infoB = new UTF8Encoding(true).GetBytes(info);
31 | Log.Write(infoB, 0, infoB.Length);
32 | var newline = Encoding.ASCII.GetBytes(Environment.NewLine);
33 | Log.Write(newline, 0, newline.Length);
34 | }
35 |
36 | public void WriteDelimitrToLog(FileStream log)
37 | {
38 | var infoB =
39 | new UTF8Encoding(true).GetBytes("====================================================================" +
40 | "\n");
41 | log.Write(infoB, 0, infoB.Length);
42 | var newline = Encoding.ASCII.GetBytes(Environment.NewLine);
43 | log.Write(newline, 0, newline.Length);
44 | Console.WriteLine(newline.ToString());
45 | }
46 |
47 | public void WriteOperationToLog(OperationParameters operation)
48 | {
49 | WriteUnicodeString("Original file path = " + operation.FilePath);
50 | WriteUnicodeString("Params and output file name = " + operation.OutputFilePath);
51 | if (operation.ErrCodes == string.Empty)
52 | WriteUnicodeString("Error code = None");
53 | else
54 | WriteUnicodeString("Error code = " + operation.ErrCodes);
55 | WriteUnicodeString("Time of convertation = " + operation.Time);
56 | WriteUnicodeString("Params and output file name = " + operation.OutputFilePath);
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/OperationParameters.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 |
3 | namespace OptimizeImagesCompression
4 | {
5 | class OperationParameters
6 | {
7 | public string FilePath;
8 | public string OutputFilePath;
9 | public string CompMode;
10 | public int Method;
11 | public int Quality;
12 | public string ErrCodes = "";
13 | public long Time = 0;
14 | public long OptimazedFileSize = 0;
15 | public long OriginalFileSize = 0;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/OptimizeImagesCompression.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27428.2043
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OptimizeImagesCompression", "OptimizeImagesCompression.csproj", "{6D415137-3281-4CB9-9703-8670DBC26508}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x64 = Debug|x64
12 | Debug|x86 = Debug|x86
13 | Release|Any CPU = Release|Any CPU
14 | Release|x64 = Release|x64
15 | Release|x86 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {6D415137-3281-4CB9-9703-8670DBC26508}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {6D415137-3281-4CB9-9703-8670DBC26508}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {6D415137-3281-4CB9-9703-8670DBC26508}.Debug|x64.ActiveCfg = Debug|x64
21 | {6D415137-3281-4CB9-9703-8670DBC26508}.Debug|x64.Build.0 = Debug|x64
22 | {6D415137-3281-4CB9-9703-8670DBC26508}.Debug|x86.ActiveCfg = Debug|x86
23 | {6D415137-3281-4CB9-9703-8670DBC26508}.Debug|x86.Build.0 = Debug|x86
24 | {6D415137-3281-4CB9-9703-8670DBC26508}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {6D415137-3281-4CB9-9703-8670DBC26508}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {6D415137-3281-4CB9-9703-8670DBC26508}.Release|x64.ActiveCfg = Release|x64
27 | {6D415137-3281-4CB9-9703-8670DBC26508}.Release|x64.Build.0 = Release|x64
28 | {6D415137-3281-4CB9-9703-8670DBC26508}.Release|x86.ActiveCfg = Release|x86
29 | {6D415137-3281-4CB9-9703-8670DBC26508}.Release|x86.Build.0 = Release|x86
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {597424F0-253B-40AE-9DB1-FBC1BA69F77D}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/PDFXEDIT.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.IO;
4 | using PDFXEdit;
5 |
6 | namespace OptimizeImagesCompression
7 | {
8 | internal class Pdfxedit
9 | {
10 | public PXV_Inst MInst;
11 | public IPXC_Inst MPxcInst;
12 | public IAFS_Inst FsInst;
13 |
14 | public void InitPdfControl()
15 | {
16 | var pathToPdfOptimizer = Path.Combine(Environment.CurrentDirectory, "PDFOptimizer.pvp");
17 | MInst = new PXV_Inst();
18 | MInst.Init();
19 | MInst.StartLoadingPlugins();
20 | MInst.AddPluginFromFile(pathToPdfOptimizer);
21 | MInst.FinishLoadingPlugins();
22 | MPxcInst = MInst.GetExtension("PXC") as IPXC_Inst;
23 | if (MPxcInst != null) FsInst = (IAFS_Inst)MPxcInst.GetExtension("AFS");
24 | Debug.WriteLine("InitPdfControl() succesfull");
25 | }
26 |
27 | public void OptimizeDocument(OperationParameters operation)
28 | {
29 | try
30 | {
31 | var nId = MInst.Str2ID(@"op.document.optimize", false);
32 | var op = MInst.CreateOp(nId);
33 | var input = op.Params.Root["Input"];
34 | var impPath = FsInst.DefaultFileSys.StringToName(operation.FilePath);
35 | ICabNode options = op.Params.Root["Options"];
36 | ICabNode images = options["Images"];
37 | images["Enabled"].v = true;
38 | images["ReducedOnly"].v = false;
39 | ICabNode comp = images["Comp"];
40 | //set all methods to retain existing
41 | comp["Color.Method"].v = 0;
42 | comp["Grayscale.Method"].v = 0;
43 | comp["Indexed.Method"].v = 0;
44 | comp["Mono.Method"].v = 0;
45 | //set my params
46 | var opParam = operation.CompMode + "." + "Method";
47 | comp[opParam].v = operation.Method;
48 | if (((operation.CompMode == "Color") || (operation.CompMode == "Grayscale")) &&
49 | ((operation.Method == 1) || (operation.Method == 2)))
50 | comp[operation.CompMode + "." + "JPEGQuality"].v = operation.Quality;
51 | var resDoc = MPxcInst.OpenDocumentFrom(impPath, null);
52 | input.Add().v = resDoc;
53 | op.Do();
54 | resDoc.WriteToFile(operation.OutputFilePath);
55 | resDoc.Close();
56 | operation.ErrCodes = string.Empty;
57 | }
58 | catch (Exception e)
59 | {
60 | operation.ErrCodes = e.Message;
61 | Console.WriteLine(e.Message);
62 | }
63 | }
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("OptimizeImagesCompression")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("OptimizeImagesCompression")]
12 | [assembly: AssemblyCopyright("Copyright © 2016")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("6d415137-3281-4cb9-9703-8670dbc26508")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/CSharp/OptimizeImagesCompression/README.md:
--------------------------------------------------------------------------------
1 | ## Simple example-project that used operation "op.document.optimize"
2 |
3 | - [The operation allows to optimize the PDF document.](https://sdkhelp.tracker-software.com/view/PXV:op_document_optimize)
4 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/PreviewCtrl.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace PDFXEditCtrl
2 | {
3 | partial class PreviewCtrl
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.SuspendLayout();
32 | //
33 | // PreviewCtrl
34 | //
35 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
36 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
37 | this.Name = "PreviewCtrl";
38 | this.Size = new System.Drawing.Size(502, 495);
39 | this.Resize += new System.EventHandler(this.PreviewCtrl_Resize);
40 | this.ResumeLayout(false);
41 |
42 | }
43 |
44 | #endregion
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/PreviewCtrl.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 | using PDFXEdit;
11 |
12 | namespace PDFXEditCtrl
13 | {
14 | public partial class PreviewCtrl: UserControl
15 | {
16 | public IPXV_PagesPreviewCtl pagesPreviewCtl = null;
17 |
18 | private IPXV_Inst Inst = null;
19 | private IUIX_Obj parentBase = null;
20 | private PDFXEdit.IPXC_Document m_doc = null;
21 |
22 | public PreviewCtrl()
23 | {
24 | InitializeComponent();
25 | }
26 |
27 | public void LoadInst(IPXV_Inst inst)
28 | {
29 | Inst = inst;
30 |
31 | IUIX_Inst uiInst = (IUIX_Inst)Inst.GetExtension("UIX");
32 | Rectangle rcCl = ClientRectangle;
33 | tagRECT rc;
34 | rc.left = rcCl.Left;
35 | rc.top = rcCl.Top;
36 | rc.right = rcCl.Right;
37 | rc.bottom = rcCl.Bottom;
38 |
39 | UIX_CreateObjParams cp = new UIX_CreateObjParams();
40 | cp.nStdClass = (int)UIX_StdClasses.UIX_StdClass_Blank;
41 | cp.hWndParent = (uint)Handle.ToInt32();
42 | cp.rc = rc;
43 | parentBase = uiInst.CreateObj(ref cp);
44 |
45 | pagesPreviewCtl = Inst.CreatePagesPreviewCtl(parentBase, rc, "ctrl.01",
46 | (long)PXV_PagesPreviewStyleFlags.PXV_PagesPreviewStyle_NoHandTool | (long)PXV_PagesPreviewStyleFlags.PXV_PagesPreviewStyle_NonInertialHand | (long)PXV_PagesPreviewStyleFlags.PXV_PagesPreviewStyle_InteractiveLayout,
47 | (long)UIX_ScrollStyleFlags.UIX_ScrollStyle_Horz | (long)UIX_ScrollStyleFlags.UIX_ScrollStyle_Vert);
48 | }
49 | public void ReleaseInst()
50 | {
51 | m_doc?.Close();
52 | pagesPreviewCtl = null;
53 | Inst = null;
54 | }
55 |
56 | private void PreviewCtrl_Resize(object sender, EventArgs e)
57 | {
58 | Rectangle rcCl = ClientRectangle;
59 | tagRECT rc;
60 | rc.left = rcCl.Left;
61 | rc.top = rcCl.Top;
62 | rc.right = rcCl.Right;
63 | rc.bottom = rcCl.Bottom;
64 | parentBase?.set_Rect(ref rc);
65 | if (pagesPreviewCtl != null)
66 | {
67 | IUIX_Obj parent = pagesPreviewCtl.Obj.Parent;
68 | parent?.set_Rect(ref rc);
69 | }
70 | }
71 |
72 | public void OpenFile(string fileName)
73 | {
74 | int nID = Inst.Str2ID("op.openDoc", false);
75 | PDFXEdit.IOperation Op = Inst.CreateOp(nID);
76 | PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)Inst.GetExtension("AFS");
77 | PDFXEdit.IAFS_Name name = fsInst.DefaultFileSys.StringToName(fileName);
78 | var input = Op.Params.Root["Input"];
79 | input.v = name;
80 | PDFXEdit.ICabNode options = Op.Params.Root["Options"];
81 | options["NativeOnly"].v = true;
82 | Op.Do();
83 |
84 | m_doc?.Close();
85 | m_doc = null;
86 | m_doc = (PDFXEdit.IPXC_Document)Op.Params.Root["Output"].v;
87 | OpenFile(m_doc);
88 | }
89 |
90 | public void OpenFile(PDFXEdit.IPXC_Document doc)
91 | {
92 | //Opening document in the given main Frame
93 | pagesPreviewCtl.Doc = doc;
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/PreviewCtrl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/CSharp/PreviewCtrl/PreviewCtrl.png
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/PreviewCtrl.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.2.32516.85
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PreviewCtrl", "PreviewCtrl.csproj", "{31716E5D-14D9-4635-8FD5-F2DE3527F58F}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x64 = Debug|x64
12 | Debug|x86 = Debug|x86
13 | Release|Any CPU = Release|Any CPU
14 | Release|x64 = Release|x64
15 | Release|x86 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Debug|x64.ActiveCfg = Debug|x64
21 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Debug|x64.Build.0 = Debug|x64
22 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Debug|x86.ActiveCfg = Debug|x86
23 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Debug|x86.Build.0 = Debug|x86
24 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Release|x64.ActiveCfg = Release|x64
27 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Release|x64.Build.0 = Release|x64
28 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Release|x86.ActiveCfg = Release|x86
29 | {31716E5D-14D9-4635-8FD5-F2DE3527F58F}.Release|x86.Build.0 = Release|x86
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {8FEBCC2C-3C1B-4928-A48E-B60A3F2E7DF7}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace PreviewCtrl
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new Form1());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("PreviewCtrl")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("PreviewCtrl")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("31716e5d-14d9-4635-8fd5-f2de3527f58f")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PreviewCtrl.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PreviewCtrl.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PreviewCtrl.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/README.md:
--------------------------------------------------------------------------------
1 | ## Simple example-project that simple view PDF file
2 |
3 | Used [CreatePagesPreviewCtl](https://sdkhelp.tracker-software.com/view/PXV:IPXV_Inst_CreatePagesPreviewCtl)
4 |
5 | 
6 |
--------------------------------------------------------------------------------
/CSharp/PreviewCtrl/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
53 |
54 |
55 | true
56 |
57 |
58 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace RoboReader
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new Form1());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("RoboReader")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("RoboReader")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("3083dd98-4d5d-4f9d-bebf-24436fe578bb")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace RoboReader.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RoboReader.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace RoboReader.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/README.md:
--------------------------------------------------------------------------------
1 | ## Simple example-project that reads and highlights text in pdf
2 | 
3 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/RoboReader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/CSharp/RoboReader/RoboReader.gif
--------------------------------------------------------------------------------
/CSharp/RoboReader/RoboReader.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27428.2043
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RoboReader", "RoboReader.csproj", "{3083DD98-4D5D-4F9D-BEBF-24436FE578BB}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x64 = Debug|x64
12 | Debug|x86 = Debug|x86
13 | Release|Any CPU = Release|Any CPU
14 | Release|x64 = Release|x64
15 | Release|x86 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Debug|x64.ActiveCfg = Debug|x64
21 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Debug|x64.Build.0 = Debug|x64
22 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Debug|x86.ActiveCfg = Debug|x86
23 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Debug|x86.Build.0 = Debug|x86
24 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Release|x64.ActiveCfg = Release|x64
27 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Release|x64.Build.0 = Release|x64
28 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Release|x86.ActiveCfg = Release|x86
29 | {3083DD98-4D5D-4F9D-BEBF-24436FE578BB}.Release|x86.Build.0 = Release|x86
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {335EFC4B-FAC9-4DD4-A4F5-6C7E010E700A}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/CSharp/RoboReader/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
57 |
58 |
59 |
60 | true
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace TiffExtractor
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [MTAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new Form1());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("TiffExtractor")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("TiffExtractor")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("9bd16c52-45fe-47d4-9e15-720c4ae395a2")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace TiffExtractor.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TiffExtractor.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace TiffExtractor.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/README.md:
--------------------------------------------------------------------------------
1 | ## Simple example-project that used operation "op.document.exportToImages" from multithreading
2 |
3 | [The operation allows to export document pages to the image files with given DPI, zoom factor and specified format.](https://sdkhelp.tracker-software.com/view/PXV:op_document_exportToImages)
4 |
5 | 
6 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/TiffExtractor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/CSharp/TiffExtractor/TiffExtractor.png
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/TiffExtractor.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27703.2035
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TiffExtractor", "TiffExtractor.csproj", "{C366CA07-3F2C-45B5-AF67-31C9D0901BC5}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x64 = Debug|x64
12 | Debug|x86 = Debug|x86
13 | Release|Any CPU = Release|Any CPU
14 | Release|x64 = Release|x64
15 | Release|x86 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Debug|x64.ActiveCfg = Debug|x64
21 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Debug|x64.Build.0 = Debug|x64
22 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Debug|x86.ActiveCfg = Debug|x86
23 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Debug|x86.Build.0 = Debug|x86
24 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Release|x64.ActiveCfg = Release|x64
27 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Release|x64.Build.0 = Release|x64
28 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Release|x86.ActiveCfg = Release|x86
29 | {C366CA07-3F2C-45B5-AF67-31C9D0901BC5}.Release|x86.Build.0 = Release|x86
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {54E574A1-A1BC-4B03-8707-1EC6A35B0F9F}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/CSharp/TiffExtractor/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
53 |
54 |
55 | true
56 |
57 |
58 |
59 |
60 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/Delphi/CreatePagesPreviewCtl/CreatePagesPreviewCtl.dpr:
--------------------------------------------------------------------------------
1 | program CreatePagesPreviewCtl;
2 |
3 | uses
4 | Vcl.Forms,
5 | uMain in 'uMain.pas' {frmMain},
6 | Unit2 in 'Unit2.pas' {Form2};
7 |
8 | {$R *.res}
9 |
10 | begin
11 | Application.Initialize;
12 | Application.MainFormOnTaskbar := True;
13 | Application.CreateForm(TfrmMain, frmMain);
14 | Application.Run;
15 | end.
16 |
--------------------------------------------------------------------------------
/Delphi/CreatePagesPreviewCtl/CreatePagesPreviewCtl.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/Delphi/CreatePagesPreviewCtl/CreatePagesPreviewCtl.res
--------------------------------------------------------------------------------
/Delphi/CreatePagesPreviewCtl/Unit2.dfm:
--------------------------------------------------------------------------------
1 | object Form2: TForm2
2 | Left = 0
3 | Top = 0
4 | Caption = 'Form2'
5 | ClientHeight = 361
6 | ClientWidth = 537
7 | Color = clBtnFace
8 | Font.Charset = DEFAULT_CHARSET
9 | Font.Color = clWindowText
10 | Font.Height = -11
11 | Font.Name = 'Tahoma'
12 | Font.Style = []
13 | OldCreateOrder = False
14 | OnResize = FormResize
15 | PixelsPerInch = 96
16 | TextHeight = 13
17 | end
18 |
--------------------------------------------------------------------------------
/Delphi/CreatePagesPreviewCtl/Unit2.pas:
--------------------------------------------------------------------------------
1 | unit Unit2;
2 |
3 | interface
4 |
5 | uses
6 | Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
7 | Vcl.Controls, Vcl.Forms, Vcl.Dialogs, PDFXEdit_TLB, ActiveX;
8 |
9 | type
10 | TForm2 = class(TForm)
11 | procedure FormResize(Sender: TObject);
12 | private
13 | FInst: IPXV_Inst;
14 | FDoc: IPXC_Document;
15 | public
16 | { Public declarations }
17 | ppc : IPXV_PagesPreviewCtl;
18 | container : IUIX_Obj;
19 |
20 | procedure LoadInst(inst: IPXV_Inst; InstUIX: IUIX_Inst);
21 | procedure OpenDocument(fileName: string); overload;
22 | procedure OpenDocument(doc: IPXC_Document); overload;
23 | end;
24 |
25 | var
26 | Form2: TForm2;
27 |
28 | implementation
29 |
30 | {$R *.dfm}
31 |
32 | procedure TForm2.loadinst(inst: IPXV_Inst; InstUIX: IUIX_Inst);
33 | var
34 | cop : UIX_CreateObjParams;
35 | rc: tagRECT;
36 | begin
37 | FInst := inst;
38 | rc.left := ClientRect.Left;
39 | rc.right := ClientRect.Right;
40 | rc.top := ClientRect.Top;
41 | rc.bottom := ClientRect.Bottom;
42 |
43 | ZeroMemory(@cop, SizeOf(UIX_CreateObjParams));
44 | cop.hWndParent := Handle;
45 | cop.nStdClass := UIX_StdClass_Blank;
46 | //cop.nCreateFlags := UIX_CreateObj_Windowed;
47 | //cop.nWndStyle := WS_CHILD OR WS_CLIPCHILDREN OR WS_CLIPSIBLINGS;
48 | cop.rc := rc;
49 |
50 | container := InstUIX.CreateObj(cop);
51 | ppc := Inst.CreatePagesPreviewCtl(container, rc, 'preview',
52 | PXV_PagesPreviewStyle_NoHandTool or PXV_PagesPreviewStyle_NonInertialHand or PXV_PagesPreviewStyle_InteractiveLayout,
53 | UIX_ScrollStyle_Horz or UIX_ScrollStyle_Vert, false);
54 | end;
55 |
56 | procedure TForm2.OpenDocument(doc: IPXC_Document);
57 | begin
58 | ppc.Doc := doc;
59 | end;
60 |
61 | procedure TForm2.OpenDocument(fileName: string);
62 | var
63 | nID: Integer;
64 | Op: IOperation;
65 | fsInst: IAFS_Inst;
66 | begin
67 | nID := FInst.Str2ID('op.openDoc', false);
68 | Op := FInst.CreateOp(nID);
69 | fsInst := FInst.GetExtension('AFS') as IAFS_Inst;
70 | Op.Params.Root['Input'].v := fsInst.DefaultFileSys.StringToName(PWChar(fileName), 0, nil);
71 | Op.Params.Root['Options.NativeOnly'].v := true;
72 | Op.Do_(0);
73 |
74 | if (FDoc <> nil) then
75 | begin
76 | FDoc.Close(0);
77 | FDoc := nil;
78 | end;
79 |
80 | FDoc := Op.Params.Root['Output'].Unknown as IPXC_Document;
81 | OpenDocument(FDoc);
82 | end;
83 |
84 | procedure TForm2.FormResize(Sender: TObject);
85 | var
86 | rc: tagRECT;
87 | begin
88 | rc.left := ClientRect.Left;
89 | rc.right := ClientRect.Right;
90 | rc.top := ClientRect.Top;
91 | rc.bottom := ClientRect.Bottom;
92 | if ppc <> nil then
93 | begin
94 | container.Set_Rect(@rc);
95 | ppc.Obj.Parent.Set_Rect(@rc);
96 | end;
97 | end;
98 |
99 |
100 |
101 | end.
102 |
--------------------------------------------------------------------------------
/Delphi/CreatePagesPreviewCtl/uMain.dfm:
--------------------------------------------------------------------------------
1 | object frmMain: TfrmMain
2 | Left = 0
3 | Top = 0
4 | Caption = 'frmMain'
5 | ClientHeight = 361
6 | ClientWidth = 537
7 | Color = clBtnFace
8 | Font.Charset = DEFAULT_CHARSET
9 | Font.Color = clWindowText
10 | Font.Height = -11
11 | Font.Name = 'Tahoma'
12 | Font.Style = []
13 | OldCreateOrder = False
14 | OnCreate = FormCreate
15 | OnDestroy = FormDestroy
16 | PixelsPerInch = 96
17 | TextHeight = 13
18 | object Button1: TButton
19 | Left = 8
20 | Top = 8
21 | Width = 75
22 | Height = 25
23 | Caption = 'Button1'
24 | TabOrder = 0
25 | OnClick = Button1Click
26 | end
27 | object FileOpenDialog1: TFileOpenDialog
28 | FavoriteLinks = <>
29 | FileTypes = <>
30 | Options = []
31 | Left = 56
32 | Top = 88
33 | end
34 | end
35 |
--------------------------------------------------------------------------------
/Delphi/CreatePagesPreviewCtl/uMain.pas:
--------------------------------------------------------------------------------
1 | unit uMain;
2 |
3 | interface
4 |
5 | uses
6 | Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
7 | Vcl.Controls, Vcl.Forms, Vcl.Dialogs, PDFXEdit_TLB, ActiveX, Vcl.StdCtrls;
8 |
9 | type
10 | TfrmMain = class(TForm)
11 | Button1: TButton;
12 | FileOpenDialog1: TFileOpenDialog;
13 | procedure FormCreate(Sender: TObject);
14 | procedure FormDestroy(Sender: TObject);
15 | procedure Button1Click(Sender: TObject);
16 | private
17 | Inst: PXV_Inst;
18 | InstUIX: IUIX_Inst;
19 | //InstAUX: IAUX_Inst;
20 | public
21 | { Public declarations }
22 | end;
23 |
24 | var
25 | frmMain: tfrmmain;
26 |
27 | implementation
28 |
29 | {$R *.dfm}
30 |
31 | uses Unit2;
32 |
33 | procedure TfrmMain.Button1Click(Sender: TObject);
34 | var
35 | f2 : TForm2;
36 | begin
37 | if (FileOpenDialog1.Execute) then
38 | begin
39 | f2 := TForm2.Create(Application);
40 | f2.LoadInst(Inst, InstUIX);
41 | f2.OpenDocument(FileOpenDialog1.FileName);
42 | f2.Show;
43 | end;
44 | end;
45 |
46 | procedure TfrmMain.FormCreate(Sender: TObject);
47 | begin
48 | Inst := CoPXV_Inst.Create();
49 | Inst.Init(nil, '', nil, nil, nil, 0, nil);
50 | InstUIX := Inst.GetExtension('UIX')as IUIX_Inst;
51 | end;
52 |
53 | procedure TfrmMain.FormDestroy(Sender: TObject);
54 | begin
55 | InstUIX := nil;
56 | Inst.Shutdown(0);
57 | end;
58 |
59 | end.
60 |
--------------------------------------------------------------------------------
/Delphi/SampleCreatePXVInst/SampleCreatePXVInst.dpr:
--------------------------------------------------------------------------------
1 | program SampleCreatePXVInst;
2 |
3 | uses
4 | Vcl.Forms,
5 | SampleMain in 'SampleMain.pas' {Form1};
6 |
7 | {$R *.res}
8 |
9 | begin
10 | Application.Initialize;
11 | Application.MainFormOnTaskbar := True;
12 | Application.CreateForm(TForm1, Form1);
13 | Application.Run;
14 | end.
15 |
--------------------------------------------------------------------------------
/Delphi/SampleCreatePXVInst/SampleCreatePXVInst.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/Delphi/SampleCreatePXVInst/SampleCreatePXVInst.res
--------------------------------------------------------------------------------
/Delphi/SampleCreatePXVInst/SampleMain.dfm:
--------------------------------------------------------------------------------
1 | object Form1: TForm1
2 | Left = 0
3 | Top = 0
4 | Caption = 'Form1'
5 | ClientHeight = 361
6 | ClientWidth = 537
7 | Color = clBtnFace
8 | Font.Charset = DEFAULT_CHARSET
9 | Font.Color = clWindowText
10 | Font.Height = -11
11 | Font.Name = 'Tahoma'
12 | Font.Style = []
13 | OldCreateOrder = False
14 | OnCreate = FormCreate
15 | OnDestroy = FormDestroy
16 | PixelsPerInch = 96
17 | TextHeight = 13
18 | object Label1: TLabel
19 | Left = 160
20 | Top = 56
21 | Width = 177
22 | Height = 97
23 | Caption = 'Label1'
24 | Font.Charset = DEFAULT_CHARSET
25 | Font.Color = clWindowText
26 | Font.Height = -21
27 | Font.Name = 'Tahoma'
28 | Font.Style = []
29 | ParentFont = False
30 | end
31 | end
32 |
--------------------------------------------------------------------------------
/Delphi/SampleCreatePXVInst/SampleMain.pas:
--------------------------------------------------------------------------------
1 | unit SampleMain;
2 |
3 | interface
4 |
5 | uses
6 | Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
7 | Vcl.Controls, Vcl.Forms, Vcl.Dialogs, PDFXEdit_TLB, Vcl.StdCtrls, ActiveX;
8 |
9 | type
10 | TForm1 = class(TForm)
11 | Label1: TLabel;
12 | procedure FormCreate(Sender: TObject);
13 | procedure FormDestroy(Sender: TObject);
14 | private
15 | { Private declarations }
16 | FInst: PDFXEdit_TLB.IPXV_Inst;
17 | public
18 | { Public declarations }
19 | end;
20 |
21 | var
22 | Form1: TForm1;
23 |
24 | implementation
25 |
26 | {$R *.dfm}
27 |
28 | { TForm1 }
29 |
30 |
31 |
32 | procedure TForm1.FormCreate(Sender: TObject);
33 | begin
34 | FInst := CoPXV_Inst.Create();
35 | ////uses PDFXEdit_TLB
36 | FInst.Init(nil, '', nil, nil, nil, 0, nil);
37 | //uses ActiveX
38 | //CoCreateInstance(CLASS_PXV_Inst, nil, CLSCTX_INPROC_SERVER, IPXV_Inst, FInst);
39 | Label1.Caption := FInst.GetLocalStr2(42);
40 | end;
41 |
42 | procedure TForm1.FormDestroy(Sender: TObject);
43 | begin
44 | FInst.Shutdown(0);
45 | end;
46 |
47 | end.
48 |
--------------------------------------------------------------------------------
/Delphi/SamplePDFEdit/SamplePDFEdit.dpr:
--------------------------------------------------------------------------------
1 | program SamplePDFEdit;
2 |
3 | uses
4 | Vcl.Forms,
5 | untMain in 'untMain.pas' {Form1},
6 | PDFInst in 'PDFInst.pas',
7 | about in 'about.pas' {AboutBox};
8 |
9 | {$R *.res}
10 |
11 |
12 | begin
13 | Application.Initialize;
14 | Application.MainFormOnTaskbar := True;
15 | Application.CreateForm(TForm1, Form1);
16 | Application.CreateForm(TAboutBox, AboutBox);
17 | Application.Run;
18 | end.
19 |
--------------------------------------------------------------------------------
/Delphi/SamplePDFEdit/SamplePDFEdit.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/Delphi/SamplePDFEdit/SamplePDFEdit.res
--------------------------------------------------------------------------------
/Delphi/SamplePDFEdit/about.dfm:
--------------------------------------------------------------------------------
1 | object AboutBox: TAboutBox
2 | Left = 200
3 | Top = 108
4 | BorderStyle = bsDialog
5 | Caption = 'About'
6 | ClientHeight = 213
7 | ClientWidth = 298
8 | Color = clBtnFace
9 | Font.Charset = DEFAULT_CHARSET
10 | Font.Color = clWindowText
11 | Font.Height = -11
12 | Font.Name = 'MS Sans Serif'
13 | Font.Style = []
14 | OldCreateOrder = True
15 | Position = poMainFormCenter
16 | PixelsPerInch = 96
17 | TextHeight = 13
18 | object Panel1: TPanel
19 | Left = 8
20 | Top = 8
21 | Width = 281
22 | Height = 161
23 | BevelInner = bvRaised
24 | BevelOuter = bvLowered
25 | ParentColor = True
26 | TabOrder = 0
27 | object ProgramIcon: TImage
28 | Left = 8
29 | Top = 8
30 | Width = 65
31 | Height = 57
32 | Picture.Data = {
33 | 07544269746D617076020000424D760200000000000076000000280000002000
34 | 0000200000000100040000000000000200000000000000000000100000000000
35 | 000000000000000080000080000000808000800000008000800080800000C0C0
36 | C000808080000000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFF
37 | FF00000000000000000000000000000000000EE8787878EEEEEEE03F30878EEE
38 | EEE00EE8787878EEEEEEE03F30878EEEEEE00EE8787878EEEEEEE03F30878EEE
39 | EEE00EE8787878EEEEEEE03F30878EEEEEE00887787877788888803F3088787E
40 | EEE00788787878878887803F3088887EEEE00788887888878887803F3088887E
41 | EEE00877888887788888703F308887EEEEE00888777778888888037883088888
42 | 8EE007777777777777703787883087777EE00888888888888803787FF8830888
43 | 888008888888888880378777778830888880077777777788037873F3F3F87808
44 | 88E00888888888803787FFFFFFFF8830EEE00887777778800001111111111100
45 | EEE00888888888888899B999B99999EEEEE00888888888888899B9B99BB9B9EE
46 | EEE0088888888888899BB9BB99BB99EEEEE0078888888888899B999B999999EE
47 | EEE0087788888778899B9B9BB9BB99EEEEE00888778778888E9B9B9BB9999EEE
48 | EEE0088888788888EE9B99B9BB9BEEEEEEE00EE8888888EEEEE999B9999EEEEE
49 | EEE00EEEE888EEEEEEEE99BB999EEEEEEEE00EEEEE8EEEEEEEEEE999B9EEEEEE
50 | EEE00EEEEE8EEEEEEEEEEEE999EEEEEEEEE00EEEEE8EEEEEEEEEEEEE99EEEEEE
51 | EEE00EEEEE8EEEEEEEEEEEEE9EEEEEEEEEE00EEEEE8EEEEEEEEEEEEEEEEEEEEE
52 | EEE00EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE00000000000000000000000000000
53 | 0000}
54 | Stretch = True
55 | IsControl = True
56 | end
57 | object ProductName: TLabel
58 | Left = 88
59 | Top = 16
60 | Width = 177
61 | Height = 13
62 | Caption = 'Sample PDFEdit'
63 | IsControl = True
64 | end
65 | object Version: TLabel
66 | Left = 88
67 | Top = 40
68 | Width = 24
69 | Height = 13
70 | Caption = '1.0.0'
71 | IsControl = True
72 | end
73 | object Copyright: TLabel
74 | Left = 8
75 | Top = 80
76 | Width = 71
77 | Height = 13
78 | Caption = 'Copyright 2016'
79 | IsControl = True
80 | end
81 | object Comments: TLabel
82 | Left = 8
83 | Top = 104
84 | Width = 257
85 | Height = 39
86 | Caption = 'Delphi Examples for PDF-XChangeEditCore SDK '
87 | WordWrap = True
88 | IsControl = True
89 | end
90 | end
91 | object OKButton: TButton
92 | Left = 111
93 | Top = 180
94 | Width = 75
95 | Height = 25
96 | Caption = 'OK'
97 | Default = True
98 | ModalResult = 1
99 | TabOrder = 1
100 | OnClick = OKButtonClick
101 | end
102 | end
103 |
--------------------------------------------------------------------------------
/Delphi/SamplePDFEdit/about.pas:
--------------------------------------------------------------------------------
1 | unit About;
2 |
3 | interface
4 |
5 | uses WinApi.Windows, System.SysUtils, System.Classes, Vcl.Graphics,
6 | Vcl.Forms, Vcl.Controls, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls;
7 |
8 | type
9 | TAboutBox = class(TForm)
10 | Panel1: TPanel;
11 | ProgramIcon: TImage;
12 | ProductName: TLabel;
13 | Version: TLabel;
14 | Copyright: TLabel;
15 | Comments: TLabel;
16 | OKButton: TButton;
17 | procedure OKButtonClick(Sender: TObject);
18 | private
19 | { Private declarations }
20 | public
21 | { Public declarations }
22 | end;
23 |
24 | var
25 | AboutBox: TAboutBox;
26 |
27 | implementation
28 |
29 | {$R *.dfm}
30 |
31 | procedure TAboutBox.OKButtonClick(Sender: TObject);
32 | begin
33 | Close;
34 | end;
35 |
36 | end.
37 |
38 |
--------------------------------------------------------------------------------
/Delphi/SamplePDFEditGoto/Project1.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/Delphi/SamplePDFEditGoto/Project1.res
--------------------------------------------------------------------------------
/Delphi/SamplePDFEditGoto/SamplePDFEditGoto.dpr:
--------------------------------------------------------------------------------
1 | program SamplePDFEditGoto;
2 |
3 | uses
4 | Vcl.Forms,
5 | Unit1 in 'Unit1.pas' {Form1};
6 |
7 | {$R *.res}
8 |
9 | begin
10 | Application.Initialize;
11 | Application.MainFormOnTaskbar := True;
12 | Application.CreateForm(TForm1, Form1);
13 | Application.Run;
14 | end.
15 |
--------------------------------------------------------------------------------
/Delphi/SamplePDFEditGoto/SamplePDFEditGoto.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pdf-xchange/PDFEditorSDKExamples/22e452a335ca35ce53203b1dcd05801e1cc7695f/Delphi/SamplePDFEditGoto/SamplePDFEditGoto.res
--------------------------------------------------------------------------------
/Delphi/SamplePDFEditGoto/Unit1.dfm:
--------------------------------------------------------------------------------
1 | object Form1: TForm1
2 | Left = 0
3 | Top = 0
4 | Caption = 'Form1'
5 | ClientHeight = 360
6 | ClientWidth = 582
7 | Color = clBtnFace
8 | Font.Charset = DEFAULT_CHARSET
9 | Font.Color = clWindowText
10 | Font.Height = -11
11 | Font.Name = 'Tahoma'
12 | Font.Style = []
13 | OldCreateOrder = False
14 | PixelsPerInch = 96
15 | TextHeight = 13
16 | object ToolBar1: TToolBar
17 | Left = 0
18 | Top = 0
19 | Width = 582
20 | Height = 29
21 | ButtonHeight = 21
22 | ButtonWidth = 52
23 | Caption = 'ToolBar1'
24 | ShowCaptions = True
25 | TabOrder = 0
26 | object ToolButton2: TToolButton
27 | Left = 0
28 | Top = 0
29 | Caption = 'Open File'
30 | ImageIndex = 1
31 | OnClick = ToolButton2Click
32 | end
33 | object ToolButton1: TToolButton
34 | Left = 52
35 | Top = 0
36 | Caption = 'Goto'
37 | ImageIndex = 0
38 | OnClick = ToolButton1Click
39 | end
40 | end
41 | object PXV_Control1: TPXV_Control
42 | Left = 0
43 | Top = 29
44 | Width = 582
45 | Height = 331
46 | Align = alClient
47 | TabOrder = 1
48 | ExplicitLeft = 120
49 | ExplicitTop = 112
50 | ExplicitWidth = 192
51 | ExplicitHeight = 192
52 | ControlData = {
53 | 000E0000273C0000362200000800000000001300000000000B00FFFF0B00FFFF
54 | 0B0000000B000000130003000000}
55 | end
56 | object FileOpenDialog1: TFileOpenDialog
57 | FavoriteLinks = <>
58 | FileTypes = <>
59 | Options = []
60 | Left = 24
61 | Top = 56
62 | end
63 | end
64 |
--------------------------------------------------------------------------------
/Delphi/SamplePDFEditGoto/Unit1.pas:
--------------------------------------------------------------------------------
1 | unit Unit1;
2 |
3 | interface
4 |
5 | uses
6 | Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
7 | Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ToolWin, Vcl.OleCtrls,
8 | PDFXEdit_TLB;
9 |
10 | type
11 | TForm1 = class(TForm)
12 | ToolBar1: TToolBar;
13 | ToolButton1: TToolButton;
14 | ToolButton2: TToolButton;
15 | FileOpenDialog1: TFileOpenDialog;
16 | PXV_Control1: TPXV_Control;
17 | procedure ToolButton2Click(Sender: TObject);
18 | procedure ToolButton1Click(Sender: TObject);
19 | private
20 | { Private declarations }
21 | public
22 | { Public declarations }
23 | end;
24 |
25 | var
26 | Form1: TForm1;
27 |
28 | implementation
29 |
30 | {$R *.dfm}
31 |
32 | procedure TForm1.ToolButton1Click(Sender: TObject);
33 | const
34 | nPageNumber = 1;
35 | var
36 | APage: IPXC_Page;
37 | rc: PXC_Rect;
38 | dest: PXC_Destination;
39 | begin
40 | PXV_Control1.Doc.CoreDoc.Pages.Get_Item(nPageNumber, APage);
41 | APage.Get_Box(PDFXEdit_TLB.PBox_PageBox, rc);
42 | dest.nType := PDFXEdit_TLB.Dest_XYZ;
43 | dest.dValues[0] := rc.left + 10;
44 | dest.dValues[1] := rc.top - 100;
45 | dest.nNullFlags := 12;
46 | dest.nPageNum := nPageNumber;
47 | PXV_Control1.GoToDestination(dest, nPageNumber);
48 | end;
49 |
50 | procedure TForm1.ToolButton2Click(Sender: TObject);
51 | var
52 | i: integer;
53 | begin
54 | if (FileOpenDialog1.Execute) then
55 | Begin
56 | for i := 0 to FileOpenDialog1.Files.Count - 1 do
57 | PXV_Control1.OpenDocFromPath(FileOpenDialog1.Files[i], nil);
58 | End;
59 | end;
60 |
61 | end.
62 |
--------------------------------------------------------------------------------
/Java/PDFEditSDKSimple/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Java/PDFEditSDKSimple/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | PDFEditSDKSimple
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Java/PDFEditSDKSimple/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: PDFEditSDK-Java
4 | Bundle-SymbolicName: PDFEditSDKSimple
5 | Bundle-Version: 1.0.0.qualifier
6 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8
7 |
--------------------------------------------------------------------------------
/Java/PDFEditSDKSimple/build.properties:
--------------------------------------------------------------------------------
1 | source.. = src/
2 | output.. = bin/
3 | bin.includes = plugin.xml,\
4 | META-INF/,\
5 | .
6 |
--------------------------------------------------------------------------------
/Java/PDFEditSDKSimple/src/PDFEditSDKSimple.java:
--------------------------------------------------------------------------------
1 |
2 | import org.eclipse.swt.SWT;
3 | import org.eclipse.swt.layout.FillLayout;
4 | import org.eclipse.swt.ole.win32.OLE;
5 | import org.eclipse.swt.ole.win32.OleAutomation;
6 | import org.eclipse.swt.ole.win32.OleControlSite;
7 | import org.eclipse.swt.ole.win32.OleFrame;
8 | import org.eclipse.swt.ole.win32.Variant;
9 | import org.eclipse.swt.widgets.Display;
10 | import org.eclipse.swt.widgets.Shell;
11 |
12 | public class PDFEditSDKSimple {
13 |
14 | public static void main(String[] args) {
15 | final Display display = new Display();
16 | Shell shell = new Shell(display);
17 | shell.setSize(600, 400);
18 | shell.setLayout(new FillLayout());
19 |
20 | OleControlSite oleControlSite;
21 | OleFrame oleFrame = new OleFrame(shell, SWT.NONE);
22 |
23 | oleControlSite = new OleControlSite(oleFrame, SWT.NONE, "PDFXEdit.PXV_Control.1");
24 | oleControlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
25 | shell.open();
26 |
27 | OleAutomation viewer = new OleAutomation(oleControlSite);
28 |
29 | try {
30 | // prepare parameters Inst
31 | int[] opPropIDs = viewer.getIDsOfNames(new String[] {"Inst"});
32 | Variant resInst = viewer.getProperty(opPropIDs[0]);
33 | OleAutomation gInst = resInst.getAutomation();
34 | // prepare parameters CreateOpenDocParams
35 | int[] opInstIDs = gInst.getIDsOfNames(new String[] {"CreateOpenDocParams"});
36 | Variant resCab = gInst.invoke(opInstIDs[0]);
37 | OleAutomation cab1 = resCab.getAutomation();
38 | // lookup method to open document --> returns null, no such method can be found
39 | int[] opIDs = viewer.getIDsOfNames(new String[] { "OpenDocFromPath", "sSrcPath", "pOpenParams"});
40 | // prepare parameters
41 | Variant[] address = new Variant[] { new Variant("http://www.dpconline.org/docs/reports/dpctw08-02.pdf"), new Variant(cab1)};
42 | // invoke method
43 | viewer.invoke(opIDs[0], address, new int[] { opIDs[1], opIDs[2] });
44 |
45 | /* int[] opIDs = viewer.getIDsOfNames(new String[] { "CreateNewBlankDoc", "nPageWidth", "nPageHeight", "nPagesCount", "nPageRotation"});
46 | // prepare parameters
47 | Variant[] address = new Variant[] { new Variant((double)600.0), new Variant((double)800.0), new Variant((long)2), new Variant((long)0)};
48 | // invoke method
49 | //Variant res = viewer.invoke(opIDs[0], address, new int[] { opIDs[1], opIDs[2], opIDs[3], opIDs[4]});
50 | Variant res = viewer.invoke(opIDs[0], address);
51 | */
52 | System.out.println(viewer.getName(opIDs[0]));
53 | System.out.println(viewer.getLastError());
54 | System.out.println("Hello, World!");
55 | }
56 | catch(Exception e)
57 | {
58 | System.out.println("eRROR");
59 | }
60 |
61 | while (!shell.isDisposed()) {
62 | if (!display.readAndDispatch())
63 | display.sleep();
64 | }
65 | viewer.dispose();
66 | display.dispose();
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/PDFEditorSDKExamples.x64/README.md:
--------------------------------------------------------------------------------
1 | # PDFCoreSDKExamples
2 | Examples for PDF-XChange Editor SDK
3 |
4 | Directoru output x64 build file
--------------------------------------------------------------------------------
/PDFEditorSDKExamples.x86/README.md:
--------------------------------------------------------------------------------
1 | # PDFCoreSDKExamples
2 | Examples for PDF-XChange Editor SDK
3 |
4 | Directoru output x86 build file
--------------------------------------------------------------------------------
/Python/DemoApp/DemoApp.py:
--------------------------------------------------------------------------------
1 | import os
2 | import sys
3 | import comtypes
4 | from ctypes import c_ulong, byref
5 | from comtypes.client import GetModule, CreateObject
6 | path = os.environ['PXCE_BIN32D_PATH']
7 | # pathDLL = path + "\\PDFXEditCore.x86.dll"
8 | # generate wrapper code for the type library, this needs
9 | # to be done only once (but also each time the IDL file changes)
10 | GetModule(path + "\\PDFXEditCore.x86.dll");
11 |
12 | import comtypes.gen.PDFXEdit as PDFXEdit
13 |
14 | g_Inst = CreateObject("PDFXEdit.PXV_Inst", None, None, PDFXEdit.IPXV_Inst)
15 | g_Inst.Init(None, "Key", None, None, None, 0, None);
16 | g_Inst.StartLoadingPlugins();
17 | g_Inst.AddPluginFromFile(path + "\\Plugins.x86\\ConvertPDF.pvp");
18 | g_Inst.FinishLoadingPlugins();
19 |
20 | pxcInst = g_Inst.GetExtension("PXC").QueryInterface(PDFXEdit.IPXC_Inst);
21 | afsInst = g_Inst.GetExtension("AFS").QueryInterface(PDFXEdit.IAFS_Inst);
22 | pDoc = None;
23 | try:
24 | cnv = None;
25 | for i in range(0, g_Inst.ExportConvertersCount):
26 | if (g_Inst.ExportConverter[i].ID == "conv.exp.office.docx"):
27 | cnv = g_Inst.ExportConverter[i];
28 |
29 | pDoc = pxcInst.OpenDocumentFromFile ("D:\\README11.pdf", None, None, 0, 0);
30 |
31 | fs = afsInst.DefaultFileSys;
32 | pName = fs.StringToName("D:\\TestFile_res.docx", 0, None);
33 | fileNew = fs.OpenFile(pName, PDFXEdit.AFS_OpenFile_CreateAlways| PDFXEdit.AFS_OpenFile_Read | PDFXEdit.AFS_OpenFile_ShareRead, None, None);
34 | cabNew = g_Inst.GetFormatConverterParams(False, u"conv.exp.office.docx");
35 | cnv.Convert(g_Inst, pDoc, fileNew, 0, cabNew, None, 0, None, None);
36 | except comtypes.COMError as e:
37 | print(e.text)
38 | pDoc.Close()
39 | g_Inst.Shutdown(0)
40 |
--------------------------------------------------------------------------------
/Python/DemoApp/DemoApp.pyproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | 2.0
6 | 1b2c7682-e220-472c-b741-bd71a4743a4c
7 | .
8 | DemoApp.py
9 |
10 |
11 | .
12 | .
13 | DemoApp
14 | DemoApp
15 |
16 |
17 | true
18 | false
19 |
20 |
21 | true
22 | false
23 |
24 |
25 |
26 |
27 |
28 | 10.0
29 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets
30 |
31 |
32 |
33 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Python/DemoApp/DemoApp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "DemoApp", "DemoApp.pyproj", "{1B2C7682-E220-472C-B741-BD71A4743A4C}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {1B2C7682-E220-472C-B741-BD71A4743A4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {1B2C7682-E220-472C-B741-BD71A4743A4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PDFEditorSDKExamples
2 | Examples for PDF-XChange Editor SDK
3 |
4 | To make the sample working do the following steps:
5 |
6 | 1. Download and install [PDF-XChange Editor Simple SDK](http://www.tracker-software.com/product/pdf-xchange-editor-simple-sdk)
7 | 2. Try to build this solution so that the Build directory will be generated.
8 | 3. Copy the PDFXEditSimple.x64.dll and PDFXEditSimple.x86.dll from where the PDF-XChange Editor Simple SDK was installed into the project Build directory (i.e. bin where the exe file lies).
9 | 4. Launch the application again
10 |
--------------------------------------------------------------------------------
/WebExamples/ASPNETbasic/Default.aspx:
--------------------------------------------------------------------------------
1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
44 |
45 |
46 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/WebExamples/ASPNETbasic/Default.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.UI;
6 | using System.Web.UI.WebControls;
7 |
8 | namespace WebApplication1
9 | {
10 | public partial class _Default : System.Web.UI.Page
11 | {
12 | protected void Page_Load(object sender, EventArgs e)
13 | {
14 |
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/WebExamples/ASPNETbasic/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebApplication1 {
11 |
12 |
13 | public partial class _Default {
14 |
15 | ///
16 | /// form1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/WebExamples/ASPNETbasic/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("WebApplication1")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WebApplication1")]
13 | [assembly: AssemblyCopyright("Copyright © 2009")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/WebExamples/ASPNETbasic/WebApplication1.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication1", "WebApplication1.csproj", "{60C13CAA-A67E-4E38-8B09-87476F83B604}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {60C13CAA-A67E-4E38-8B09-87476F83B604}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {60C13CAA-A67E-4E38-8B09-87476F83B604}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {60C13CAA-A67E-4E38-8B09-87476F83B604}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {60C13CAA-A67E-4E38-8B09-87476F83B604}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/WebExamples/HTML_JavaScript/PDFXChangeViewer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | PDF-XChange Viewer ActiveX test
4 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/cpp/QTFullDemo/QTFullDemo.pro:
--------------------------------------------------------------------------------
1 | #-------------------------------------------------
2 | #
3 | # Project created by QtCreator 2017-12-22T21:15:16
4 | #
5 | #-------------------------------------------------
6 |
7 | QT += core gui axcontainer
8 |
9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
10 |
11 | TARGET = QTFullDemo
12 | TEMPLATE = app
13 |
14 | # The following define makes your compiler emit warnings if you use
15 | # any feature of Qt which has been marked as deprecated (the exact warnings
16 | # depend on your compiler). Please consult the documentation of the
17 | # deprecated API in order to know how to port your code away from it.
18 | DEFINES += QT_DEPRECATED_WARNINGS
19 |
20 | # You can also make your code fail to compile if you use deprecated APIs.
21 | # In order to do so, uncomment the following line.
22 | # You can also select to disable deprecated APIs only up to a certain version of Qt.
23 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
24 |
25 |
26 | SOURCES += \
27 | main.cpp \
28 | mainwindow.cpp
29 |
30 | HEADERS += \
31 | mainwindow.h
32 |
33 | FORMS += \
34 | mainwindow.ui
35 |
--------------------------------------------------------------------------------
/cpp/QTFullDemo/main.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include
3 |
4 | int main(int argc, char *argv[])
5 | {
6 | QApplication a(argc, argv);
7 | MainWindow w;
8 | w.show();
9 |
10 | return a.exec();
11 | }
12 |
--------------------------------------------------------------------------------
/cpp/QTFullDemo/mainwindow.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include "ui_mainwindow.h"
3 |
4 | MainWindow::MainWindow(QWidget *parent) :
5 | QMainWindow(parent),
6 | ui(new Ui::MainWindow)
7 | {
8 | ui->setupUi(this);
9 | }
10 |
11 | MainWindow::~MainWindow()
12 | {
13 | delete ui;
14 | }
15 |
--------------------------------------------------------------------------------
/cpp/QTFullDemo/mainwindow.h:
--------------------------------------------------------------------------------
1 | #ifndef MAINWINDOW_H
2 | #define MAINWINDOW_H
3 |
4 | #if defined _M_X64
5 | #define Api_File "PDFXEditCore.x64.dll"
6 | #else
7 | #define Api_File "PDFXEditCore.x86.dll"
8 | #endif
9 |
10 | #pragma warning(push)
11 | #pragma warning(disable:4192 4278)
12 | #import Api_File rename_namespace("PXV"), raw_interfaces_only, exclude("LONG_PTR", "ULONG_PTR", "UINT_PTR")
13 | #pragma warning(pop)
14 |
15 | #include
16 |
17 | namespace Ui {
18 | class MainWindow;
19 | }
20 |
21 | class MainWindow : public QMainWindow
22 | {
23 | Q_OBJECT
24 |
25 | public:
26 | explicit MainWindow(QWidget *parent = 0);
27 | ~MainWindow();
28 |
29 | private:
30 | Ui::MainWindow *ui;
31 | };
32 |
33 | #endif // MAINWINDOW_H
34 |
--------------------------------------------------------------------------------
/tempbuild/README.md:
--------------------------------------------------------------------------------
1 | # PDFCoreSDKExamples
2 | Examples for PDF-XChange Editor SDK
3 |
4 | Directoru output temp files
--------------------------------------------------------------------------------