Community

Export multi-pages searchable pdf via FCTools library Answered

Hi,

I have the sample code as below

      IPictureObject FinalPicture = Document.Pages[0].Picture.CreateEditableCopy();

      IExportImageSavingOptions options = FCTools.NewImageSavingOptions(); 

      options.Format = "pdf-a-s"; 

      options.RecognitionLanguages="ChineseTaiwan+English"; 

      options.PdfAVersion= TPdfAVersion.PAV_3a;    

      options.PdfTextSearchArea = TPdfTextSearchAreaType.PTSAT_AllPages;

      options.SaveAttachmentsToPdf = true;

      options.ShouldOverwrite = true;

      options.Resolution = Document.Pages[0].Picture.YResolution;

      options.ColorType = "FullColor"; 

      FinalPicture.SaveAs(@"\\WIN-VIP4AJDQNIS\output\output.pdf", options);

It seems can't export multi-pages in code.

1.Is there any method can export multi-pages to searchable pdf in script?

2.If yes, I have 3 docdef (INV/PCK/Others) in a document. Can I separate to 3 searchable pdf ?(like page1~2->INV.pdf, page3~4->PCK.pdf, page5~7->Others.pdf) 

 

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Permanently deleted user

    Hello,

    Yes, you may save the multi-pages pdf  on the Document level. Use the Document. SaveAs method (Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Objects > IDocument).

    The export of a document into multiple pdf files separated by sections by custom export script is possible but is difficult to implement and out of scope of this forum. For this purpose please contact your regional support.

    1

Please sign in to leave a comment.