PDFiumSharp icon indicating copy to clipboard operation
PDFiumSharp copied to clipboard

Compile errors in VS2019 16.3.3

Open JosepBalague opened this issue 6 years ago • 2 comments

Hi,

I just downloaded this solutions, and these are compile errors PDFiumSharp project:

1>------ Rebuild All started: Project: PDFiumSharp, Configuration: Debug Any CPU ------ 1>PdfDestination.cs(15,56,15,65): error CS0246: The type or namespace name 'FPDF_DEST' could not be found (are you missing a using directive or an assembly reference?) 1>PdfDestination.cs(32,44,32,53): error CS0246: The type or namespace name 'FPDF_DEST' could not be found (are you missing a using directive or an assembly reference?) 1>PdfAction.cs(15,51,15,62): error CS0246: The type or namespace name 'FPDF_ACTION' could not be found (are you missing a using directive or an assembly reference?) 1>PdfAction.cs(27,39,27,50): error CS0246: The type or namespace name 'FPDF_ACTION' could not be found (are you missing a using directive or an assembly reference?) 1>PdfBookmark.cs(15,53,15,66): error CS0246: The type or namespace name 'FPDF_BOOKMARK' could not be found (are you missing a using directive or an assembly reference?) 1>PdfDocument.cs(17,53,17,66): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PdfBookmark.cs(38,41,38,54): error CS0246: The type or namespace name 'FPDF_BOOKMARK' could not be found (are you missing a using directive or an assembly reference?) 1>PdfDocument.cs(145,35,145,48): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(84,17,84,30): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(98,17,98,30): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PdfDocument.cs(60,15,60,28): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(125,72,125,85): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(125,18,125,27): error CS0246: The type or namespace name 'FPDF_DEST' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(146,46,146,59): error CS0246: The type or namespace name 'FPDF_BOOKMARK' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(157,47,157,58): error CS0246: The type or namespace name 'FPDF_ACTION' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(169,46,169,59): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(169,70,169,81): error CS0246: The type or namespace name 'FPDF_ACTION' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(179,59,179,68): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(179,29,179,38): error CS0246: The type or namespace name 'FPDF_LINK' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(203,41,203,54): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(221,41,221,54): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(244,44,244,53): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(244,64,244,79): error CS0246: The type or namespace name 'FPDF_PAGEOBJECT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(270,48,270,57): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(270,73,270,88): error CS0246: The type or namespace name 'FPDF_PAGEOBJECT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(285,45,285,54): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(285,70,285,85): error CS0246: The type or namespace name 'FPDF_PAGEOBJECT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(285,100,285,111): error CS0246: The type or namespace name 'FPDF_BITMAP' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(300,45,300,58): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(300,17,300,26): error CS0246: The type or namespace name 'FPDF_FONT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(316,39,316,52): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(316,63,316,76): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(337,38,337,51): error CS0246: The type or namespace name 'FPDF_DOCUMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(364,54,364,72): error CS0246: The type or namespace name 'FPDF_STRUCTELEMENT' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(373,41,373,54): error CS0246: The type or namespace name 'FPDF_TEXTPAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(380,48,380,61): error CS0246: The type or namespace name 'FPDF_TEXTPAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PDFium.cs(385,40,385,53): error CS0246: The type or namespace name 'FPDF_PAGELINK' could not be found (are you missing a using directive or an assembly reference?) 1>PDFiumBitmap.cs(20,54,20,65): error CS0246: The type or namespace name 'FPDF_BITMAP' could not be found (are you missing a using directive or an assembly reference?) 1>PDFiumBitmap.cs(119,35,119,46): error CS0246: The type or namespace name 'FPDF_BITMAP' could not be found (are you missing a using directive or an assembly reference?) 1>PDFiumBitmap.cs(29,16,29,27): error CS0246: The type or namespace name 'FPDF_BITMAP' could not be found (are you missing a using directive or an assembly reference?) 1>PdfPage.cs(16,49,16,58): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PdfPage.cs(119,35,119,44): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>PdfPage.cs(65,28,65,37): error CS0246: The type or namespace name 'FPDF_PAGE' could not be found (are you missing a using directive or an assembly reference?) 1>Done building project "PDFiumSharp.csproj" -- FAILED. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

JosepBalague avatar Oct 10 '19 10:10 JosepBalague

Have you already tried to select FPDF_Typedefs.tt files and PDFium.tt and "Run Custom Tool via Right Click" ?

image

SandVonSchaewen avatar Jan 16 '20 11:01 SandVonSchaewen

@SandVonSchaewen this worked for me, should this be moved onto the front page?

gamblor999 avatar Jul 18 '21 00:07 gamblor999