特定管理 > 支援視覺化與發行 > WVS Loader > WVS Adobe Experience Manager 伺服器整合 > Adobe Experience Manager PDF 轉換公用程式
  
Adobe Experience Manager PDF 轉換公用程式
「Adobe Experience Manager PDF 轉換公用程式」是一個大量轉換公用程式,可讓您將 Reader Extensions 新增至與 Windchill 中「表示」相關聯的 PDF 檔案。欲開始使用此公用程式,必須使用 Adobe Experience Manager 伺服器配置 Windchill Visualization Services (請參閱上述的配置 Adobe Experience Manager 伺服器)。開始之前,請先呼叫公用程式的指令行說明並審核所有可用選項。欲顯示說明,請在 Windchill shell 中執行下列指令:
windchill com.ptc.wvs.server.util.livecycle.LiveCyclePDFConversionUtility -help
執行公用程式包括執行「標記」與「處理已標記」操作。
標記 - 第一步是執行標記流程,它可將標記指示器儲存在系統中的特定 PDF 檔案上。當執行「流程標記」操作時,標記指示器可識別要由 Adobe Experience Manager 伺服器處理以套用 Reader Extensions 的 PDF。此步驟會標記系統中由 Experience Manager 伺服器處理的 PDF 檔案,以在執行第二步「處理已標記」時套用 Reader Extensions。欲標記與 Windchill 系統中「表示」相關聯的所有 PDF 檔案,請在 Windchill shell 中呼叫下列指令:
windchill com.ptc.wvs.server.util.livecycle.LiveCyclePDFConversionUtility -mark
-username=<網站使用者名稱> -password=<網站密碼>
「標記」操作支援可在特定容器中標記 PDF 檔案或可根據修改時間戳記標記 PDF 檔案的其他指令行引數。例如,欲標記與 "Demo Organization" 中「表示」相關聯的所有 PDF 檔案,請在 Windchill shell 中呼叫下列指令:
windchill com.ptc.wvs.server.util.livecycle.LiveCyclePDFConversionUtility -mark
-username=<網站使用者名稱> -password=<網站密碼>
-cont_path=”wt.inf.container.OrgContainer=Demo Organization”
欲標記「示範組織」下 <my_product> 產品中的所有 PDF 檔案,請在 Windchill shell 中呼叫下列指令:
windchill com.ptc.wvs.server.util.livecycle.LiveCyclePDFConversionUtility -mark
-username=<網站使用者名稱> -password=<網站密碼>
-cont_path=”wt.inf.container.OrgContainer=Demo Organization\
wt.pdmlink.PDMLinkProduct=MY_PRODUCT”
欲標記 Windchill 系統中擁有一定範圍內修改時間戳記的所有 PDF 檔案,請在 Windchill shell 中呼叫下列指令:
windchill com.ptc.wvs.server.util.livecycle.LiveCyclePDFConversionUtility -mark
-username=<網站使用者名稱> -password=<網站密碼>
-from=08/12/2012 -to=11/12/2012
處理已標記 - 第二步讓公用程式將系統中的所有已標記 PDF 檔案傳送至已配置的 Adobe Experience Manager 伺服器,以進行處理。最終結果是 PDF 檔案中會啟用 Reader Extensions,且標記指示器會從轉換的 PDF 檔案中移除。「處理已標記」操作支援將 PDF 檔案傳送至已配置 Adobe Experience Manager 伺服器的多個執行緒。必須適當調整 Adobe Experience Manager 伺服器,才能支援同時轉換 PDF 檔案的多個請求。欲讓已配置的 Adobe Experience Manager 伺服器處理所有已標記的 PDF 檔案,請在 Windchill shell 中呼叫下列指令:
windchill com.ptc.wvs.server.util.livecycle.LiveCyclePDFConversionUtility
-process_marked-username=<網站使用者名稱> -password=<網站密碼>
當處理已標記的 PDF 檔案時,記錄訊息會顯示在「應用伺服器」記錄檔中,顯示轉換的整體進度。如果轉換失敗,會在「應用伺服器」記錄檔中顯示一則訊息,說明識別 Windchill 系統中 PDF 檔案的所有必要資訊。以下是「應用伺服器」記錄檔中顯示的一個失敗轉換範例,在此例中,PDF 檔案不允許修改頁面:
[Begin processing batch #1] - Size=10
Exception: ApplicationData=wt.content.ApplicationData:118012 (Cant_Modify_Set.pdf)
DerivedImage=wt.viewmarkup.DerivedImage:118010 (cant_modify)
Representable=wt.part.WTPart:118006 (0000000099, cant_modify, A.1)
Container=wt.pdmlink.PDMLinkProduct:84802 (ProductView Demo)

Caused by: javax.xml.ws.soap.SOAPFaultException: com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002:
Failed to execute the DDX - error messages provided.
Caused by: com.adobe.internal.pdfm.content.FormXObjectServiceException: PDFM_S06016:
Apply Watermark operation failed due to permissions on document "inDoc".
Caused by: com.adobe.internal.pdfm.util.PDFMPermissionException: PDFM_S00014: PAGE_MODIFY permission is required for this operation.;
在執行轉換的 Windchill shell 中執行 Ctrl + C 可以中止「處理已標記」操作。執行 Ctrl + C 之後,約需花費 30 秒的時間,轉換即可中止。轉換中止後,公用程式會顯示一些一般統計,列出該段時間內處理了多少 PDF 檔案。在判斷檔案大小的增加程度及對一些 PDF 檔案的處理時間方面,此資訊很有用。以下是中止轉換時所顯示內容的範例:

*****************************************
Interrupting conversion - please wait
*****************************************
The LiveCycle PDF Conversion Utility has been interrupted. Conversions currently
executing have been interrupted and awaiting conversions have been aborted.


LiveCycle PDF Conversion has completed.
Total execution time: 1.248 minutes(s)
Average time to perform a single conversion: 14.762 second(s)
Number of PDFs successfully converted: 14
Number of failed conversions: 5
Number of timed out conversions: 0
Total file size of all PDFs before conversion: 2659.06 KB
Total file size of all PDFs after conversion: 3358.94 KB
Total file size increase: 699.88 KB
Percentage of total file size increase: %20.84
Average filesize increase per PDF: 49.99 KB

There are 18 remaining marked PDF file(s).