Quellcode durchsuchen

添加项目文件。

Veronique vor 1 Jahr
Ursprung
Commit
1569a29c80

+ 22 - 0
QuickPDF2JPG.sln

@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.12.35514.174 d17.12
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickPDF2JPG", "QuickPDF2JPG\QuickPDF2JPG.csproj", "{3BFC5FB2-30F2-4F3F-AD35-2A760134D086}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{3BFC5FB2-30F2-4F3F-AD35-2A760134D086}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{3BFC5FB2-30F2-4F3F-AD35-2A760134D086}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{3BFC5FB2-30F2-4F3F-AD35-2A760134D086}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{3BFC5FB2-30F2-4F3F-AD35-2A760134D086}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

+ 44 - 0
QuickPDF2JPG/DataModule.cs

@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using WebSupergoo.ABCpdf11;
+using WebSupergoo.ABCpdf11.Operations;
+
+namespace QuickPDF2JPG {
+    internal class DataModule {
+        public class DataGridViewProgressCell : DataGridViewTextBoxCell {
+            protected override void Paint(
+                Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex,
+                DataGridViewElementStates elementState, object value, object formattedValue,
+                string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle,
+                DataGridViewPaintParts paintParts) {
+                base.Paint(graphics, clipBounds, cellBounds, rowIndex, elementState,
+                           value, formattedValue, errorText, cellStyle,
+                           advancedBorderStyle, paintParts);
+
+                if (value != null) {
+                    int progress = Convert.ToInt32(value);
+                    Rectangle rect = new Rectangle(cellBounds.X + 2, cellBounds.Y + 2,
+                                                   cellBounds.Width - 4, cellBounds.Height - 4);
+                    ProgressBarRenderer.DrawHorizontalBar(graphics, rect);
+                    rect.Inflate(-1, -1);
+                    if (progress > 0) {
+                        ProgressBarRenderer.DrawHorizontalChunks(graphics, new Rectangle(rect.X, rect.Y,
+                            (int)(rect.Width * ((double)progress / 100)), rect.Height));
+                    }
+                }
+            }
+        }
+
+        public class FileTask {
+            public string FileName { get; set; }
+            public string FilePath { get; set; }
+            public int FileIndex { get; set; }
+
+        }
+
+       
+    }
+}

+ 222 - 0
QuickPDF2JPG/FrmMain.Designer.cs

@@ -0,0 +1,222 @@
+namespace QuickPDF2JPG
+{
+    partial class frmMain
+    {
+        /// <summary>
+        ///  Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        ///  Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        ///  Required method for Designer support - do not modify
+        ///  the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent() {
+            panel1 = new Panel();
+            btnStart = new Button();
+            edtBPC = new NumericUpDown();
+            edtDPIY = new NumericUpDown();
+            edtDPIX = new NumericUpDown();
+            label3 = new Label();
+            label2 = new Label();
+            label1 = new Label();
+            panel2 = new Panel();
+            listFiles = new DataGridView();
+            colFilePath = new DataGridViewTextBoxColumn();
+            colFileName = new DataGridViewTextBoxColumn();
+            colFileProgress = new DataGridViewTextBoxColumn();
+            btnSelectFiles = new Button();
+            panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)edtBPC).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)edtDPIY).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)edtDPIX).BeginInit();
+            panel2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)listFiles).BeginInit();
+            SuspendLayout();
+            // 
+            // panel1
+            // 
+            panel1.Controls.Add(btnStart);
+            panel1.Controls.Add(edtBPC);
+            panel1.Controls.Add(edtDPIY);
+            panel1.Controls.Add(edtDPIX);
+            panel1.Controls.Add(label3);
+            panel1.Controls.Add(label2);
+            panel1.Controls.Add(label1);
+            panel1.Dock = DockStyle.Top;
+            panel1.Location = new Point(0, 0);
+            panel1.Name = "panel1";
+            panel1.Size = new Size(767, 44);
+            panel1.TabIndex = 0;
+            // 
+            // btnStart
+            // 
+            btnStart.Location = new Point(664, 9);
+            btnStart.Name = "btnStart";
+            btnStart.Size = new Size(75, 23);
+            btnStart.TabIndex = 9;
+            btnStart.Text = "开始";
+            btnStart.UseVisualStyleBackColor = true;
+            btnStart.Click += btnStart_Click;
+            // 
+            // edtBPC
+            // 
+            edtBPC.Location = new Point(368, 13);
+            edtBPC.Maximum = new decimal(new int[] { 96, 0, 0, 0 });
+            edtBPC.Name = "edtBPC";
+            edtBPC.Size = new Size(75, 23);
+            edtBPC.TabIndex = 8;
+            edtBPC.Value = new decimal(new int[] { 32, 0, 0, 0 });
+            // 
+            // edtDPIY
+            // 
+            edtDPIY.Location = new Point(214, 13);
+            edtDPIY.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
+            edtDPIY.Name = "edtDPIY";
+            edtDPIY.Size = new Size(75, 23);
+            edtDPIY.TabIndex = 7;
+            edtDPIY.Value = new decimal(new int[] { 96, 0, 0, 0 });
+            // 
+            // edtDPIX
+            // 
+            edtDPIX.Location = new Point(59, 13);
+            edtDPIX.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
+            edtDPIX.Name = "edtDPIX";
+            edtDPIX.Size = new Size(75, 23);
+            edtDPIX.TabIndex = 6;
+            edtDPIX.Value = new decimal(new int[] { 96, 0, 0, 0 });
+            // 
+            // label3
+            // 
+            label3.AutoSize = true;
+            label3.Location = new Point(330, 15);
+            label3.Name = "label3";
+            label3.Size = new Size(32, 17);
+            label3.TabIndex = 5;
+            label3.Text = "位深";
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new Point(168, 15);
+            label2.Name = "label2";
+            label2.Size = new Size(40, 17);
+            label2.TabIndex = 3;
+            label2.Text = "DPI_Y";
+            // 
+            // label1
+            // 
+            label1.AutoSize = true;
+            label1.Location = new Point(12, 15);
+            label1.Name = "label1";
+            label1.Size = new Size(41, 17);
+            label1.TabIndex = 1;
+            label1.Text = "DPI_X";
+            // 
+            // panel2
+            // 
+            panel2.Controls.Add(listFiles);
+            panel2.Controls.Add(btnSelectFiles);
+            panel2.Dock = DockStyle.Fill;
+            panel2.Location = new Point(0, 44);
+            panel2.Name = "panel2";
+            panel2.Size = new Size(767, 409);
+            panel2.TabIndex = 1;
+            // 
+            // listFiles
+            // 
+            listFiles.AllowUserToAddRows = false;
+            listFiles.AllowUserToDeleteRows = false;
+            listFiles.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            listFiles.Columns.AddRange(new DataGridViewColumn[] { colFilePath, colFileName, colFileProgress });
+            listFiles.Location = new Point(12, 35);
+            listFiles.Name = "listFiles";
+            listFiles.ReadOnly = true;
+            listFiles.RowTemplate.Height = 25;
+            listFiles.Size = new Size(743, 362);
+            listFiles.TabIndex = 2;
+            // 
+            // colFilePath
+            // 
+            colFilePath.HeaderText = "文件路径";
+            colFilePath.Name = "colFilePath";
+            colFilePath.ReadOnly = true;
+            colFilePath.Visible = false;
+            // 
+            // colFileName
+            // 
+            colFileName.HeaderText = "文件名称";
+            colFileName.Name = "colFileName";
+            colFileName.ReadOnly = true;
+            colFileName.Width = 150;
+            // 
+            // colFileProgress
+            // 
+            colFileProgress.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
+            colFileProgress.HeaderText = "处理进度";
+            colFileProgress.Name = "colFileProgress";
+            colFileProgress.ReadOnly = true;
+            // 
+            // btnSelectFiles
+            // 
+            btnSelectFiles.Location = new Point(12, 6);
+            btnSelectFiles.Name = "btnSelectFiles";
+            btnSelectFiles.Size = new Size(75, 23);
+            btnSelectFiles.TabIndex = 0;
+            btnSelectFiles.Text = "选择文件";
+            btnSelectFiles.UseVisualStyleBackColor = true;
+            btnSelectFiles.Click += btnSelectFiles_Click;
+            // 
+            // frmMain
+            // 
+            AutoScaleDimensions = new SizeF(7F, 17F);
+            AutoScaleMode = AutoScaleMode.Font;
+            ClientSize = new Size(767, 453);
+            Controls.Add(panel2);
+            Controls.Add(panel1);
+            Name = "frmMain";
+            Text = "PDF2JPG";
+            Load += FrmMain_Load;
+            panel1.ResumeLayout(false);
+            panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)edtBPC).EndInit();
+            ((System.ComponentModel.ISupportInitialize)edtDPIY).EndInit();
+            ((System.ComponentModel.ISupportInitialize)edtDPIX).EndInit();
+            panel2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)listFiles).EndInit();
+            ResumeLayout(false);
+        }
+
+        #endregion
+
+        private Panel panel1;
+        private Label label1;
+        private Panel panel2;
+        private Label label2;
+        private Label label3;
+        private NumericUpDown edtBPC;
+        private NumericUpDown edtDPIY;
+        private NumericUpDown edtDPIX;
+        private Button btnStart;
+        private Button btnSelectFiles;
+        private DataGridView listFiles;
+        private DataGridViewTextBoxColumn colFilePath;
+        private DataGridViewTextBoxColumn colFileName;
+        private DataGridViewTextBoxColumn colFileProgress;
+    }
+}

+ 138 - 0
QuickPDF2JPG/FrmMain.cs

@@ -0,0 +1,138 @@
+using WebSupergoo.ABCpdf11;
+using WebSupergoo.ABCpdf11.Objects;
+using WebSupergoo.ABCpdf11.Operations;
+
+namespace QuickPDF2JPG {
+    public partial class frmMain : Form {
+        private class RenderingWorker {
+            private string mPath;
+            private RenderOperation mOp;
+
+            public RenderingWorker(Doc inDoc, string inPath) {
+                mPath = inPath;
+                mOp = new RenderOperation(inDoc);
+            }
+
+            public void DoWork() {
+                mOp.Save(mPath);
+                mOp.Dispose();
+
+            }
+        }
+
+        private SynchronizationContext context;
+
+        private double dotsPerInchX, dotsPerInchY;
+        private int bitsPerChannel;
+
+        public frmMain() {
+            InitializeComponent();
+            WebSupergoo.ABCpdf11.XSettings.InstallLicense("X/VKS0cMn8tAun4hGNvFONyWaelyItt2pqrH5srEKm4brmiSKC69N5FsGmRijGFheK9mhXoi/HVdi/VrNv0Vv1RyfQWQCg==");
+
+            // 获取当前的SynchronizationContext
+            context = SynchronizationContext.Current;
+
+            ThreadPool.SetMinThreads(4, 4);
+            ThreadPool.SetMaxThreads(8, 8);
+        }
+
+        private void btnStart_Click(object sender, EventArgs e) {
+            if (listFiles.Rows.Count <= 0) {
+                MessageBox.Show("未选择文件!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Information);
+            }
+
+            dotsPerInchX = (double)edtDPIX.Value;
+            dotsPerInchY = (double)edtDPIY.Value;
+            bitsPerChannel = (int)edtBPC.Value;
+
+            for (int i = 0; i < listFiles.Rows.Count; i++) {
+                DataGridViewRow fileRow = listFiles.Rows[i];
+                DataModule.FileTask task = new() {
+                    FileIndex = i,
+                    FilePath = fileRow.Cells[0].Value.ToString(),
+                    FileName = fileRow.Cells[1].Value.ToString()
+                };
+
+                //提交任务
+                ThreadPool.QueueUserWorkItem(new WaitCallback(doConvertTask), task);
+            }
+        }
+
+        private void FrmMain_Load(object sender, EventArgs e) {
+            colFileProgress.CellTemplate = new DataModule.DataGridViewProgressCell();
+
+            //listFiles.Rows.Add("filePath1", "fileName1", 20);
+            //listFiles.Rows.Add("filePath2", "fileName2", 50);
+            //listFiles.Rows.Add("filePath3", "fileName3", 70);
+        }
+
+        private void btnSelectFiles_Click(object sender, EventArgs e) {
+            OpenFileDialog openFileDialog = new OpenFileDialog {
+                Multiselect = true,
+                Filter = "PDF|*.pdf",
+                Title = "选择文件"
+            };
+
+            if (openFileDialog.ShowDialog() == DialogResult.OK) {
+                string[] selectedFiles = openFileDialog.FileNames;
+                foreach (string file in selectedFiles) {
+                    listFiles.Rows.Add(file, Path.GetFileName(file), 0);
+                }
+            }
+        }
+
+        private void doConvertTask(object state) {
+            DataModule.FileTask task = (DataModule.FileTask)state;
+
+            Doc currentDoc = new();
+            currentDoc.Read(task.FilePath);
+
+            List<Page> theList = new List<Page>();
+            foreach (IndirectObject obj in currentDoc.ObjectSoup) {
+                if (obj is Page) {
+                    Page page = obj as Page;
+                    if (page != null) {
+                        theList.Add(page);
+                    }
+                }
+            }
+            for (int i = 0; i < theList.Count; i++) {
+                Page page = theList[i];
+                page.VectorizeText();
+            }
+
+            currentDoc.Rendering.DotsPerInchX = dotsPerInchX;
+            currentDoc.Rendering.DotsPerInchY = dotsPerInchY;
+            currentDoc.Rendering.BitsPerChannel = bitsPerChannel;
+            currentDoc.Rendering.SaveQuality = 100;
+            currentDoc.Rendering.ColorSpace = XRendering.ColorSpaceType.Cmyk;
+
+            //每个文件10线程
+            Thread[] threadList = new Thread[10];
+            int progressStep = (int)Math.Ceiling(100.0 / currentDoc.PageCount);
+            int pageNum = 1, pageCount = currentDoc.PageCount;
+            while (pageNum <= pageCount) {
+                int count = 0;
+                while (count < threadList.Length && pageNum <= pageCount) {
+                    currentDoc.PageNumber = pageNum;
+                    string path = Path.GetDirectoryName(task.FilePath) + "\\" + Path.GetFileNameWithoutExtension(task.FileName) + "_" + pageNum + ".jpg";
+
+                    threadList[count] = new Thread(new RenderingWorker(currentDoc, path).DoWork);
+                    //进度条
+                    listFiles.Rows[task.FileIndex].Cells[2].Value = (int)listFiles.Rows[task.FileIndex].Cells[2].Value + progressStep;
+                    ++count;
+                    ++pageNum;
+                }
+                for (int i = 0; i < count; ++i)
+                    threadList[i].Start();
+                for (int i = 0; i < count; ++i)
+                    threadList[i].Join();
+            }
+            currentDoc.Clear();
+
+        }
+
+    }
+
+
+}

+ 129 - 0
QuickPDF2JPG/FrmMain.resx

@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!--
+    Microsoft ResX Schema
+
+    Version 2.0
+
+    The primary goals of this format is to allow a simple XML format
+    that is mostly human readable. The generation and parsing of the
+    various data types are done through the TypeConverter classes
+    associated with the data types.
+
+    Example:
+
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+
+    There are any number of "resheader" rows that contain simple
+    name/value pairs.
+
+    Each data row contains a name, and value. The row also contains a
+    type or mimetype. Type corresponds to a .NET class that support
+    text/value conversion through the TypeConverter architecture.
+    Classes that don't support this are serialized and stored with the
+    mimetype set.
+
+    The mimetype is used for serialized objects, and tells the
+    ResXResourceReader how to depersist the object. This is currently not
+    extensible. For a given mimetype the value must be set accordingly:
+
+    Note - application/x-microsoft.net.object.binary.base64 is the format
+    that the ResXResourceWriter will generate, however the reader can
+    read any of the formats listed below.
+
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="colFilePath.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="colFileName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="colFileProgress.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>

+ 17 - 0
QuickPDF2JPG/Program.cs

@@ -0,0 +1,17 @@
+namespace QuickPDF2JPG
+{
+    internal static class Program
+    {
+        /// <summary>
+        ///  The main entry point for the application.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            // To customize application configuration such as set high DPI settings or default font,
+            // see https://aka.ms/applicationconfiguration.
+            ApplicationConfiguration.Initialize();
+            Application.Run(new frmMain());
+        }
+    }
+}

+ 17 - 0
QuickPDF2JPG/QuickPDF2JPG.csproj

@@ -0,0 +1,17 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>WinExe</OutputType>
+    <TargetFramework>net6.0-windows</TargetFramework>
+    <Nullable>enable</Nullable>
+    <UseWindowsForms>true</UseWindowsForms>
+    <ImplicitUsings>enable</ImplicitUsings>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <Reference Include="ABCpdf">
+      <HintPath>..\..\DelphiXE10Components\ABCpdf11.3\ABCpdf.dll</HintPath>
+    </Reference>
+  </ItemGroup>
+
+</Project>