Opened 8 years ago
Closed 3 years ago
#13313 closed bug (fixed)
Print to file (PDF) not working...
Reported by: | bruno | Owned by: | phoudoin |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | Printing | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description (last modified by )
using Haiku 64bit x86 hrev55736 with StyleEdit...
Trying to print text to pdf with noto sans.ttf font.
Attachments (5)
Change History (37)
comment:1 by , 8 years ago
Component: | - General → Printing |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Platform: | x86 → All |
Priority: | blocker → normal |
comment:2 by , 8 years ago
by , 8 years ago
comment:4 by , 8 years ago
I tried to replicate with slighly different result. Print to file with PDF Writer causes the print_add-on_server to hang, one CPU core to peg at 100%, and no data in preview window. However, the PDF is created, and displays correctly when opened with BePDF. I attached the debugger to the print_add-on_server, and have attached reports for the debugged threads.
by , 8 years ago
Attachment: | print_addon_server-773-debug-18-02-2017-16-05-10.report added |
---|
by , 8 years ago
Attachment: | print_addon_server-773-debug-18-02-2017-16-05-40.report added |
---|
by , 8 years ago
Attachment: | printallpages.png added |
---|
by , 8 years ago
Attachment: | errorlog.png added |
---|
comment:7 by , 6 years ago
Platform: | All → x86-64 |
---|
Just stumbled upon this bug and can confirm that printing to PDF works under 32 bit Haiku and doesn't under x86_64. Under 32 bit Haiku PDF Writer causes the print_add-on_server to hang, one CPU core to peg at 100% as reported above.
comment:9 by , 4 years ago
Is the PDF Writer source code hosted here https://github.com/HaikuArchives/PDFWriter ?
comment:10 by , 4 years ago
comment:11 by , 4 years ago
I tried hrev54549 and it works fine. Although initially I recompiled the printer addon from source and put it in non-packaged. I tried it and it worked. Then i removed the addon from there, and it was also removed from system.
follow-up: 15 comment:14 by , 4 years ago
I just tried again, and it does not work for me... Got a blank white page, and I am not able to choose the right font. I have only Helvetica to choose from. Maybe because I have all other fonts in my non-packaged folder?
comment:15 by , 4 years ago
Replying to bruno:
I just tried again, and it does not work for me... Got a blank white page, and I am not able to choose the right font. I have only Helvetica to choose from. Maybe because I have all other fonts in my non-packaged folder?
Did you try on master or on beta2 ?
comment:16 by , 4 years ago
Tried again: with the stock PDF Writer addon, it doesn't work. With the PDF Writer addon compiled from source and put into /boot/system/non-packaged/addons/Print, it works.
comment:17 by , 4 years ago
In hrev54972, I see that there are no PDFWriter to choos from if you like to make a new PDFPrinter. Nor are there any PDFWriter file under add-on, Printer. So I guess the drivers missing? There are no PDFWriter source code ether in Haiku.
So a workaround. Download PDFWriter from HaikuDepot. Remove the printer Print To PDf and make a new one. (can be same name), Choose PDFWriter and Print To File.
comment:18 by , 4 years ago
It is unclear if this bugreport is about a bug in PDF Writer (in which case it should be moved there) or a more general bug with the print kit. Do other printers work properly?
comment:20 by , 4 years ago
Or that Haiku har the PDFWriter in printer option but the driver don't exist from start, kan it be a jam file that puts it there?
comment:21 by , 4 years ago
Tested and fixed. See: https://github.com/haikuports/haikuports/pull/5937
comment:22 by , 3 years ago
Description: | modified (diff) |
---|
Maybe I have no pdf writer translation tool anymore? Maybe I deleted it by accident in the printer preferences window?
The "Ok" Button is greyed out now!? See: http://0x0.st/-Cjn.png
Print to file is missing too? http://0x0.st/-CjR.png
comment:23 by , 3 years ago
Description: | modified (diff) |
---|
comment:24 by , 3 years ago
I installed "pdfwriter" from HaikuDepot but if I try to use it with StyleEdit the j"OK-Button" is grayed out!?
comment:25 by , 3 years ago
You first have to set up the page format and print job to get a clickable OK button.
The PDF translator has nothing to do with all this. That is just used to e.g. view PDFs in ShowImage as a bitmap.
comment:26 by , 3 years ago
- System -> Preferences -> Printers
Note: You should see 'Save as PDF' which a checkmark over the printer image (make default). The driver info should show 'PDF Writer' with 'Transport: Print to File'.
If you use 'Print test page', the page setup dialog box appears which should show 'Printer: Save As PDF'. Continue from there to do 'Page Setup' and other features to test. If you press "OK", the print addon server dialog box appears to save file to a file system directory. Give a file name and save your new PDF file. Review for results with BePDF.
comment:28 by , 3 years ago
Milestone: | Unscheduled → R1/beta4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:29 by , 3 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I like to reopen this problem!
I cannot choose:
"Continue" from there to do 'Page Setup' and other features to test. If you press "OK", the print addon server dialog box appears to save file to a file system directory. Give a file name and save your new PDF file. Review for results with BePDF.
http://0x0.st/oXe3.png http://0x0.st/oXeG.png I have to reinstall the print to pdf driver! Because i accidently deleted it!? How to reinstall the driver?
comment:32 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
As the ticket says "using Haiku x86 hrev50955", I assume it's a gcc5-only build? On gcc2hybrid hrev50953 at least, printing to PDF workd for me with StyledEdit, BePDF, Showimage and (badly) Terminal.