Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

We create a PdfDocument, not a (MigraDoc) Document

static void Main()
{
  DateTime now = DateTime.Now;
  string filename = "MixMigraDocAndPdfSharp.pdf";
  filename = Guid.NewGuid().ToString("D").ToUpper() + ".pdf";
  PdfDocument document = new PdfDocument();
  document.Info.Title = "PDFsharp XGraphic Sample";
  document.Info.Author = "Stefan Lange";
  document.Info.Subject = "Created with code snippets that show the use of graphical functions";
  document.Info.Keywords = "PDFsharp, XGraphics";
 
  SamplePage1(document);
 
  SamplePage2(document);
 
  Debug.WriteLine("seconds=" + (DateTime.Now - now).TotalSeconds.ToString());
 
  // Save the document...
  document.Save(filename);
  // ...and start a viewer
  Process.Start(filename);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# .net core 3.0 trying Exception The transaction log for database is full due to ACTIVE_TRANSACTION 
Csharp :: Last N lines from file 
Csharp :: c# uint 
Csharp :: c# ef dynamic ApplyConfiguration 
Csharp :: get picked item xamarin 
Csharp :: f# list map function 
Csharp :: c# getdecimal null 
Csharp :: C# Implicitly typed variable 
Csharp :: global variable startup file .net core api 
Csharp :: how to start commvault services on linux 
Csharp :: ExecuteResultAsync ActionContext statuscode 
Csharp :: using randomly chars to build a string 
Csharp :: cshtml page title 
Csharp :: c# list to string replace last comma with and 
Csharp :: vb.net convert int32 into boolean array stack overflow 
Csharp :: create expression func c# for use in where clause 
Csharp :: how to execute a function in every object of list c# 
Csharp :: unity on statement how 
Csharp :: runner dotnet trace inside docker container 
Csharp :: c# call constructor from constructor 
Csharp :: delegates in c# 
Csharp :: unity custom editor draw line in scene 
Csharp :: Close Form After fixed time 
Csharp :: plays ervices unity sigin 
Csharp :: In ASP.NET Core how check if request is local 
Csharp :: dotnet core ef add multiple records 
Csharp :: convert bool to uint in solidity 
Csharp :: how to unit test dbcontext in .net core 
Csharp :: How to use C# to open windows explorer in “select/open file mode 
Csharp :: scale curve revit api 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =