HTML 코드를 JPEG 이미지로 변환하려고합니다. 그것은 일종의 일이지만, 바코드로 할려고 할 때 아닙니다.NReco 이미지 생성기가 바코드를 올바르게 쓰지 않습니다.
서버 측, 내가 사용 : 나는 웹 페이지를 표시 할 때
내가 CODE128 프로토콜과 EAN133 바코드를 인코딩하고있어, 그것은 작동 (나는 HttpUtility.HtmlEncode(code_barre)
를 사용하므로 바코드 잘 해석됩니다) 다음, 나는 바코드를 표시하는 바코드 폰트를 사용하고 있는데, 뭔가가 내 이미지 문제입니다 그건 : 당신이 볼 수 있듯이
, 그것은 바코드 "일반 텍스트"좋은 형식입니다, 그리고 다음과 CSS :
@font-face { font-family: 'code_128regular'; src: url('/Assets/Fonts/code128-webfont.eot'); src: url('/Assets/Fonts/code128-webfont.eot?#iefix') format('embedded-opentype'), url('/Assets/Fonts/code128-webfont.woff2') format('woff2'), url('code128-webfont.woff') format('woff'), url('/Assets/Fonts/code128-webfont.ttf') format('truetype'), url('/Assets/Fonts/code128-webfont.svg#code_128regular') format('svg'); font-weight: normal; font-style: normal;} .test{font-family:'code_128regular'; font-size:70px;}
나는이 될해야합니다
을하지만 내가 IronPDF을 가진 PDF를 생성 할 때 작동하는 반면 나는 상대 경로로 부트 스트랩 CSS를 가져올 경우에도하지 않습니다
관심감사
편집 :
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<link rel='stylesheet' type='text/css' href='Assets/Bootstrap/css/bootstrap.min.css'>
<script type='text/javascript' src='Assets/Bootstrap/js/bootstrap.min.js'></script>
</head>
<style>
@font-face {
font-family: 'code_128regular';
src: url('/Assets/Fonts/code128-webfont.eot');
src: url('/Assets/Fonts/code128-webfont.eot?#iefix') format('embedded-opentype'), url('/Assets/Fonts/code128-webfont.woff2') format('woff2'), url('code128-webfont.woff') format('woff'), url('/Assets/Fonts/code128-webfont.ttf') format('truetype'), url('/Assets/Fonts/code128-webfont.svg#code_128regular') format('svg');
font-weight: normal;
font-style: normal;
}
.test {
font-family: 'code_128regular';
font-size: 70px;
}
</style>
<center><p class='test'>ÌMXCUTGRIP305-07DÎ</p><p>MXCUTGRIP305-07</p></center>
</html>
: 여기에 생성 된 HTML이다
무엇 생성 된 HTML 모습입니까? – VDWWD
나는 당신을 보여주기 위해 편집 하겠지만, 서버 쪽에서 생성 되었기 때문에 읽기가 조금 어렵다 – alexay68
코드는 시도 할 때 작동한다. 확장 기능'.eot','.woff' 및'.woff2'가 IIS에서 허용되는 MIME 유형인지 확인할 수 있습니까? 그렇지 않으면 브라우저에 파일이 제공되지 않고 404가 표시됩니다. – VDWWD