답변:
페이지 번호가 있기 때문에 이것은 완벽한 해결책이 아닐 수도 있습니다. 그러나 스크립팅을 사용하여 어떤 해결책을 찾았습니까?
이 샘플 파일을 다운로드 하여 시스템에 저장하십시오. CS5의 IDML이므로 CS4 +에서 작동해야합니다.
3 페이지와 4 페이지에 DRAFT라는 큰 분홍색 텍스트 블록이 있음을 알 수 있습니다.
당신이 끌어 경우 Script Label
패널 ( Window
> Utilities
> Script Label
), 당신은 "이 DRAFT_LABEL"으로 표시하다고 볼 수 있습니다.
이제 다음 스크립트를 가져 와서 텍스트 편집기에 복사 / 붙여 넣기 한 다음 스크립트 디렉토리에 저장하십시오 (.js 또는 .jsx 파일은 중요하지 않음).
try // to get the path of the file that's active when you run the script.
{
var OpenFilePath = app.documents.item(0).fullName; // Declare a variable representing the open document.
var OpenFile = app.open(File(OpenFilePath), true, 1332757360); // Create a duplicate to work with. In Adobe's world, "1332757360" means "open a copy".
}
catch (err)
{
var OpenFile = "error";
alert("Please save this file before using the script.");
}
var OpenFileLength = OpenFile.pages.length; // Get number of pages of open document and master file.
// These help make the array that stores master markers.
var ArrayCounter = 0;
var FindTheMarkers = new Array();
for (var i=0; i<OpenFileLength; i++) // Loop through every page.
{
ItemsOnPage = OpenFile.pages.item(i).pageItems.length; // Get the number of items on the page.
for (var j=0; j<ItemsOnPage; j++) // Loop through every item.
{
var ScriptLabel = OpenFile.pages.item(i).pageItems.item(j).label;
if (ScriptLabel != "" && ScriptLabel.indexOf("DRAFT_LABEL") == 0) // If the item has a label and it equals what we want it to,
{
FindTheMarkers[ArrayCounter] = i; // Put the page number in the array.
ArrayCounter++; // Advance the counter for next time!
}
}
}
var numberToSubtract = 0; // This compensates for screwing up the page counter when you remove a page.
for (i=0; i<FindTheMarkers.length; i++) // Loop through the array and remove pages!
{
OpenFile.pages.item(FindTheMarkers[i] - numberToSubtract).remove();
numberToSubtract++;
}
스크립트를 실행하기 전에 문서를 저장하십시오 . 그런 다음 실행하십시오!
나는 스크립트를 작성하는 다른 디자이너가 아니므로 가장 우아한 코드가 아닐 수도 있습니다. 그러나 현재 수행중인 작업은 "DRAFT_LABEL"태그가있는 페이지 항목을 문서에서 스캔 한 다음 해당 페이지 번호를 배열에 저장하는 것입니다. 스캔이 완료되면 해당 페이지가 제거됩니다.
그런 다음 초안 페이지가 제거 된 새 파일이 남습니다.
내보내기 대화 상자 창에서 원하는 페이지를 입력하여 PDF로 내보낼 수 있습니다 ...
범위의 숫자 사이에 하이픈을 사용하고 개별 페이지 번호를 구분하려면 쉼표를 사용하십시오.
위의 11 ~ 14, 16 페이지는 제외하고 19 페이지 이후의 것은 제외합니다.
당신이 그 페이지가 문서에 존재하지 않는 것처럼 PDF로 내보낼 의미하는 경우, 따라서 페이지 번호는, 수출에 맞게 리플 로우되지 아니 . 내 보낸 페이지를 기반으로 페이지 번호를 리플 로우하는 방법을 모르겠습니다. 먼저 Indesign 문서에서 페이지를 제거해야합니다.