From 1cbd1ee61f1d89ae035c818bf48b6153b4fc5217 Mon Sep 17 00:00:00 2001 From: Chaidir Ali Assegaf Date: Thu, 31 Jul 2025 12:46:18 +0700 Subject: [PATCH 1/2] Fix Version --- .idea/.idea.HTMLToQPDF/.idea/.gitignore | 13 +++++++++++++ .idea/.idea.HTMLToQPDF/.idea/encodings.xml | 4 ++++ .idea/.idea.HTMLToQPDF/.idea/indexLayout.xml | 8 ++++++++ .idea/.idea.HTMLToQPDF/.idea/vcs.xml | 6 ++++++ HTMLToQPDF.Example/HTMLToQPDF.Example.csproj | 10 +++++----- HTMLToQPDF/Components/HTMLComponent.cs | 2 +- HTMLToQPDF/HTMLToQPDF.csproj | 6 +++--- 7 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 .idea/.idea.HTMLToQPDF/.idea/.gitignore create mode 100644 .idea/.idea.HTMLToQPDF/.idea/encodings.xml create mode 100644 .idea/.idea.HTMLToQPDF/.idea/indexLayout.xml create mode 100644 .idea/.idea.HTMLToQPDF/.idea/vcs.xml diff --git a/.idea/.idea.HTMLToQPDF/.idea/.gitignore b/.idea/.idea.HTMLToQPDF/.idea/.gitignore new file mode 100644 index 0000000..4cada4e --- /dev/null +++ b/.idea/.idea.HTMLToQPDF/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/.idea.HTMLToQPDF.iml +/projectSettingsUpdater.xml +/modules.xml +/contentModel.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.HTMLToQPDF/.idea/encodings.xml b/.idea/.idea.HTMLToQPDF/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.HTMLToQPDF/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.HTMLToQPDF/.idea/indexLayout.xml b/.idea/.idea.HTMLToQPDF/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.HTMLToQPDF/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.HTMLToQPDF/.idea/vcs.xml b/.idea/.idea.HTMLToQPDF/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.HTMLToQPDF/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj b/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj index c801ecd..74ef6f5 100644 --- a/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj +++ b/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj @@ -17,14 +17,14 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + diff --git a/HTMLToQPDF/Components/HTMLComponent.cs b/HTMLToQPDF/Components/HTMLComponent.cs index 3d386f2..97c22a1 100644 --- a/HTMLToQPDF/Components/HTMLComponent.cs +++ b/HTMLToQPDF/Components/HTMLComponent.cs @@ -46,7 +46,7 @@ internal class HTMLComponent : IComponent { "ol", c => c.PaddingLeft(30) } }; - public float ListVerticalPadding { get; set; } = 12; + public float ListVerticalPadding { get; set; } public string HTML { get; set; } = ""; diff --git a/HTMLToQPDF/HTMLToQPDF.csproj b/HTMLToQPDF/HTMLToQPDF.csproj index d619eea..7a47862 100644 --- a/HTMLToQPDF/HTMLToQPDF.csproj +++ b/HTMLToQPDF/HTMLToQPDF.csproj @@ -14,7 +14,7 @@ https://github.com/Relorer/HTMLToQPDF pdf, file, export, generate, generation, tool, create, creation, render, document, format, quest, html, library, converter, open, source, free, standard, core MIT - 1.1.0 + 1.2.2 @@ -25,8 +25,8 @@ - - + + From 48cbb68345ed38aa1925d4be9933a02903c86e12 Mon Sep 17 00:00:00 2001 From: Chaidir Ali Assegaf Date: Sun, 14 Dec 2025 17:55:36 +0700 Subject: [PATCH 2/2] Refactor component namespaces and class names for consistency; update HTML handling methods --- HTMLToQPDF.Example/App.xaml.cs | 6 +- HTMLToQPDF.Example/HTMLToQPDF.Example.csproj | 9 +- HTMLToQPDF.Example/MainWindow.xaml | 5 +- HTMLToQPDF.Example/MainWindow.xaml.cs | 6 +- .../Properties/Resources.Designer.cs | 35 ++- .../Utilities/FileDialogHelper.cs | 12 +- HTMLToQPDF.Example/Utilities/PDFCreator.cs | 8 +- .../ViewModels/MainWindowViewModel.cs | 13 +- HTMLToQPDF/Components/BaseHTMLComponent.cs | 40 ++-- HTMLToQPDF/Components/HTMLComponent.cs | 29 +-- HTMLToQPDF/Components/HTMLComponentsArgs.cs | 4 +- HTMLToQPDF/Components/ParagraphComponent.cs | 72 +++--- HTMLToQPDF/Components/Tags/AComponent.cs | 11 +- HTMLToQPDF/Components/Tags/BrComponent.cs | 7 +- HTMLToQPDF/Components/Tags/ImgComponent.cs | 15 +- HTMLToQPDF/Components/Tags/ListComponent.cs | 15 +- HTMLToQPDF/Components/Tags/TableComponent.cs | 49 ++-- .../Extensions/HTMLComponentExtensions.cs | 10 +- HTMLToQPDF/Extensions/HtmlNodeExtensions.cs | 96 ++++---- HTMLToQPDF/Extensions/IContainerExtensions.cs | 8 +- HTMLToQPDF/HTMLDescriptor.cs | 16 +- HTMLToQPDF/HTMLToQPDF.csproj | 4 +- HTMLToQPDF/StyleSettings.cs | 25 ++- HTMLToQPDF/Utils/HTMLUtils.cs | 23 +- HTMLToQPDF/Utils/ImgUtils.cs | 27 +-- HTMLToQPDF/Utils/UnitUtils.cs | 2 +- Usage.md | 210 ++++++++++++++++++ 27 files changed, 478 insertions(+), 279 deletions(-) create mode 100644 Usage.md diff --git a/HTMLToQPDF.Example/App.xaml.cs b/HTMLToQPDF.Example/App.xaml.cs index 93e3762..9c26572 100644 --- a/HTMLToQPDF.Example/App.xaml.cs +++ b/HTMLToQPDF.Example/App.xaml.cs @@ -1,11 +1,9 @@ -using System.Windows; - -namespace HTMLToQPDF.Example +namespace HTMLToQPDF.Example { /// /// Interaction logic for App.xaml /// - public partial class App : Application + public partial class App { } } \ No newline at end of file diff --git a/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj b/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj index 74ef6f5..7f4446d 100644 --- a/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj +++ b/HTMLToQPDF.Example/HTMLToQPDF.Example.csproj @@ -2,13 +2,14 @@ WinExe - net6.0-windows + net10.0-windows enable true Assets\web-programming.ico true true embedded + 14 @@ -18,13 +19,13 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/HTMLToQPDF.Example/MainWindow.xaml b/HTMLToQPDF.Example/MainWindow.xaml index cf2d363..f7e2df2 100644 --- a/HTMLToQPDF.Example/MainWindow.xaml +++ b/HTMLToQPDF.Example/MainWindow.xaml @@ -4,7 +4,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:hc="https://handyorg.github.io/handycontrol" - xmlns:local="clr-namespace:HTMLToQPDF.Example" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="clr-namespace:HTMLToQPDF.Example.ViewModels" Title="HTMLToQPDF" @@ -29,7 +28,7 @@ IsChecked="{Binding CustomStyles}" />