How to fix error in pdf2djvu: “Bogus memory allocation size”
I am using pdf2djvu
to convert a pdf file into a djvu file, but got this error while trying to convert either bundled or indirect multi-page djvu file:
$ pdf2djvu 1.pdf -o 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
$ pdf2djvu 1.pdf -i 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
I was wondering what is wrong here and how I shall fix the problem? You can suggest another application other than pdf2djvu, to convert it to djvu.
My pdf file can be downloaded from here , in case that you may wonder what is special about it.
pdf djvu format-conversion
add a comment |
I am using pdf2djvu
to convert a pdf file into a djvu file, but got this error while trying to convert either bundled or indirect multi-page djvu file:
$ pdf2djvu 1.pdf -o 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
$ pdf2djvu 1.pdf -i 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
I was wondering what is wrong here and how I shall fix the problem? You can suggest another application other than pdf2djvu, to convert it to djvu.
My pdf file can be downloaded from here , in case that you may wonder what is special about it.
pdf djvu format-conversion
add a comment |
I am using pdf2djvu
to convert a pdf file into a djvu file, but got this error while trying to convert either bundled or indirect multi-page djvu file:
$ pdf2djvu 1.pdf -o 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
$ pdf2djvu 1.pdf -i 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
I was wondering what is wrong here and how I shall fix the problem? You can suggest another application other than pdf2djvu, to convert it to djvu.
My pdf file can be downloaded from here , in case that you may wonder what is special about it.
pdf djvu format-conversion
I am using pdf2djvu
to convert a pdf file into a djvu file, but got this error while trying to convert either bundled or indirect multi-page djvu file:
$ pdf2djvu 1.pdf -o 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
$ pdf2djvu 1.pdf -i 1.djvu
1.pdf:
- page #1 -> #1
Bogus memory allocation size
I was wondering what is wrong here and how I shall fix the problem? You can suggest another application other than pdf2djvu, to convert it to djvu.
My pdf file can be downloaded from here , in case that you may wonder what is special about it.
pdf djvu format-conversion
pdf djvu format-conversion
edited Mar 18 at 1:54
Richlv
1054
1054
asked Jul 5 '11 at 23:48
TimTim
8,25043105178
8,25043105178
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You have to install python-djvu package and it should work. Worked for me
Good luck
John
add a comment |
To convert djvu to pdf use DJView and export as PDF
Step - 1 : Goto software centre
Step - 2 : Install DJview4
Step - 3 : Run DJview (Applications - Graphics - DJView4)
Step - 4 : Open your .djvu document
Step - 5 : Menu - Export As: PDF
add a comment |
This question is specific to pdf2djvu. pdf2djvu and other pdf/djvu FOSS tools are available for both windows and Ubuntu, so I am posting a working solution here.
At the time of writing, I am using pdf2djvu on a Windows machine.
After downloading and splitting your PDF into hundreds of single-page PDFs (using pdftk), I ran pdf2djvu over all files. It turns out that only the Cover page has some problem with pdf2djvu, rest of the PDFs are easily converted to DJVU.
In DOS it was a single line:
FORFILES /M *.pdf /C "cmd /c echo. & echo @path @fname & C:PDFpdf2djvu-0.7.14pdf2djvu.exe -o @fname.djvu @file"
and the result was:
"C:Test1pg_0001.pdf" "pg_0001"
PDF error (81): Illegal character <3f> in hex string
PDF error (82): Illegal character <78> in hex string
PDF error (83): Illegal character <70> in hex string
...
...
PDF error (130): Illegal character <22> in hex string
PDF error (131): Illegal character <3f> in hex string
pg_0001.pdf:
- page #1 -> #1
Bogus memory allocation size
"C:Test1pg_0002.pdf" "pg_0002"
pg_0002.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.076:1, 98.69% saved, 437896 bytes in, 5756 bytes out
"C:Test1pg_0003.pdf" "pg_0003"
pg_0003.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.094:1, 93.37% saved, 14143 bytes in, 937 bytes out
"C:Test1pg_0004.pdf" "pg_0004"
pg_0004.pdf:
- page #1 -> #1
0.002 bits/pixel; 6.835:1, 85.37% saved, 16875 bytes in, 2469 bytes out
"C:Test1pg_0005.pdf" "pg_0005"
pg_0005.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.156:1, 93.40% saved, 14141 bytes in, 933 bytes out
"C:Test1pg_0006.pdf" "pg_0006"
pg_0006.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.103:1, 98.69% saved, 437894 bytes in, 5754 bytes out
"C:Test1pg_0007.pdf" "pg_0007"
pg_0007.pdf:
- page #1 -> #1
0.009 bits/pixel; 3.635:1, 72.49% saved, 32286 bytes in, 8882 bytes out
"C:Test1pg_0008.pdf" "pg_0008"
pg_0008.pdf:
- page #1 -> #1
0.006 bits/pixel; 5.649:1, 82.30% saved, 36852 bytes in, 6524 bytes out
"C:Test1pg_0009.pdf" "pg_0009"
pg_0009.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.190:1, 93.42% saved, 14142 bytes in, 931 bytes out
"C:Test1pg_0010.pdf" "pg_0010"
pg_0010.pdf:
- page #1 -> #1
0.010 bits/pixel; 4.485:1, 77.70% saved, 45330 bytes in, 10108 bytes out
...
So you can do the same in Ubuntu, skip the erroneous pages, and convert rest of the pages into djvu, and then bundle them back into a single DJVU file by using djvm package in Ubuntu from DJVU-Libre.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f51939%2fhow-to-fix-error-in-pdf2djvu-bogus-memory-allocation-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have to install python-djvu package and it should work. Worked for me
Good luck
John
add a comment |
You have to install python-djvu package and it should work. Worked for me
Good luck
John
add a comment |
You have to install python-djvu package and it should work. Worked for me
Good luck
John
You have to install python-djvu package and it should work. Worked for me
Good luck
John
answered Sep 2 '12 at 21:15
JohnJohn
212
212
add a comment |
add a comment |
To convert djvu to pdf use DJView and export as PDF
Step - 1 : Goto software centre
Step - 2 : Install DJview4
Step - 3 : Run DJview (Applications - Graphics - DJView4)
Step - 4 : Open your .djvu document
Step - 5 : Menu - Export As: PDF
add a comment |
To convert djvu to pdf use DJView and export as PDF
Step - 1 : Goto software centre
Step - 2 : Install DJview4
Step - 3 : Run DJview (Applications - Graphics - DJView4)
Step - 4 : Open your .djvu document
Step - 5 : Menu - Export As: PDF
add a comment |
To convert djvu to pdf use DJView and export as PDF
Step - 1 : Goto software centre
Step - 2 : Install DJview4
Step - 3 : Run DJview (Applications - Graphics - DJView4)
Step - 4 : Open your .djvu document
Step - 5 : Menu - Export As: PDF
To convert djvu to pdf use DJView and export as PDF
Step - 1 : Goto software centre
Step - 2 : Install DJview4
Step - 3 : Run DJview (Applications - Graphics - DJView4)
Step - 4 : Open your .djvu document
Step - 5 : Menu - Export As: PDF
edited Apr 16 '12 at 15:50
answered Apr 3 '12 at 8:58
TachyonsTachyons
13.6k1465113
13.6k1465113
add a comment |
add a comment |
This question is specific to pdf2djvu. pdf2djvu and other pdf/djvu FOSS tools are available for both windows and Ubuntu, so I am posting a working solution here.
At the time of writing, I am using pdf2djvu on a Windows machine.
After downloading and splitting your PDF into hundreds of single-page PDFs (using pdftk), I ran pdf2djvu over all files. It turns out that only the Cover page has some problem with pdf2djvu, rest of the PDFs are easily converted to DJVU.
In DOS it was a single line:
FORFILES /M *.pdf /C "cmd /c echo. & echo @path @fname & C:PDFpdf2djvu-0.7.14pdf2djvu.exe -o @fname.djvu @file"
and the result was:
"C:Test1pg_0001.pdf" "pg_0001"
PDF error (81): Illegal character <3f> in hex string
PDF error (82): Illegal character <78> in hex string
PDF error (83): Illegal character <70> in hex string
...
...
PDF error (130): Illegal character <22> in hex string
PDF error (131): Illegal character <3f> in hex string
pg_0001.pdf:
- page #1 -> #1
Bogus memory allocation size
"C:Test1pg_0002.pdf" "pg_0002"
pg_0002.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.076:1, 98.69% saved, 437896 bytes in, 5756 bytes out
"C:Test1pg_0003.pdf" "pg_0003"
pg_0003.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.094:1, 93.37% saved, 14143 bytes in, 937 bytes out
"C:Test1pg_0004.pdf" "pg_0004"
pg_0004.pdf:
- page #1 -> #1
0.002 bits/pixel; 6.835:1, 85.37% saved, 16875 bytes in, 2469 bytes out
"C:Test1pg_0005.pdf" "pg_0005"
pg_0005.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.156:1, 93.40% saved, 14141 bytes in, 933 bytes out
"C:Test1pg_0006.pdf" "pg_0006"
pg_0006.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.103:1, 98.69% saved, 437894 bytes in, 5754 bytes out
"C:Test1pg_0007.pdf" "pg_0007"
pg_0007.pdf:
- page #1 -> #1
0.009 bits/pixel; 3.635:1, 72.49% saved, 32286 bytes in, 8882 bytes out
"C:Test1pg_0008.pdf" "pg_0008"
pg_0008.pdf:
- page #1 -> #1
0.006 bits/pixel; 5.649:1, 82.30% saved, 36852 bytes in, 6524 bytes out
"C:Test1pg_0009.pdf" "pg_0009"
pg_0009.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.190:1, 93.42% saved, 14142 bytes in, 931 bytes out
"C:Test1pg_0010.pdf" "pg_0010"
pg_0010.pdf:
- page #1 -> #1
0.010 bits/pixel; 4.485:1, 77.70% saved, 45330 bytes in, 10108 bytes out
...
So you can do the same in Ubuntu, skip the erroneous pages, and convert rest of the pages into djvu, and then bundle them back into a single DJVU file by using djvm package in Ubuntu from DJVU-Libre.
add a comment |
This question is specific to pdf2djvu. pdf2djvu and other pdf/djvu FOSS tools are available for both windows and Ubuntu, so I am posting a working solution here.
At the time of writing, I am using pdf2djvu on a Windows machine.
After downloading and splitting your PDF into hundreds of single-page PDFs (using pdftk), I ran pdf2djvu over all files. It turns out that only the Cover page has some problem with pdf2djvu, rest of the PDFs are easily converted to DJVU.
In DOS it was a single line:
FORFILES /M *.pdf /C "cmd /c echo. & echo @path @fname & C:PDFpdf2djvu-0.7.14pdf2djvu.exe -o @fname.djvu @file"
and the result was:
"C:Test1pg_0001.pdf" "pg_0001"
PDF error (81): Illegal character <3f> in hex string
PDF error (82): Illegal character <78> in hex string
PDF error (83): Illegal character <70> in hex string
...
...
PDF error (130): Illegal character <22> in hex string
PDF error (131): Illegal character <3f> in hex string
pg_0001.pdf:
- page #1 -> #1
Bogus memory allocation size
"C:Test1pg_0002.pdf" "pg_0002"
pg_0002.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.076:1, 98.69% saved, 437896 bytes in, 5756 bytes out
"C:Test1pg_0003.pdf" "pg_0003"
pg_0003.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.094:1, 93.37% saved, 14143 bytes in, 937 bytes out
"C:Test1pg_0004.pdf" "pg_0004"
pg_0004.pdf:
- page #1 -> #1
0.002 bits/pixel; 6.835:1, 85.37% saved, 16875 bytes in, 2469 bytes out
"C:Test1pg_0005.pdf" "pg_0005"
pg_0005.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.156:1, 93.40% saved, 14141 bytes in, 933 bytes out
"C:Test1pg_0006.pdf" "pg_0006"
pg_0006.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.103:1, 98.69% saved, 437894 bytes in, 5754 bytes out
"C:Test1pg_0007.pdf" "pg_0007"
pg_0007.pdf:
- page #1 -> #1
0.009 bits/pixel; 3.635:1, 72.49% saved, 32286 bytes in, 8882 bytes out
"C:Test1pg_0008.pdf" "pg_0008"
pg_0008.pdf:
- page #1 -> #1
0.006 bits/pixel; 5.649:1, 82.30% saved, 36852 bytes in, 6524 bytes out
"C:Test1pg_0009.pdf" "pg_0009"
pg_0009.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.190:1, 93.42% saved, 14142 bytes in, 931 bytes out
"C:Test1pg_0010.pdf" "pg_0010"
pg_0010.pdf:
- page #1 -> #1
0.010 bits/pixel; 4.485:1, 77.70% saved, 45330 bytes in, 10108 bytes out
...
So you can do the same in Ubuntu, skip the erroneous pages, and convert rest of the pages into djvu, and then bundle them back into a single DJVU file by using djvm package in Ubuntu from DJVU-Libre.
add a comment |
This question is specific to pdf2djvu. pdf2djvu and other pdf/djvu FOSS tools are available for both windows and Ubuntu, so I am posting a working solution here.
At the time of writing, I am using pdf2djvu on a Windows machine.
After downloading and splitting your PDF into hundreds of single-page PDFs (using pdftk), I ran pdf2djvu over all files. It turns out that only the Cover page has some problem with pdf2djvu, rest of the PDFs are easily converted to DJVU.
In DOS it was a single line:
FORFILES /M *.pdf /C "cmd /c echo. & echo @path @fname & C:PDFpdf2djvu-0.7.14pdf2djvu.exe -o @fname.djvu @file"
and the result was:
"C:Test1pg_0001.pdf" "pg_0001"
PDF error (81): Illegal character <3f> in hex string
PDF error (82): Illegal character <78> in hex string
PDF error (83): Illegal character <70> in hex string
...
...
PDF error (130): Illegal character <22> in hex string
PDF error (131): Illegal character <3f> in hex string
pg_0001.pdf:
- page #1 -> #1
Bogus memory allocation size
"C:Test1pg_0002.pdf" "pg_0002"
pg_0002.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.076:1, 98.69% saved, 437896 bytes in, 5756 bytes out
"C:Test1pg_0003.pdf" "pg_0003"
pg_0003.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.094:1, 93.37% saved, 14143 bytes in, 937 bytes out
"C:Test1pg_0004.pdf" "pg_0004"
pg_0004.pdf:
- page #1 -> #1
0.002 bits/pixel; 6.835:1, 85.37% saved, 16875 bytes in, 2469 bytes out
"C:Test1pg_0005.pdf" "pg_0005"
pg_0005.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.156:1, 93.40% saved, 14141 bytes in, 933 bytes out
"C:Test1pg_0006.pdf" "pg_0006"
pg_0006.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.103:1, 98.69% saved, 437894 bytes in, 5754 bytes out
"C:Test1pg_0007.pdf" "pg_0007"
pg_0007.pdf:
- page #1 -> #1
0.009 bits/pixel; 3.635:1, 72.49% saved, 32286 bytes in, 8882 bytes out
"C:Test1pg_0008.pdf" "pg_0008"
pg_0008.pdf:
- page #1 -> #1
0.006 bits/pixel; 5.649:1, 82.30% saved, 36852 bytes in, 6524 bytes out
"C:Test1pg_0009.pdf" "pg_0009"
pg_0009.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.190:1, 93.42% saved, 14142 bytes in, 931 bytes out
"C:Test1pg_0010.pdf" "pg_0010"
pg_0010.pdf:
- page #1 -> #1
0.010 bits/pixel; 4.485:1, 77.70% saved, 45330 bytes in, 10108 bytes out
...
So you can do the same in Ubuntu, skip the erroneous pages, and convert rest of the pages into djvu, and then bundle them back into a single DJVU file by using djvm package in Ubuntu from DJVU-Libre.
This question is specific to pdf2djvu. pdf2djvu and other pdf/djvu FOSS tools are available for both windows and Ubuntu, so I am posting a working solution here.
At the time of writing, I am using pdf2djvu on a Windows machine.
After downloading and splitting your PDF into hundreds of single-page PDFs (using pdftk), I ran pdf2djvu over all files. It turns out that only the Cover page has some problem with pdf2djvu, rest of the PDFs are easily converted to DJVU.
In DOS it was a single line:
FORFILES /M *.pdf /C "cmd /c echo. & echo @path @fname & C:PDFpdf2djvu-0.7.14pdf2djvu.exe -o @fname.djvu @file"
and the result was:
"C:Test1pg_0001.pdf" "pg_0001"
PDF error (81): Illegal character <3f> in hex string
PDF error (82): Illegal character <78> in hex string
PDF error (83): Illegal character <70> in hex string
...
...
PDF error (130): Illegal character <22> in hex string
PDF error (131): Illegal character <3f> in hex string
pg_0001.pdf:
- page #1 -> #1
Bogus memory allocation size
"C:Test1pg_0002.pdf" "pg_0002"
pg_0002.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.076:1, 98.69% saved, 437896 bytes in, 5756 bytes out
"C:Test1pg_0003.pdf" "pg_0003"
pg_0003.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.094:1, 93.37% saved, 14143 bytes in, 937 bytes out
"C:Test1pg_0004.pdf" "pg_0004"
pg_0004.pdf:
- page #1 -> #1
0.002 bits/pixel; 6.835:1, 85.37% saved, 16875 bytes in, 2469 bytes out
"C:Test1pg_0005.pdf" "pg_0005"
pg_0005.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.156:1, 93.40% saved, 14141 bytes in, 933 bytes out
"C:Test1pg_0006.pdf" "pg_0006"
pg_0006.pdf:
- page #1 -> #1
0.006 bits/pixel; 76.103:1, 98.69% saved, 437894 bytes in, 5754 bytes out
"C:Test1pg_0007.pdf" "pg_0007"
pg_0007.pdf:
- page #1 -> #1
0.009 bits/pixel; 3.635:1, 72.49% saved, 32286 bytes in, 8882 bytes out
"C:Test1pg_0008.pdf" "pg_0008"
pg_0008.pdf:
- page #1 -> #1
0.006 bits/pixel; 5.649:1, 82.30% saved, 36852 bytes in, 6524 bytes out
"C:Test1pg_0009.pdf" "pg_0009"
pg_0009.pdf:
- page #1 -> #1
0.001 bits/pixel; 15.190:1, 93.42% saved, 14142 bytes in, 931 bytes out
"C:Test1pg_0010.pdf" "pg_0010"
pg_0010.pdf:
- page #1 -> #1
0.010 bits/pixel; 4.485:1, 77.70% saved, 45330 bytes in, 10108 bytes out
...
So you can do the same in Ubuntu, skip the erroneous pages, and convert rest of the pages into djvu, and then bundle them back into a single DJVU file by using djvm package in Ubuntu from DJVU-Libre.
answered Jul 2 '14 at 13:05
AdmiralAdmiral
1811311
1811311
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f51939%2fhow-to-fix-error-in-pdf2djvu-bogus-memory-allocation-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown