Coder Social home page Coder Social logo

Comments (27)

alx901 avatar alx901 commented on July 17, 2024 1

Install Notes-up 1.3 from Loki 0.4.1 from AppCenter.
Not worked export to PDF. Created file in Zerro byte size.
Please fix this very important functions.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

Ok, can confirm that trying to generate the file from the editor will not work, for now while i fix it, try to export from the view window :)

Thank you for reporting it! 👍

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@igomezal Or can you confirm it happening?

from notes-up.

igomezal avatar igomezal commented on July 17, 2024

No matter the windows you I use it always generates a file of 0 bytes.

Thanks for your hard work.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@igomezal If you try to open the app from the terminal, and try to export to pdf, does the terminal output any error messages?

I downloaded a virtual machine with Freya, and i can't reproduce it.... :P

from notes-up.

igomezal avatar igomezal commented on July 17, 2024

When I open notes-up this is what it prints in my terminal:
ivan@ivan-Notebook:~$ notes-up

(Notes:3290): Gtk-CRITICAL **: gtk_window_set_focus: assertion 'gtk_widget_get_can_focus (focus)' failed

But when i press export to pdf it doesn't print anything.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

From a web browser, try to print a website. But at the print dialog, sellect "print to file" or "to pdf" pr somethjng along the lines.

Does that work?

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

How it works on my app is that I first create an empty file, and then I send that to the system's printer as if that was the printing location.

What os, version, and that do you have?

from notes-up.

igomezal avatar igomezal commented on July 17, 2024

I have just tried it and from the browser it works fine.
And I am using elementary OS 0.3.2 Freya 32-bit.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

I'm re-opening this due to it's original bug. I got another bug report about it

from notes-up.

 avatar commented on July 17, 2024

I think it's due to FileManager.vala, l110 :
write_file (file, "");

the second argument is content, so with an empty string, the pdf is empty, isn't it ?

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@Psylock The write_file (file, "") is just to make an empty file Webkit's printer is going to use... But you just made me think of something! The problem might be that it's taking a bit longer to make the file and to load the page's contest so by the time it get's to the bottom it still isn't loaded.

Can you reproduce the problem consistently?

from notes-up.

 avatar commented on July 17, 2024

Every time i export for pdf, i got a 0 bite file.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@Psylock Can you try out this patch? 😄 https://github.com/Philip-Scott/Notes-up/tree/pdf-print-test

from notes-up.

 avatar commented on July 17, 2024

same result :'(

`
** (Notes:10835): CRITICAL **: enotes_viewer_load_page: assertion 'page != NULL' failed

(Notes:10835): Gtk-CRITICAL **: gtk_window_set_focus: assertion 'gtk_widget_get_can_focus (focus)' failed
Printing...

`

Maybe you should add a warning when no note has been selected ? (i've tried both cases, both failed)

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

Can you try it again? I got rid of that create empty file thing

So if the printing is failing, then nothing will be shown

from notes-up.

 avatar commented on July 17, 2024

Still 0 bytes. Still "Printing..". message also.

from notes-up.

JO0st avatar JO0st commented on July 17, 2024

To me it is still happining in version 1.3

from notes-up.

impresionista avatar impresionista commented on July 17, 2024

I'm having the same issue. Always getting the 0 bytes file when exporting to PDF.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@marcos-90 Please tell me more about your system. Such as what language are you using :)

Also, can you run apt-cache policy libwebkit2gtk-4.0-dev and apt-cache policy libwebkit2gtk-3.0-25 and post here the full output? Thanks

Sadly, i've never being able to reproduce so i can't fix it :(

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@marcos-90 sorry, apt-cache policy libwebkit2gtk-4.0-37 as well :)

from notes-up.

impresionista avatar impresionista commented on July 17, 2024

Ok! (that was fast!! :) )

I'm using elementary os, 0.4.1, Loki in Spanish (Latin America). The only difference is that I installed the latest stable kernel in the ubuntu repos. I'm using kernel 4.11.2-041102-generic. I didn't change the repos or anything like that, i downloaded the kernel packages and installed them.

I installed the app using the AppCenter.

libwebkit2gtk-4.0-dev:
Instalados: (ninguno)
Candidato: 2.16.3-0ubuntu0.16.04.1
Tabla de versión:
2.16.3-0ubuntu0.16.04.1 500
500 http://ar.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
2.10.9-1ubuntu1 500
500 http://ar.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

libwebkit2gtk-3.0-25:
Instalados: (ninguno)
Candidato: 2.4.11-0ubuntu0.1
Tabla de versión:
2.4.11-0ubuntu0.1 500
500 http://ar.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
2.4.10-0ubuntu1 500
500 http://ar.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

libwebkit2gtk-4.0-37:
Instalados: 2.16.3-0ubuntu0.16.04.1
Candidato: 2.16.3-0ubuntu0.16.04.1
Tabla de versión:
*** 2.16.3-0ubuntu0.16.04.1 500
500 http://ar.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
2.10.9-1ubuntu1 500
500 http://ar.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

Hey! There we go! :D I'm finally able to reproduce it! Looks like non-English languages break "printing" on the app

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

@everyone I was able to get it fixed in Spanish. Sadly, this requires translating a line of text

000b358#diff-9427b2497682f9189e9ffae2687f88bfR42

If anyone can help doing the translations of this line like on the link above, you'll be able to fix it for everyone on your language!

You can get the correct text for your language on the printing dialog like so:
captura realizada el 2017-07-09 13 14 15

from notes-up.

impresionista avatar impresionista commented on July 17, 2024

For me i'ts working perfectly now! Great work! :D

I don't know much about coding, but I'll try to help with the things I can.

from notes-up.

Philip-Scott avatar Philip-Scott commented on July 17, 2024

I'm closing this since the fix is out.

from notes-up.

hanaral avatar hanaral commented on July 17, 2024

@Philip-Scott would it not be possible to have the string inherit whatever it's translated as in the webkit repo?
What about changing the export to pdf button to print or export PDF? That way there is more utility too!

from notes-up.

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.