Code Monkey home page Code Monkey logo

Comments (10)

michaelrsweet avatar michaelrsweet commented on August 13, 2024

@wmdhosting Can you attach sample files along with the command you are using to generate the PDF with HTMLDOC?

What version of HTMLDOC were you previously using?

from htmldoc.

wmdhosting avatar wmdhosting commented on August 13, 2024

1.8.28
files.zip

racun1.php is where barcode is shown..

racun_pdf.php is for generating pdf..

from htmldoc.

michaelrsweet avatar michaelrsweet commented on August 13, 2024

@wmdhosting OK, so there isn't anything obvious there. Any errors showing up in your Apache logs?

What kind of image does the barcode.php script produce? Can you attach a sample image?

from htmldoc.

wmdhosting avatar wmdhosting commented on August 13, 2024

Here is sample image from test invoice..
https://moj.wmd.hr/majstor/barcode.php?total=000000000012250&company=MasterWMD&address=master&city=master&zip=545454&poziv_na_broj=1745&invoice_no=1745&godina=22

this is source code. from page where is visible
<tr><td align="left"><img src="[barcode.php?total=000000000012250&company=MasterWMD&address=master&city=master&zip=545454&poziv_na_broj=1745&invoice_no=1745&godina=22](view-source:https://moj.wmd.hr/majstor/barcode.php?total=000000000012250&company=MasterWMD&address=master&city=master&zip=545454&poziv_na_broj=1745&invoice_no=1745&godina=22)" width="350" height="103"></td></tr>

when i save it. directly from invoice..
it saves as.. barcode.php.png

barcode php

Apache logs
[Tue May 03 10:55:24.012782 2022] [:error] [pid 1986006] [client 109.227.28.155:0] sh: htmldoc: command not found, referer: https://moj.wmd.hr/
[Tue May 03 10:58:05.548250 2022] [:error] [pid 1994065] [client 109.227.28.155:0] sh: htmldoc: command not found, referer: https://moj.wmd.hr/
[Tue May 03 11:00:16.952008 2022] [:error] [pid 1986006] [client 109.227.28.155:0] sh: htmldoc: command not found, referer: https://moj.wmd.hr/

from htmldoc.

michaelrsweet avatar michaelrsweet commented on August 13, 2024

@wmdhosting The log indicates that your installation of HTMLDOC is not in the path of the Apache process - have you tried adding the full path to the HTMLDOC executable when you run HTMLDOC from your PHP script?

from htmldoc.

wmdhosting avatar wmdhosting commented on August 13, 2024

which htmldoc
/usr/local/bin/htmldoc

i use that in files. is that OK. or something else..

from htmldoc.

michaelrsweet avatar michaelrsweet commented on August 13, 2024

@wmdhosting That should work, but something is preventing it from working. Have you tried running the HTMLDOC command from the terminal to see what you get?

from htmldoc.

wmdhosting avatar wmdhosting commented on August 13, 2024

we just installed 1.9.11 and works ok. on 1.9.15 does not work..

from htmldoc.

michaelrsweet avatar michaelrsweet commented on August 13, 2024

Really the only relevant changes between 1.9.11 and 1.9.15 are security changes and removal of the bundled image libraries - you really want to try running the command outside of PHP to determine why 1.9.15 is not working for you.

from htmldoc.

wmdhosting avatar wmdhosting commented on August 13, 2024

Must be then.. some security thing...

we did run. some debuging in terminal but didnt get any idea. why barcode not working..

Im ok with this version too for now. thx for help

from htmldoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.