7

After reading Using LibTiff from C# (to access tiled TIFF images) I decided to try to use .Net built in framework class TiffBitmapDecoder to generate the pdf from tiled TIFF image.

I got a big TIFF image around 4MB, which has tiles. I used iTextSharp before but it is not supporting tiles error.

But how do I add the PresentationCore.dll assembly in my web project reference? I could not able to see in Add Reference dialog. I use .Net 4.0 ASP.Net webform project

enter image description here

It shows only System.Windows.Presentation

Also do any one processed tiled TIFF to pdf with .Net built in Framework classes with out using 3rd party libraries like LibTIFF?

Community
  • 1
  • 1
Billa
  • 5,226
  • 23
  • 61
  • 105

1 Answers1

18

PresentationCore is a part of WPF, which is a .NET Framework built-in feature. You should be able to add it easily for both MVC and classic ASP.NET for .NET Framework v3.5 or later.

Please note that the assembly name used by PresentationCore.dll is plain PresentationCore. It does not have any prefixes (e.g. System.PresentationCore, Microsoft.PresentationCore). Perhaps this is the reason you're having trouble finding it on the Framework Assemblies list.

enter image description here

Aoi Karasu
  • 3,730
  • 3
  • 37
  • 61
  • 1
    No, the assembly **name** is `PresentationCore`. Namespaces and assemblies are orthogonal concepts, and when you're in the "Add Reference" dialog, you're dealing with assembly names. The `PresentationCore` assembly mostly contains types in namespaces starting `System.Windows.Media`. – Damien_The_Unbeliever Feb 28 '14 at 15:39
  • 1
    @AoiKarasu I have as question about PresentationCore. Is it limited to just WPF? or, can it be used in any ASP.NET Core and MVC projects and even in Xamarin? Im creating a Core dll from a WPF project and I want to make it extensible across different project types. And not just limited to WPF. – user2529011 Oct 03 '19 at 16:59