Welcome to the multivio server.
Available pathes:
.*?/document/.*?
render
Using the GET method it return a thumbnail in PNG format of a given size for a given
image.
Arguments:
- url --string-- url of an image file.
- max_width --integer-- max width of the output image in pixel. Default(None)
- max_height --integer-- max height of the output image in pixel. Default(None)
- page_nr --integer-- extract the page . Pdf only. Default(1).
- angle --integer-- angle rotation. Default(0).
Image
example.
PDF
example.
search
Search a PDF file and return results in a dictionary structure.
Arguments:
- url --string-- url of a pdf file. Required.
- query --string-- text to find in the document. Required.
- from --integer-- start the search at page from. Default(1).
- to --integer-- end the search at page to. Default(<number_of_pages>).
- max_results --integer-- limit the number of the returned results. Default(50).
- context_size --integer-- approximate number of characters of context around found words (left & right).
Default(0).
- angle --integer-- angle of display in degrees. Default(0).
Search example.
get_text
Return the text contained inside the selected area.
Arguments:
- url --string-- url of a pdf file. Required.
- page_nr --integer-- Number of the page to get text from. Default(1).
- x1 --integer-- x-coordinate of upper-left point of selected area. Default(0).
- y1 --integer-- y-coordinate of upper-left point of selected area. Default(0).
- x2 --integer-- x-coordinate of bottom-right point of selected area. Default(0).
- y2 --integer-- y-coordinate of bottom-right point of selected area. Default(0).
Get text example.
get_indexing
Returns index of a range of pages of the document.
If a range of pages is specified with 'from' and 'to', 'page_nr' is ignored. Else, page number is used.
Arguments:
- url --string-- url of a pdf file. Required.
- page_nr --integer-- Number of the page to get the indexing from. Default(1).
- from --integer-- start page to get indexing of a range of pages. Default(1).
- to --integer-- end page to get indexing of a range of pages. Default(<number_of_pages>).
Example with a page.
Example with a range of pages.
.*?/get.*?
Using the GET method it return the metadata, the
logical structure and the physical structure in json format.
Arguments:
- url --string-- url of a xml/pdf file representing the record.
Examples:
GetMetadata:
Examples Mets:
Examples Pdf:
GetLogicalStructure:
Examples Mets:
Examples Pdf:
GetPhysicalStructure:
Examples Mets:
Examples Pdf:
.*?/website/.*?
Create a image as the reder of a website.
Arguments:
- max_width --integer-- max width of the output image in pixel. Default(None)
- max_height --integer-- max height of the output image in pixel. Default(None)
- url --string-- url of an image file.
Example
of redering RERO DOC web site.
.*?/log/post
Using the POST method it put a log message in" "the server.
.*?/version
Asks the server to obtain a version in json format.
For example:
{
"name" : "Multivio Server",
"version" " : "0.0.1",
"api_version" " : "0.1"
}