Why does the OpenTBS_DOWNLOAD command is not generating a file - odt

I am new to openTBS,
I tried the html and php code from 'https://www.tinybutstrong.com/opentbs.php?demo' and 'https://www.tinybutstrong.com/plugins/opentbs/demo/demo_merge.php', and I can't manage to get the "$TBS->Show(OPENTBS_DOWNLOAD)" command working :
I get a page with chinese characters and no file is being downloaded.
Sample of the page :
PK鸙_S^�2''mimetypeapplication/vnd.oasis.opendocument.textPK鸙_SConfigurations2/popupmenu/PK鸙_SConfigurations2/floater/PK鸙_S'Configurations2/accelerator/current.xmlPKPK鸙_SConfigurations2/images/Bitmaps/PK鸙_SConfigurations2/menubar/PK鸙_SConfigurations2/progressbar/PK鸙_SConfigurations2/statusbar
The $TBS->Show(OPENTBS_FILE) command is working and a merged odt file is saved.
Any help would be appreciated.

Related

IUP is not working for Lua and throws an error that the module is not found, even if the file IUP is calling is in the same file

I have installed the IUP GUI for Lua (https://www.tecgraf.puc-rio.br/iup/, the website is in English, although it doesn't look like it). I have tried running IUP on my computer using their tutorial code:
require("iuplua")
iup.Message("Hello World 1","Hello world from IUP.")
-- to be able to run this script inside another context
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
iup.Close()
end
but whenever I do I get this error: module 'iuplua' not found and then I get a bunch of other errors below that :
no field package.preload['iuplua']
no file '.\iuplua.lua'
no file 'C:\Users\user\bin\lua\iuplua.lua'
no file 'C:\Users\user\bin\lua\iuplua\init.lua'
no file './iuplua.lua'
no file './iuplua/init.lua'
no file './lua/iuplua.lua'
no file './lua/iuplua/init.lua'
no file 'C:\Users\user\lualibs/iuplua/iuplua.lua'
no file 'C:\Users\user\lualibs/iuplua.lua'
no file 'C:\Users\user\lualibs/iuplua/iuplua/init.lua'
no file 'C:\Users\user\lualibs/iuplua/init.lua'
no file '.\iuplua.dll'
no file 'C:\Users\user\bin\iuplua.dll'
no file 'C:\Users\user\bin\loadall.dll'
no file 'C:\Users\user\bin/clibs/iuplua.dll
This occurs even if I put the file I'm running into the srclua5 folder which contains a file called "iuplua.lua". Why does this occur? Could someone please help?

Extracting images from multiple PDF files using hexapdf - hexapdf no such file or directory # rb_sysopen

I'm in my master thesis and I have to extract images from about 500 pdf files, some people recommended hexapdf to me for this. I was able to install Ruby and hexapdf and now I'm kinda stuck getting the images out of the pdf's since I don't have a coding background. Any tips?
Thanks in advance.
I tried using the basic command for only one pdf to see what happened by using 'hexapdf images' followed by the pdf name but the result was 'no such file or directory # rb_sysopen'.
If you're getting no such file or directory # rb_sysopen, then that signals that the file you are trying to open does not exist. It sounds like this is probably the PDF that you are trying to extract images from.
I would check that you are following help provided by hexapdf documentation and that the path to your PDF is correct. If the file with your code and the PDF are in the same directory and you are running your code from that file, then you would do something like:
require 'hexapdf'
doc = HexaPDF::Document.open('my_pdf_document_filename.pdf')
If the file is somewhere else on the machine, it may be easiest to use a full file path instead of a relative file path which will depend on your system and such (e.g. /Users/username/thesis/image_processing/files/my_pdf_document_filename.pdf).

How to get the specific file(txt) with volatility?

I tried to filescan,and I see the .txt I want to open.But how can I open the txt?
I am new with volatility,and I tried more than 6 hours to get the txt.I tried dumpfiles,but I finally get lots of files that does'nt match the file I want to get.
get the imagebaseadress of the file and run db(imagebaseadress) inside volshell you should see the contents

How to read a .docx file via PHP Word sample code in Codeigniter

Am trying to read a .docx file which is inside my project folder via PHP Word library. I have included autoloader like this :
include_once 'vendor/autoload.php'; in my controller.
CODE FOR FUNCTION IN CONTROLLER:
function test_phpword()
{
$a=base_url();
$path=$a."".'123.docx';
$source =$path;
echo date('H:i:s'), " Reading contents from `{$source}`";
$phpWord = \PhpOffice\PhpWord\IOFactory::load($source);
echo write($phpWord, basename(__FILE__, '.php'), $writers);
}
BUT GETTING ERROR LIKE BELOW:
06:18:42 Reading contents from http://localhost/myproject/123.docx
Fatal error: Uncaught Exception: Cannot find archive file. in /opt/lampp/htdocs/myproject/vendor/phpoffice/common/src/Common/XMLReader.php:51
Try this
Change
$path=$a."".'123.docx';
to
$path='123.docx';
And put 123.docx beside your php script file. make sure the two files are in the same place. Run your php script again.
If this helps and works fine you can check the file path and make proper change to your php program.
While loading the path, you have to give relative path to the doc file as shown below,
$random_name = 123.docx;
$contents = \PhpOffice\PhpWord\IOFactory::load('../uploads/'.$random_name);
I don't know whats your $base_url, but it will not work if it is absolute path like http://path/to/doc/file.
I have worked on it and tested. Hope it helps.

openFile with pandoc 1.13.2 - Windows 8.1

sorry for my english in my post (it is my first on this forum, and my question is perhaps stupid).
I encounter a problem in converting a html file to pdf file with pandoc.
Here is my code in the console
set Path=%Path%;C:\Users\nicolas\AppData\Local\Pandoc
(redirecting to Pandoc directory)
followed by
pandoc --data-dir=C:\Users\nicolas\Desktop essai.html -o essai.pdf
As indicated, my file is in the Desktop, but I got the following error:
pandoc: essai.html: openFile: does not exist (No such file or directory)
I get the same error if i do (with the file essai.html in the same folder as pandoc.exe):
pandoc essai.html -o essai.pdf
Have you any idea of the cause of my problem? (I precise that the file's name i want to convert is correct).
Remark: My original problem was to create a pdf faithful to the beautiful html file generated by Ipython Notebook via pandoc but I encounter the same kind of problem when i want to convert a .ipynb file in pdf with nbconvert.
I finally solve my problem by adding the full paths to my files (But I have used wkhtmltopdf which is simpler to use for a good result.)

Resources