PageSourceSearch

https://static.compdf.com/assets/compdfkit/8fRBHbRw.js

js compdf.com collected 2026-10-02 03:13:46 UTC 3,542 bytes, 1 lines download raw bytes

1import{_ as N,a as j,b as q}from"./ChNWbARP.js";import{_ as K,a as O}from"./CETNGRxf.js";import{_ as Z}from"./DhT8Atgx.js";import{_ as J}from"./bczWb78p.js";import{d as Q,u as X,aq as Y,D as ee,ed as D,E as te,B as oe,o as ne,k as se,f as ae,v as o,H as le,I as ie,i as n,g as p,t as re,U as ce,n as L,l as e,e as de,Z as U,P as ue,_ as pe}from"./DmDi6f2f.js";import ge from"./BJHpxWtl.js";import"./CyBkXQ-n.js";import"./DIcn7CO_.js";import"./D7kWn36X.js";import"./Cz7Vg6w3.js";import"./CGu-nvdE.js";import"./D8I9GbYo.js";import"./D5Ra_Dv2.js";import"./DwHch7p_.js";import"./C_Pf3MNE.js";const fe={class:"tip lg:max-w-320px lg:h-72px lg:text-sm lg:px-24px lg:py-16px <lg:max-w-237px <lg:h-64px <lg:text-12px <lg:leading-16px"},me={class:"text-center text-white"},ve=Q({__name:"color-separation",setup(_e){const{locale:g,t:B}=X(),x=Y(),I=ee().public,z=D[g.value].title,E=D[g.value].description,M=te(z,E);oe(M);const r=e(),G=e(!1),b=e(),f=e(!1),a=e(null),m=e(80),S=e(),k=e(!1),c=e(0),P=e("Standalone"),y=e(!1),$={"zh-cn":"zh-CN","zh-tw":"zh-TW",ja:"ja",th:"th",en:"en",ko:"en"};ne(()=>{let s=localStorage.getItem("lastUsedBackend");P.value=s||"Standalone",ge.init({pdfUrl:"https://static.compdf.com/files/ComPDFKit_ColorSeparation_Sample_File.pdf",license:I.key,path:"/",webFontURL:"https://static.compdf.com/fonts/",enableDefaultFont:!0,renderLayerPermission:!0,css:"/css/webview.css"},r.value).then(t=>{const{docViewer:d,UI:i,changeFile:u}=t;
1a.value=d,a.value&&(a.value.changeFile=u),i.setLanguage($[g.value]),i.setHeaderItems(w=>{w.getHeader("rightHeaders").splice(0,1,{type:"actionButton",icon:"OpenFile",text:B("webview.open"),onClick:()=>{if(!C.value.access_token){h(!0);return}u()}})}),d.addEvent("documentloaded",async()=>{i.setActiveToolMode("toolMenu-Separation")})}),document.body.style.overflow="hidden",v(),addEventListener("resize",v),addEventListener("orientationchange",v)}),U("close",()=>{k.value=!1});const H=()=>{if(!C.value.access_token){h(!0);return}a.value&&(a.value.changeFile(),f.value=!1)};U("changeFile",H);const A=()=>{window.innerWidth<=930?r.value.style.height=window.outerHeight-m.value-c.value+"px":r.value.style.height="",S.value.style.height=window.outerHeight-m.value-c.value+"px",b.value.style.height=window.outerHeight-c.value+"px"},v=()=>{c.value=window.outerHeight-window.innerHeight,m.value=window.innerWidth>=930?80:67,A()},C=se(()=>ue().user),l=e(!1),_=e(!1),h=s=>{_.value=s,l.value=!0},R=()=>{l.value=!1,_.value?H():window.open(x("/dashboard/overview"),"_blank"),_.value=!1};return(s,t)=>{const d=q,i=K,u=Z,w=O,F=N,T=J,W=j;return de(),ae("div",{class:"poppins flex flex-col overflow-hidden",ref_key:"container",ref:b},[o(d),le(p("div",fe,[p("span",me,re(s.$t("webview.tip")),1)],512),[[ie,n(G)]]),o(i,{onLogin:t[0]||(t[0]=V=>h(!1)),link:n(x)("/guides/pdf-sdk/web/overview"),showTip:!0,goContact:!0},null,8,["link"]),o(u,{modelValue:n(l),"onUpdate:modelValue":t[1]||(t[1]=V=>ce(l)?l.value=V:null),onSuccess:R},null,8,["modelValue"]),p("div",{class:"lg:flex lg:flex-1 lg:p-16px lg:pt-0 lg:gap-12px lg:bg-[#E5ECFF]",ref_key:"viewerContainer",ref:S},[o(w,{activeType:"view"}),o(F,{class:L(n(f)?"":"<lg:hidden lg:flex")},null,8,["class"]),o(T,{platform:"7",dialogVisible:n(k)},null,8,["dialogVisible"]),p("div",{id:"webviewer",ref_key:"viewer",ref:r,class:L(["bg-[#fff] rounded-8px overflow-hidden",n(f)?"<lg:hidden":""])},null,2),o(W,{showGuide:n(y),"onUpdate:closeGuide":t[2]||(t[2]=()=>y.value=!1)},null,8,["showGuide"])],512)],512)}}}),ze=pe(ve,[["__scopeId","data-v-36ef0e82"]]);export{ze as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.