When matching PDFs with a blank page in the middle - in FlexiLayout Studio it works fine, but when using the FC engine it is running until the blank page and ignores everything below it.

proccesor.SetDeleteBlankPages(true); didn't help.

Any suggestions?

asked 18 May '16, 10:07

Nir's gravatar image

Nir
213

edited 18 May '16, 10:08


Hey, thanks for the answer. I've managed to find 2 much simpler solutions: one is to set a minimum number of pages in the project properties that is higher than where there's usually a blank page. The second is to add header and footer logic.

link

answered 25 May '16, 13:51

Nir's gravatar image

Nir
213

We would like to suggest you the following workaround to remove blank pages: to use IImageProcessingTools::DetectEmpty and delete empty pages before adding them to the processor object or just do not add such a page. Please be aware, that this method can be not useful if the page is not completely empty and there are some garbage on it. You can find the example of using the IImageProcessingTools in the standard FCE sample "Color Stamps Removal (C#)". Just for example:

IImageProcessingTools tools = engine.CreateImageProcessingTools();

IImageFile imageFile = tools.OpenImageFile(@"Path to your pdf");

for (int i = 0; i < imageFile.PagesCount;i++ )

{

IImage srcImage = imageFile.OpenImagePage(i);

bool isEmpty = tools.DetectEmpty(srcImage);

if (!isEmpty)

{

processor.AddImage(srcImage);

}

}

Please try this and in case you need any additional help please send to SDK_Support@abbyy.com your *.fcproj project (with all used templates), input PDF files and serial number for further investigations?

link

answered 19 May '16, 19:22

Ilya%20Sukhorukov's gravatar image

Ilya Sukhorukov
213

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×49
×18
×4
×2

Asked: 18 May '16, 10:07

Seen: 589 times

Last updated: 25 May '16, 13:51

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal