PdfUtility 1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PdfUtility --version 1.0.4
NuGet\Install-Package PdfUtility -Version 1.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PdfUtility" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfUtility --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PdfUtility, 1.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PdfUtility as a Cake Addin #addin nuget:?package=PdfUtility&version=1.0.4 // Install PdfUtility as a Cake Tool #tool nuget:?package=PdfUtility&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Button buttonCreate = new Button() { Parent = this, Text = "作成", Dock = DockStyle.Top, };
buttonCreate.Click += (sender, e) =>
{
var imgfilename = "I:\\test.jpg";
using (var pdfcreator = new PdfUtility.PdfCreator("I:\\test.pdf"))
{
/** VLゴシックを使用 */
// pdfcreator.ResetBasefont("C:\\Windows\\Fonts\\VL-Gothic-Regular.ttf");
var img = iTextSharp.text.Image.GetInstance(imgfilename);
float ypos = 0;
pdfcreator.DrawImage(img, 10, ypos);
ypos += img.Height + 10;
pdfcreator.DrawText("あめんぼ", 10, ypos, Color.Red);
ypos += img.Height + 10;
pdfcreator.FontSize = 32;
ypos += 50;
pdfcreator.DrawRectangle(new Rectangle[] { new Rectangle(400, 400, 150, 150), }, Color.Red, true);
pdfcreator.NewPage();
pdfcreator.DrawLine(new[] {
new Point(5,5),
new Point(pdfcreator.Size.Width-5,pdfcreator.Size.Height-5),
new Point(100,pdfcreator.Size.Height-50),
});
pdfcreator.DrawLine(new[] {
new Point(pdfcreator.Size.Width-5,5),
new Point(5,pdfcreator.Size.Height-5),},
Color.Blue);
pdfcreator.DrawText("赤いなあいうえお", 10, ypos);
pdfcreator.Close();
pdfcreator.Save();
}
};
Button buttonOpen = new Button() { Text = "開く", Parent = this, Dock = DockStyle.Top, };
buttonOpen.Click += (sender, e) =>
{
var ofd = new OpenFileDialog();
if (ofd.ShowDialog() == DialogResult.OK)
{
var images = PdfUtility.PdfImageCollector.GetAllImages(ofd.FileName);
try
{
foreach (var image in images)
{
ImageUtility.ImageViewer.ShowDialog(image.Value, 0.3);
}
}
catch
{
}
}
};
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- iTextSharp (>= 5.5.13.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.