PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun May 19, 2024 10:50 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Apr 11, 2024 3:06 pm 
Offline

Joined: Thu Apr 11, 2024 2:33 pm
Posts: 4
Hi,

I|m trying out the sample code from [https://github.com/empira/PDFsharp/blob/master/src/samples/src/PDFsharp/src/HelloWorld/Program.cs][/https://github.com/empira/PDFsharp/blob/master/src/samples/src/PDFsharp/src/HelloWorld/Program.cs]

I have installed
  • PDFsharp
  • System.Drawing.Common
  • System.Text.Encoding.CodePages
from NuGet.

The code won't compile due to two errors:

CS0103 The Name 'PdfFileUtility' does not exist in the current context (twice: line 86 and 89)
CS0117 'Capabilities.Build' does not contain a definition for 'BuildTag' (line 86)

Can't find any solution to this issue. Do I have to install other packages or something? Where is the PdfFileUtility from?

Thanks in advance for your help.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2024 6:18 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 922
Location: CCAA
Use the latest NuGet packages 6.1.0 Preview 2.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 12, 2024 11:15 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 341
The samples repository is here:
https://github.com/empira/PDFsharp.Samples
The samples require the latest preview NuGet packages.


The source code repository is here:
https://github.com/empira/PDFsharp
You link to the Samples folder of this repository.
The samples compile when you open the solution PDFsharp.sln from the root folder of that repository.

_________________
Ă–hmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 12, 2024 11:48 am 
Offline

Joined: Thu Apr 11, 2024 2:33 pm
Posts: 4
Thank you guys!

Activating preview packages in NuGet and installing PDFsharp 6.1.0 Preview 2 solved the issue.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group