Comments (27)
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.
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.
@igomezal Or can you confirm it happening?
from notes-up.
No matter the windows you I use it always generates a file of 0 bytes.
Thanks for your hard work.
from notes-up.
@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.
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.
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.
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.
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.
I'm re-opening this due to it's original bug. I got another bug report about it
from notes-up.
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.
@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.
Every time i export for pdf, i got a 0 bite file.
from notes-up.
@Psylock Can you try out this patch? 😄 https://github.com/Philip-Scott/Notes-up/tree/pdf-print-test
from notes-up.
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.
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.
Still 0 bytes. Still "Printing..". message also.
from notes-up.
To me it is still happining in version 1.3
from notes-up.
I'm having the same issue. Always getting the 0 bytes file when exporting to PDF.
from notes-up.
@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.
@marcos-90 sorry, apt-cache policy libwebkit2gtk-4.0-37
as well :)
from notes-up.
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.
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.
@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:
from notes-up.
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.
I'm closing this since the fix is out.
from notes-up.
@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)
- make: error
- elementary Odin SDK port
- [Feature Request] Add ability to paste image from clipboard
- Tables look weird in dark mode
- Package as Flatpak for elementary OS 6 HOT 1
- Feature Request: Password protected notes HOT 1
- Notes-Up not included in Curated apps in Elementary AppCenter HOT 1
- Is this app dead? HOT 1
- Failed to build com.github.philip-scott.notes-up
- Screenshots are outdated
- App ID doesn't match
- 2.0.3 desktop file validation test fail HOT 2
- Screenshots don't use default settings HOT 1
- How do I change the global style? HOT 1
- Ability to choose location of NotesUp.db
- Line breaks in 'code' formatting
- Maximization settings are not remembered
- Slow scrolling in view mode
- won't start HOT 7
- Adding note segfaults app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notes-up.