If we manually modify the .omr file,
Can we generate PDF and png files from our modified .omr file?
Can you please explain a bit more that in which way you want to edit the .omr file and what type of PDF document or image file you expect to generate using Aspose.OMR? We will further proceed to assist you accordingly.
Here is my sample text template and generated .omr file and .png file.
#Question Paper Type
(1) (2) (3) (4) (5)
OMR.png (80.1 KB)
The generated .omr file looks like this
{
"Version": "1.0",
"Name": "MyTemplate",
"Pages": [
{
"Height": 3508,
"Width": 2480,
"Elements": [
{
"Type": "ChoiceBox",
"Name": "Question1",
"Width": 617.6839599609375,
"Height": 78,
"Top": 272,
"Left": 305,
"AlignedHorizontally": false,
"AlignedVertically": false,
"BubbleHeight": 70,
"BubbleWidth": 70,
"Bubbles": [
{
"Value": "1",
"Top": 272,
"Left": 305,
"IsValid": true
},
{
"Value": "2",
"Top": 272,
"Left": 428,
"IsValid": true
},
{
"Value": "3",
"Top": 272,
"Left": 552,
"IsValid": true
},
We have manually modified it to the bubbles start from very left and closer to each other as seen below
{
"Version": "1.0",
"Name": "MyTemplate",
"Pages": [
{
"Height": 3508,
"Width": 2480,
"Elements": [
{
"Type": "ChoiceBox",
"Name": "Question1",
"Width": 617.6839599609375,
"Height": 78,
"Top": 272,
"Left": 305,
"AlignedHorizontally": false,
"AlignedVertically": false,
"BubbleHeight": 70,
"BubbleWidth": 70,
"Bubbles": [
{
"Value": "1",
"Top": 272,
"Left": 30,
"IsValid": true
},
{
"Value": "2",
"Top": 272,
"Left": 100,
"IsValid": true
},
{
"Value": "3",
"Top": 272,
"Left": 170,
"IsValid": true
},
{
"Value": "4",
"Top": 272,
"Left": 240,
"IsValid": true
},
Now we need to generate .png and .pdf files using modified .omr file so that the bubbles should be placed on our desired position.
A feature request as OMRNET-190 has been logged in our issue management system to implement your requirements. We will further look into its details and investigate the feasibility of it. We will let you know as soon as the ticket is resolved. Please be patient and spare us some time.
We have improved layout of generated template with a parent element.
Specifically at 23.12 release we added a PositionedBlock to work with absolute coordinates: Aspose.OMR for .NET 23.12.0 - Release Notes