Questions tagged [spire.pdf]
4 questions
1
vote
2 answers
How to speed up this loop reading PDF files in .Net Core 6
I have this method SearchPdf(string path, string keyword) where path is the folder path that contains all the PDFs file to search and keyword is the keyword to search in the PDF file or PDF's file name.
I'm using Spire.Pdf to read the PDFs.
Here is…

miskaka
- 59
- 4
0
votes
1 answer
How to convert a Docx file (held in a Stream) to a PDF file (as a Stream) using Spire.Doc
I need a NuGet which is able to convert .docx files to .pdfs, for free.
I stumbled accross FreeSpire.Doc but I am having trouble using it.
Here's my code:
using mediere_API.Processors.Interfaces;
using Spire.Doc;
namespace…

Octavian Niculescu
- 1,177
- 1
- 3
- 24
0
votes
0 answers
freespire.pdf 'Invalid/Unknown/Unsupported format' error message when generating from cshtml
Hi I am trying to generate a PDF from my cshtml teplate files. For this I am using FreeSpire.PDF.
When I creata an instance of the PdfDocument from the stream I got the following error:
Spire.Pdf.Exceptions.PdfDocumentException:…

Wasyster
- 2,279
- 4
- 26
- 58
0
votes
2 answers
Type or namespace PdfHtmlLayoutFormat could not be found
I am testing Spire.PDF with example code from this site: https://www.nuget.org/packages/FreeSpire.PDF
//Create a pdf document.
PdfDocument doc = new PdfDocument();
PdfPageSettings setting = new PdfPageSettings();
setting.Size = new…

Shiraz Bhaiji
- 64,065
- 34
- 143
- 252