How to rotate text in Kofax Transformation? - text

I'am new in Kofax. Task - to recognize a couple of vertical words. Almost all text in document is horisontal. Only two words - vertical. In Kofax Capture I can do it easily:
My task - do the same in Kofax Transformation. I did not find a standard solution. I also could not find solution in Internet (for example some tricky script). Is this possible in Kofax Transformation?
Thank you in advance.

OCR comes in two flavors in Kofax Transformations:
Page profiles. As the name suggests, a page profile is used to read the entirety of one individual page.
Zone profiles. These profiles are typically used with an Advanced Zone Locator.
Page profiles can rotate a given page. Imagine you have a document with three pages, and page number is is in landscape - if permitted, the OCR profile will rotate page number 2 while 1 and 3 will remain unchanged (i.e. portrait).
However, a page profile can only rotate the page as a whole -- not individual paragraphs or words. Moving forward, here are your options:
If your text appears always at the same location: use an Advanded Zone Locator.
If your text can be anywhere, try anchoring with a different locator (Format Locator), and move your AZL's zone by script (you can use some the parts from this link).
If neither is true or possible, you can rotate the page in script, and the re-execute a different page profile. Here's some code to get you started.

Related

How/which format to create multi-page printable documents with precise geometry/layout?

I would like to automatically generate calendar pages with very specific information and a very specific layout and ideally have all pages in a single document (can be PDF, doesn't have to be). For they layout of the boxes, text placement etc. I would like to be able to control the geometry very precisely so it's the same on every page and reproducible.
I could create SVG with exact dimensions, but I'm not sure about the part where I actually turn it into a document for printing.
With LaTeX I can most likely generate what I would like to have, but am unsure whether I have precise enough control over the dimensions of all my elements.
Creating Postscript or even a PDF "from scratch" seems a little too intimidating.
I know there may be more than one solution to this, but I'm happy to explore several options and see what works best with my experience.

"Book like" view in Openseadragon (several "2 pages" sequences)

Openseadragon newbbie here !
I'm trying to display images by group of 2 AND keeping sequence mode activated, so I can "turn pages".
I managed to display 2 pages, I managed to read pages 1 by 1 in sequence mode, ...
But I just didn't find a way to do both.
To display 2 pages, I loaded 2 tiles sets and configured "sequenceMode=false". Then I set coordinates, to display visuals aside.
To read pages 1 by 1, I loaded several tiles and configured "sequenceMode = true".
What I would like to do is display two visuals (= tiles sets) aside (like an open book). And then, on "next" button click, display the two next visuals from my "tilesSources" array... and so on !
Thank you for your help !
I recommend keeping sequence mode off, like you did for the two pages, and lay out the entire sequence (in pairs) that way. You should then create your own next/previous buttons and use viewer.viewport.fitBounds to animate the viewer to each pair as needed.
Here's an example of a system that does something like that (plus a lot more):
https://iangilman.com/osd/test/demo/m2/
Press the "book" button at the top to see the "two-page" mode. The code for this is here:
https://github.com/openseadragon/openseadragon/tree/master/test/demo/m2
Of course you don't need all of that code, but hopefully it can be a helpful reference.

Adding Multiple NSTextContainers to an NSLayoutManager

I notice that you can add multiple text containers to a layout manager in Objective-C using the addTextContainer:(NSTextContainer *)textContainer selector. Using TextKit, I've only ever had to add one text container, and when messing around with multiple text containers, all of the textviews just get filled with the same text from the text storage linked to the layout manager. I'm simply curious, but when would I ever need to add multiple text containers to one layout manager?
One NSLayoutManger to Multiple Text Containers when you need the text within the associated NSTextStorage to span over multiple pages (normally would each be an NSTextView) as in a word processor spreading its text over multiple pages.
The NSLayoutManager is clever enough to split the text in NSTextStorage into each NSTextContainer.
... the NSTextStorage object’s data and lay them out within the area defined by the NSTextContainer object.
This configuration is limited by having only one NSTextContainer-NSTextView pair. In such an arrangement, the text flows uninterrupted within the area defined by the NSTextContainer.
Page breaks, multicolumn layout, and more complex layouts can’t be accommodated by this arrangement.
By using multiple NSTextContainer-NSTextView pairs, more complex layout arrangements are possible. For example, to support page breaks, an application can configure the text objects as shown in Figure 3-4.
Common Configurations
https://developer.apple.com/library/content/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TextSystemArchitecture/ArchitectureOverview.html

Embedding yammer in small sections

I'm using Yammer Embed to show a network feed on a SharePoint Intranet's homepage. Webpart's width is 460px.
PROBLEM:
A terrible horizontal scroll is rendered within the iframe when feed contains large images. Yammer embedded don't re-size images enough to fit in a small area like this one.
AT A GLANCE:
1) Skinny Mode (less than 400px) seems to remove some elements like profile picture but other feed pictures remain there.
2) Customizing everything from scratch using REST API is not an option for now, $ and time.
Has anyone come across this issue with Yammer Embed? Any ideas or options I'm missing here? Some attribute in the config section to ignore images or force a max width will be great.
Currently there is no workaround for this as Embed in Skinny mode removes too many components, and Yammer does not promote creating everything from scratch using the APIs.
I think we can all agree this is not expected behavior though. I've filed an internal bug for this. Thanks for reporting.
Update (8/19/2014):
A fix for the horizontal scrollbar will ship tonight.

Organizing placemarks in Google Earth Plugin/KML

I am looking for some insight on if / how I can better approach creating my KML in order to make my data more readable when loaded by via a custom app developed around the Google Earth Plugin.
My constraints are:
I have no ability to do anything with the custom app or the plugin,
I can only provide KML files and take advantage of any features
built into the Google Earth Plugin.
The side bar where you select data to display does not list the folders of the selected KML as a sub menu like I have seen in Google Earth.
My data looks like:
Hundreds of Data points sometimes quite close together, which I am
currently displaying as placemarks, with no names set (was too noisy
on the map). I supply additional details on the placemark in the
description bubble / balloon.
Placemarks are frequently related to one another (i.e. there may be
4 placemarks representing a distinct group (e.g. coffee shops)).
What I have found so far:
There is no way for me to group pins as I zoom in and out without access to the JavaScript API / ability to do some amount of front end programming (i.e. there is no way to specify in the KML that pins should be grouped based on zoom level. I have noted the zoom level visibility settings which I do not believe accomplish what I am looking to do).
When clicking on a placemark there is no way to identify the other placemarks which are in the same group (i.e. all coffee shops) such as by changing their style (again note that to work for me this would have to be native functionality whose behaviour can be pre-specified in the KML). I hoped the plugin might provide some default functionality around this with folders, but I haven't been able to find anything.
My questions:
Are my above assumptions correct?
Are there some aspects of the KML spec and how it is displayed by google-earth which might be a good place for me to spend additional time understanding given the nature of my data?
Any suggestions or insight would be very welcome.
Edit: Also considered creating KML Tours to adjust visibility / identify related Placemarks, but could not see how I might start / stop the tour from a given Placemark (e.g. by clicking a link in the description balloon?).
Firstly, a question for you.
Are you wishing to load your 'app' on a mobile device? or are you just trying to do something on a normal computer?
I ask because you mention 'app' - yet in this line
I have no ability to do anything with the custom app or the plugin, I
can only provide KML files and take advantage of any features built
into the Google Earth Plugin.
The Google Earth PLUGIN is not support by mobile devices (yet) so if you can take advantage of it you must be talking about a normal computer scenario. So either a webpage, or a webpage embedded inside another program.
As for
There is no way for me to group pins as I zoom in and out without
access to the JavaScript API / ability to do some amount of front end
programming (i.e. there is no way to specify in the KML that pins
should be grouped based on zoom level. I have noted the zoom level
visibility settings which I do not believe accomplish what I am
looking to do).
Have you looked into using Regions ? With them you can control at what 'zoom' (ie what POV) a placemark becomes visible.
As for
When clicking on a placemark there is no way to identify the other
placemarks which are in the same group (i.e. all coffee shops) such as
by changing their style (again note that to work for me this would
have to be native functionality whose behaviour can be pre-specified
in the KML). I hoped the plugin might provide some default
functionality around this with folders, but I haven't been able to
find anything.
This depends of if you are really using the plug-in (and thus JS) or not. With straight KML I don't think anything is possible. However if you are using the plugin (and some JS) you have number of options depending on how you set up your .kml.
You can 'walk' through your kml file and find all placemarks with the same <style>
You can assign all your placemark id's by - and then using Accessors like this var placemark = ge.getElementById('unique_id');
However it sounds like you are not using JS so I am probably wasting time with this.
Same goes for using tours, IF you are using the plugin and IF you are willing to do some JS coding then YES you can use tours to all kinds of things.
However, if you are talking about a mobile device app, then nothing is possible (except the Regions) and I suggest you edit your question to remove the 'google-earth-plugin' tag.

Resources