| name | pitstop-sdk |
| description | Enfocus PitStop Library SDK (v25.11) for PDF preflight, processing, and quality control automation.
๐น Native SDK: "EPL_", "EPM_", "preflight", "Action List", "Preflight Profile", "Certified PDF"
๐น Web Integration: "PitStop Library Container", "PLC", "Docker", "REST API", "cloud preflight"
๐น Processing: "PDF ํ์ง๊ฒ์ฌ", "์ธ์์ฉ PDF", "์์ ๊ด๋ฆฌ", "PDF ๋ ๋๋ง", "์ธ๋ค์ผ ์์ฑ"
๐น Reports: "preflight report", "JSON report", "XML report", "์๋ฌ/๊ฒฝ๊ณ /์์ "
Use when: (1) Processing PDF with preflight profiles, (2) Creating preflight reports,
(3) Web/cloud PDF processing architecture, (4) PLC Docker deployment, (5) MES integration
|
Enfocus PitStop Library SDK
PDF preflight, ์์ , ํ์ง ๊ด๋ฆฌ๋ฅผ ์ํ ์ ๋ฌธ SDK. ์ธ์ ์ํฌํ๋ก์ฐ ์๋ํ ํ์ ๋๊ตฌ.
Quick Start
1. ์ด๊ธฐํ/์ข
๋ฃ
EPL_InitializeInfoStruct initInfo;
SDK_InitStruct(initInfo);
initInfo.mResourceLocation = "/path/to/resources";
initInfo.mTempPath = "/tmp/pitstop";
EPL_Initialize(&initInfo);
EPL_Finalize();
2. PDF ์ฒ๋ฆฌ
EPL_CreatePdfHandleStruct pdfStruct;
SDK_InitStruct(pdfStruct);
pdfStruct.mFilePath = "/path/to/input.pdf";
EPL_CreatePdfHandle(&pdfStruct);
EPL_ProcessStruct processStruct;
SDK_InitStruct(processStruct);
processStruct.mPdfHandle = pdfStruct.mDocumentPdfHandle;
processStruct.mMutatorPath = "/path/to/profile.ppp";
EPL_Process(&processStruct);
EPL_SavePdf(&saveStruct);
EPL_DeletePdfHandle(pdfStruct.mDocumentPdfHandle);
Core Modules
| ๋ชจ๋ | ์ ๋์ด | ์ฉ๋ |
|---|
| Library Management | EPL_Initialize/Finalize | SDK ์ด๊ธฐํ/์ข
๋ฃ |
| Document Processing | EPL_Process | PDF preflight ๋ฐ ์์ |
| Document Handling | EPL_CreatePdfHandle | PDF ์ด๊ธฐ/์ ์ฅ/๋ซ๊ธฐ |
| Preflight Profiles | EPM_* | ํ๋กํ์ผ ์์ฑ/ํธ์ง |
| Reports | EPL_ExportJSONReport | ๊ฒฐ๊ณผ ๋ณด๊ณ ์ ์์ฑ |
| Certified PDF | EPL_*CertifiedWF* | ์ธ์ฆ PDF ์ํฌํ๋ก์ฐ |
| Rendering | EPL_RenderImages | PDFโ์ด๋ฏธ์ง ๋ณํ |
| Color Management | EPL_ConfigureColorManagement | ์์ ๊ด๋ฆฌ ์ค์ |
ํต์ฌ ์ํฌํ๋ก์ฐ
Preflight Only (๊ฒ์ฌ๋ง)
Initialize โ CreatePdfHandle โ Process(profile) โ ExportJSONReport โ DeletePdfHandle โ Finalize
Preflight + Fix (๊ฒ์ฌ ๋ฐ ์์ )
Initialize โ CreatePdfHandle โ Process(profile+actions) โ SavePdf โ ExportJSONReport โ Finalize
Batch Processing
Initialize โ CreateIterator โ Loop(Process each) โ EndIterator โ Finalize
Web Integration (PLC)
์น/ํด๋ผ์ฐ๋ ํ๊ฒฝ์์ PitStop ์ฌ์ฉ ์ PitStop Library Container (PLC) ๊ถ์ฅ:
- Docker ์ปจํ
์ด๋๋ก ๋ฐฐํฌ
- REST API ๊ธฐ๋ณธ ์ ๊ณต
- AWS S3/SQS ๋ค์ดํฐ๋ธ ์ง์
- npm ํจํค์ง:
@enfocussw/pitstop-library-container
์์ธ ๊ฐ์ด๋:
API ์์ธ ๊ฐ์ด๋
์๋ฌ ์ฒ๋ฆฌ ํจํด
EPS_ErrorCodes result = EPL_SomeFunction(¶ms);
if (result != eEPS_NoError) {
char* errorMsg = NULL;
EPL_GetLastErrorDescription(&errorMsg);
printf("Error: %s\n", errorMsg);
}
๋ฆฌ์์ค ์ ๋ฆฌ ์ฒดํฌ๋ฆฌ์คํธ
if (reportHandle) EPL_DeleteReportHandle(reportHandle);
if (pdfHandle) EPL_DeletePdfHandle(pdfHandle);
if (config) EPL_CloseConfiguration(config);
EPL_CollectGarbage();
EPL_Finalize();
์ฐธ๊ณ ์ฌํญ
- ๋ฉํฐ์ค๋ ๋: ๋ณ๋ ํ๋ก์ธ์ค์์ ์ฒ๋ฆฌ (์ค๋ ๋ ์์ ํ์ง ์์)
- Configuration: ์ค์ ์ธํธ๋ฅผ ๋น ๋ฅด๊ฒ ์ ํํ๋ ค๋ฉด ์ฌ๋ฌ Configuration ์ฌ์ฉ
- ๊ตฌ์กฐ์ฒด ์ด๊ธฐํ: ํญ์
SDK_InitStruct() ๋งคํฌ๋ก ์ฌ์ฉ
- ์ธ์ฝ๋ฉ: UTF-8 ๊ถ์ฅ (
eEPS_EncodingUTF8)
PitStop Library SDK v25.11 (build 1637109) - Enfocus (an Esko Company)