Rank: Newbie
Groups: Registered
Joined: 6/5/2016(UTC) Posts: 2  Thanks: 1 times
|
I'm evaluating this library for a project that searches the resulting text for various values. When I try to read the text of out the created PDF it's now saying there is no PDF Header. I realise this is probably a Tesseract issue but it there a way to tell the library to create a PDF containing a valid header?
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Do you use BeginDocument/EndDocument like in sample below? Code:
using (var api = OcrApi.Create())
{
api.Init(Languages.English);
using (var renderer = OcrPdfRenderer.Create("multipage_pdf_file", "c:\\YourApp\\tessdata\\"))
{
renderer.BeginDocument("Title");
api.ProcessPages(@"c:\multipage.tif", null, 0, renderer);
renderer.EndDocument();
}
}
|
 1 user thanked Paul Rayman for this useful post.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/5/2016(UTC) Posts: 2  Thanks: 1 times
|
Yes, I had used the example code pretty much as it. Turns out it was my mistake though and I wasn't actually looking a the correct version of the created file. Thanks for the quick response though.
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close