Git Product home page Git Product logo

typingbeaver / snake-label Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 3.0 5.52 MB

Offline conversion of German DHL/Hermes shipping labels for use with 62mm label printers

Home Page: https://snake-label.de

License: GNU General Public License v3.0

HTML 35.56% JavaScript 64.44%
brother-label-printer brother-ql dhl hermes label paketetikett paketetiketten shipping shipping-label shipping-labels versandetikett versandetiketten

snake-label's People

Contributors

typingbeaver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

snake-label's Issues

Label Options

Allow optional parameters for label objects (e.g. for GoGreen/Zusatzleistungen, NL variations)

New label type for Dutch DHL

Hi,

Would you be interested to add a Dutch DHL label?

I added an example PDF.
[removed document]

Kind regards,

Create tutorial for adding new labels

First of all: GREAT WORK!!!
Having the opportunity to use my 62mm Printers for big shipping labels ist awesome!

But me and a whole lot of other people, I guess, need to print out labels for shipping company other then those implemented in Your Tool already.
Like most people I'm a total noob in programming.

As far as I understand, Your tool does the following steps:

  1. Read "original pdf label"
  2. convert "original pdf label" to image
  3. cut out pieces of the image
  4. create a blank label (59 mm x n mm)
  5. arrange the pieces on the new blank label
  6. convert the new label to pdf

The cut sizes and positions are set in the "labels.js".
For additional labels the labels.js has to be modified.

Could You please make a short tutorial on how to modify the "labels.js" for new label.

This would make this little tool universal an applicable world wide!

Update of Offline usage description necessary

Hi and thank you very much for this great project!

I tried using the "offline" version just like you describe it in the readme.md -> just open the index.html in the browser.
This does not work like this anymore in actual browsers, the following error message is thrown for example in Chrome for all js files:
Access to script at 'file:///C:/assets/index.bf17cde9.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

In former times, it was no problem to simply load local files in the web browsers, but this had some security issues as noted here:
https://www.mozilla.org/en-US/security/advisories/mfsa2019-21/#CVE-2019-11730
Therefore the handling in all relevant browsers was changed so trying to load local files now produces CORS errors.
For more info, please refer to this message: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp

A very simple possibility to use as a workaround is to open a simple python HTTP server in the directory where the index.html is located.
This is an easy thing described here: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Tools_and_setup/set_up_a_local_testing_server

Long story short: Install python3, then navigate to the directory where index.html is using cd and then call
python3 -m http.server or python -m http.server. A local http server is now opened at port 8000 (standard port, can be customized).
Then the website can then be opened via webbrowser.

I think, it could help users (especially them with a more or less "basic" IT knowledge) if you would refer to this circumstances in the readme and maybe extend the description with the python http server example, if you like it.

Best regards,
Chris

Page styling

Some proper CSS and structure would be nice I think.

Add CLI

Add command line interface for scripting.

Planned after #2.

Can't load elements from non-root folder

When you try to load the project from a link like: domain.tld/folder, some links won't work.

It is because some links look like this:<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
The "/" at the beginning refers to the root of the server, where it isn't at the moment. Removing it will use the current folder as the root.

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.