ASP.NET MVC Core pdf뷰어사용 질문입니다.
추천0 비추천 0
페이지 정보
작성자 블랙워그레이몬 작성일 2024-04-24 15:04 조회 41회 댓글 0건제품 버전 : Enterprise버전
컨트롤 이름 : c1-pdf-viewer
본문
관련링크
<c1-pdf-viewer service-url="http://localhost:22147/Content/" file-path="PdfFilesRoot/invoice.pdf"></c1-pdf-viewer>
cshtml에서 위와 같이 해주고 크롬을 실행하면
크롬 콘솔에 404코드와 찾을 수 없다고 하는데요.
http://localhost:22147/invoice.pdf/$pdf?_=1713938082382
여기에서 /$pdf?_=1713938082382 이러한 스트링이 붙는 이유가 뭔지 알고 싶습니다.
그리고 안 나오게 하려면 어떻게 해야하나요?
아래는 전체 코드 입니다.
@{ Layout = null; this.C1EnableDeferredScripts(false); } <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ComponentOne MVC PdfViewer</title> @* <meta http-equiv="X-UA-Compatible" content="IE=edge" /> *@ <meta http-equiv="X-UA-Compatible" content="IE=chrome" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <c1-styles /> <c1-scripts> <c1-flex-viewer-scripts /> </c1-scripts> </head> <body> <c1-pdf-viewer service-url="http://localhost:22147/" file-path="invoice.pdf"></c1-pdf-viewer> </body> </html>
http://localhost:22147/invoice.pdf
하면 invoice.pdf 파일이 렌더링 됩니다.
댓글목록
등록된 댓글이 없습니다.