Skip to content

Instantly share code, notes, and snippets.

@syatin003
syatin003 / Getting barcode from pdf
Created March 22, 2018 07:30
Getting barcode from pdf using ABCpdf and Zxing nuget packages
Doc doc = new Doc();
doc.Read(Server.MapPath("~/Template/sample.pdf"));
var bmpList = GetBmpListFromPdf(d, Server.MapPath("~/Template/sample.pdf"));
public List<Result> GetBmpListFromPdf(Doc pdf, string file)
{
//pdf.Rendering.Save(file);
List<Result> barcodeResultList = new List<Result>();
string svg = ExtractImageFromAllPages(file);//System.IO.File.ReadAllText(file);
HashSet<string> hrefs = new HashSet<string>();
http://www.c-sharpcorner.com/UploadFile/75a48f/difference-between-session-and-caching/
@syatin003
syatin003 / Custom Authorization filter
Created May 12, 2017 11:57
Custom Authorization filter
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace WFCMediaApp.Filters
{
public class CustomAuthorizeAttribute : AuthorizeAttribute