abcpdf

How to use the ABCPdf.NET to extract texts from all pages of a PDF file?

萝らか妹 提交于 2019-11-29 15:56:22
问题 How to use the ABCPdf.NET tool to extract the content texts from a PDF file? I tried the GetText method but doesn't extract the contents: var doc = new Doc(); var url = @".../FileName.pdf"; doc.Read(url); string xmlContents = doc.GetText("Text"); Response.Write(xmlContents); doc.Clear(); doc.Dispose(); My pdf has almost 1000 words but the GetText only returns 4-5 words. I realized it returns only the texts of the first page. So the question should be "how to extract the text from all pages of

ABCpdf .NET with Azure App Service

百般思念 提交于 2019-11-29 05:15:34
I am trying to use ABCpdf .NET with Azure App Service and getting the following error when generating a PDF. Unable to render HTML. Failed to configure IE 9 or above for the MSHtml engine: Access denied while writing to the registry. For IIS applications, please enable "Load User Profile" or consult MSHtmlBootstrap in the documentation. Usually in a VM I would set Load User Profile to True and it works but in Azure App Service, I do not have access to IIS Application Pool configuration. According to the developer of ABCpdf, it should work with Azure websites. http://www.websupergoo.com/support

ABCPDF not showing full table data

旧城冷巷雨未停 提交于 2019-11-28 10:36:33
问题 Please refer to the image below: It's cutting off some of the table data because of the width. My table width is more than 1000 px. I know The default document size for ABCpdf is 612 by 792. Using the code below to set document width and height double w = doc.MediaBox.Width; double h = doc.MediaBox.Height; double l = doc.MediaBox.Left; double b = doc.MediaBox.Bottom; doc.Transform.Rotate(90, l, b); doc.Transform.Translate(w, 0); doc.Rect.Width = h; doc.Rect.Height = w; I want to display all

ABCpdf .NET with Azure App Service

烂漫一生 提交于 2019-11-27 22:43:26
问题 I am trying to use ABCpdf .NET with Azure App Service and getting the following error when generating a PDF. Unable to render HTML. Failed to configure IE 9 or above for the MSHtml engine: Access denied while writing to the registry. For IIS applications, please enable "Load User Profile" or consult MSHtmlBootstrap in the documentation. Usually in a VM I would set Load User Profile to True and it works but in Azure App Service, I do not have access to IIS Application Pool configuration.