pdf_hide icon indicating copy to clipboard operation
pdf_hide copied to clipboard

ERROR: Not enough space available, though adequate disk space available!

Open zenny opened this issue 6 years ago • 6 comments

Hi,

Trying to test the script without installing (directly from the pdf_hide executable from git repo).

$ ./pdf_hide -o ~/Downloads/tomb_manpage_pdf_hide.pdf embed ~/Downloads/pdf_hide_embedded.txt ~/Downloads/tomb_manpage.pdf 
====================
This is PDF_HIDE v0.0
====================
Please enter key: 
ERROR:	Not enough space available (only 15 available, 150 needed)

Strange that it reports of inadequate space even when the 4.4TB of space available!

Debug run shows:

$ pdf_hide -vvvvv -i -o tomb_manpage_pdf_hide.pdf embed ~/Downloads/pdf_hide_embedded.txt ~/Downloads/tomb_manpage.pdf
====================
This is PDF_HIDE v0.0
====================

PDF_HIDE  Copyright (C) 2013  Nicolas Canceill
Distributed under GNU General Public License v3
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to
redistribute it under certain conditions.
Please see LICENSE.md or http://www.gnu.org/licenses/ for details.

Please enter key: 
INFO:	Input file: "/home/zenny/Downloads/tomb_manpage.pdf"
INFO:	Embedding data, please wait...
DEBUG:	===== BEGIN CONFIG =====
DEBUG:	redundancy
	float
	0.1
DEBUG:	input
	str	[31]
	"tomb_manpage_pdf_hide.pdf.qdf"
DEBUG:	bit depth
	int
	4
DEBUG:	improvements
	bool
	True
DEBUG:	FlagStr1 (CheckStr)
	list	[20]
	[10, 3, 11, 12, 14, 3, 4, 9, 11, 3, 8, 8, 9, 2, 14, 3, 1, 13, 9, 12]
DEBUG:	Data to embed
	bytes	[55]
	b'Some random text.\n'
DEBUG:	Data to embed (binary)
	str	[440]
	01010100011010000110100101110011001000000110100101110011001000000110100101110011011100110111010101100101011001000010000001110100011011110010000001110011011100000110010101100011011010010110011001101001011000110010000001110000011001010111001001110011011011110110111000100000011101110110100101110100011010000010000001110011011100000110010101100011011010010110011001101001011000110010000001100101011011010110000101101001011011000010111000001010
DEBUG:	Data
	list	[110]
	[5, 4, 6, 8, 6, 9, 7, 3, 2, 0, 6, 9, 7, 3, 2, 0, 6, 9, 7, 3, 7, 3, 7, 5, 6, 5, 6, 4, 2, 0, 7, 4, 6, 15, 2, 0, 7, 3, 7, 0, 6, 5, 6, 3, 6, 9, 6, 6, 6, 9, 6, 3, 2, 0, 7, 0, 6, 5, 7, 2, 7, 3, 6, 15, 6, 14, 2, 0, 7, 7, 6, 9, 7, 4, 6, 8, 2, 0, 7, 3, 7, 0, 6, 5, 6, 3, 6, 9, 6, 6, 6, 9, 6, 3, 2, 0, 6, 5, 6, 13, 6, 1, 6, 9, 6, 12, 2, 14, 0, 10]
DEBUG:	FlagStr2
	list	[20]
	[1, 0, 13, 4, 0, 14, 6, 10, 5, 4, 3, 0, 0, 5, 2, 12, 13, 12, 2, 0]
DEBUG:	===== END CONFIG =====
ERROR:	Not enough space available (only 37 available, 150 needed

Cheers,

zenny avatar Mar 05 '18 07:03 zenny

Hey did you solve the problem? , I am stuck with the same prob thank

DeliciousBounty avatar Sep 24 '20 11:09 DeliciousBounty

Hi. I have the same issue. The only difference is the size of said space : ./pdf_hide -vvv -i -o test.pdf embed info.txt carrier_file.pdf

Please enter key: 
INFO:   Input file: "carrier_file.pdf"
INFO:   Embedding data, please wait...
DEBUG:  ===== BEGIN CONFIG =====
DEBUG:  input
        str     [14]
        "test.pdf.qdf"
DEBUG:  redundancy
        float
        0.1
DEBUG:  bit depth
        int
        4
DEBUG:  improvements
        bool
        True
DEBUG:  Data to embed
        bytes   [13]
        b'text_to_hide\n'
DEBUG:  Data to embed (binary)
        str     [104]
        01110100011001010111100001110100010111110111010001101111010111110110100001101001011001000110010100001010
DEBUG:  FlagStr1 (CheckStr)
        list    [20]
        [11, 8, 3, 0, 8, 6, 9, 12, 5, 4, 15, 9, 9, 14, 0, 4, 15, 14, 12, 14]
DEBUG:  FlagStr2
        list    [20]
        [8, 0, 6, 15, 9, 15, 14, 11, 8, 0, 3, 5, 11, 10, 2, 2, 13, 3, 0, 8]
DEBUG:  Data
        list    [26]
        [7, 4, 6, 5, 7, 8, 7, 4, 5, 15, 7, 4, 6, 15, 5, 15, 6, 8, 6, 9, 6, 4, 6, 5, 0, 10]
DEBUG:  ===== END CONFIG =====
ERROR:  Not enough space available (only 0 available, 66 needed)

racine-p-a avatar Aug 20 '21 10:08 racine-p-a

Oh Hi all, i think resolve here: file PDF not contain special character or metadata, like:" picture, unicode". File" innocent.pdf" just text only. So, happy with nice example and i will provide template file "innocent.pdf" link here: https://drive.google.com/file/d/1aWpdJ3qn21-Hvnsg9o7OJVeacRjwwxsF/view?usp=sharing K.

VuDn5 avatar Oct 01 '21 17:10 VuDn5

Oh Hi all, i think resolve here: file PDF not contain special character or metadata, like:" picture, unicode". File" innocent.pdf" just text only. So, happy with nice example and i will provide template file "innocent.pdf" link here: https://drive.google.com/file/d/1aWpdJ3qn21-Hvnsg9o7OJVeacRjwwxsF/view?usp=sharing K.

i have just tried your file. but it still notify that error: Not enough space available (only 0 available, 42 needed)

immducky avatar Jun 17 '22 10:06 immducky

It seems everyone has this issue:

$ pdf_hide -o ../guide1.pdf embed ../flag.txt ../guide.pdf

This is PDF_HIDE v0.0

Please enter key: ERROR: Not enough space available (only 0 available, 126 needed)

jeanpatrickmacagna avatar Nov 30 '22 17:11 jeanpatrickmacagna