atmopa.blogg.se

Puppeteersharp download free
Puppeteersharp download free













puppeteersharp download free

Var waitOptions = new WaitUntilNavigationĪwait page. Var url = (actionName, controllerName, routeValues, "http") Var cookie = Īwait page.SetCookieAsync(new CookieParamĭomain = Var browser = await Puppeteer.LaunchAsync(new LaunchOptionsĮxecutablePath = revisionInfo.ExecutablePath,

puppeteersharp download free puppeteersharp download free

Var revisionInfo = await browserFetcher.DownloadAsync(BrowserFetcher.DefaultChromiumRevision) Var browserFetcher = new BrowserFetcher(new BrowserFetcherOptions() Var HostPath = HostingEnvironment.MapPath("~/Content/") FROM microsoft/dotnet:2.2-runtime AS base RUN apt-get update -y RUN apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3. Public static async Task ViewAsPdf(this Controller controller, I'm implementing the following code to use Puppeteer Sharp for generating PDF on an ASP MVC 5 application, on the first request it works fine, but on any following request it takes too long to load any url and crashes, I tried disabling the headless and get the same result, I created this as an extension method for the controller using PuppeteerSharp















Puppeteersharp download free