You are not logged in.
I did an update last weekend and now none of the documents accessed via the samba share with our server can be printed. The print option is greyed out on the menu. I tried changing the permissions on the share to root but that didn't help. The documents are all pdf files which are opened using Atril Document Viewer.
Thanks for any help.
Mike
Here is my systemd mount file.
[Unit]
Description=Mount server share at boot
Requires=systemd-networkd.service
After=network-online.target
Wants=network-online.target
[Mount]
What=//192.168.1.6/GECKO
Where=/mnt/GECKO
Options=credentials=/home/mb/share_server,uid=1000,x-systemd.automount,vers=1.0
Type=cifs
TimeoutSec=30
[Install]
WantedBy=multi-user.target
And some info about the share.
$ sudo smbclient -L EXAM-DESKTOP -U%
Sharename Type Comment
--------- ---- -------
gecko Disk for gecko use only
IPC$ IPC IPC Service (Samba 4.7.0)
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
IMPGROUP EXAM-DESKTOP
Offline
The print option is greyed out on the menu.
I'm guessing that menu is from the atril viewer ?
If you copy the shared documents to a local folder folder does atril print them correctly ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I'm guessing that menu is from the atril viewer ?
If you copy the shared documents to a local folder folder does atril print them correctly ?
They do not! That is surprising. pdf files on my local can print, but when I copy a pdf file from the server to local it won't. I changed the permissions (777) but that made no difference; the Atril print option on the menu is greyed out.
Offline
Did you or anyone ever print any of these specific PDFs? It's possible to add certificates to prevent printing of PDFs if that is the case here then you might simply be seeing that.
Offline
Yes, we could print anything on the server up until this past weekend when I did an Arch update (which went fine).
Offline
Update. It appears most of the documents on the server can be printed. The change is that after this weekend the documents we scanned to the server from our scanner cannot be printed, ie the print option is greyed out. I've never heard of a pdf file that couldn't be printed. As I mentioned earlier, this is independent of permissions.
Offline
pdfinfo somefile.pdf
The viewer might have previously simply ignored the flag.
Offline
$ pdfinfo test.pdf
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
Offline
That doesn't sound like it's a PDF at all.
file test.pdf
Can you upload the file (or are there privacy/copyright issues)?
Offline
The change is that after this weekend the documents we scanned to the server from our scanner cannot be printed, ie the print option is greyed out.
Are those documents that were newly scanned ?
Was scanner / share / printerserver hardware or software changed recently ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
That doesn't sound like it's a PDF at all.
file test.pdf
Can you upload the file (or are there privacy/copyright issues)?
No privacy problems. How do I upload a file? I couldn't find instructions on the forum (searched "how to upload a file").
Offline
You'll have to rely on some external service, eg. https://ptpb.pw/
Offline
These services seem to be for uploading text. I don't see any instructions for sharing a pdf file.
Offline
Nope, you can paste binaries (kinda given away by the name ;-)
cat /path/to/file.pdf | curl -F c=@- https://ptpb.pw
Offline
These services seem to be for uploading text. I don't see any instructions for sharing a pdf file.
Or just post a hex dump of the start of the supposed PDF file here. That is usually sufficient to determine file type:
$ hexdump -C fortran_class.pdf | head
00000000 25 50 44 46 2d 31 2e 34 0d 25 e2 e3 cf d3 0d 0a |%PDF-1.4.%......|
00000010 39 39 35 20 30 20 6f 62 6a 0d 3c 3c 2f 4c 69 6e |995 0 obj.<</Lin|
00000020 65 61 72 69 7a 65 64 20 31 2f 4c 20 31 34 37 33 |earized 1/L 1473|
00000030 37 31 39 2f 4f 20 39 39 38 2f 45 20 34 37 33 31 |719/O 998/E 4731|
00000040 36 30 2f 4e 20 39 32 2f 54 20 31 34 37 32 36 34 |60/N 92/T 147264|
00000050 37 2f 48 20 5b 20 37 31 34 20 31 35 33 38 5d 3e |7/H [ 714 1538]>|
00000060 3e 0d 65 6e 64 6f 62 6a 0d 20 20 20 20 20 20 20 |>.endobj. |
00000070 20 20 0d 0a 31 30 33 34 20 30 20 6f 62 6a 0d 3c | ..1034 0 obj.<|
00000080 3c 2f 44 65 63 6f 64 65 50 61 72 6d 73 3c 3c 2f |</DecodeParms<</|
00000090 43 6f 6c 75 6d 6e 73 20 35 2f 50 72 65 64 69 63 |Columns 5/Predic|
Offline
barronmo wrote:These services seem to be for uploading text. I don't see any instructions for sharing a pdf file.
Or just post a hex dump of the start of the supposed PDF file here. That is usually sufficient to determine file type:
Thanks. Here are the results.
hexdump -C ~/Desktop/test.pdf | head
00000000 ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 96 |......JFIF......|
00000010 00 96 00 00 ff db 00 43 00 10 0b 0c 0e 0c 0a 10 |.......C........|
00000020 0e 0d 0e 12 11 10 13 18 28 1a 18 16 16 18 31 23 |........(.....1#|
00000030 25 1d 28 3a 33 3d 3c 39 33 38 37 40 48 5c 4e 40 |%.(:3=<9387@H\N@|
00000040 44 57 45 37 38 50 6d 51 57 5f 62 67 68 67 3e 4d |DWE78PmQW_bghg>M|
00000050 71 79 70 64 78 5c 65 67 63 ff c0 00 0b 08 06 72 |qypdx\egc......r|
00000060 04 fb 01 01 11 00 ff c4 00 1b 00 01 01 01 01 01 |................|
00000070 01 01 01 00 00 00 00 00 00 00 00 00 01 02 04 03 |................|
00000080 05 06 07 ff c4 00 55 10 00 01 03 03 01 04 05 06 |......U.........|
00000090 08 0a 0a 02 02 01 01 09 01 00 02 11 03 04 21 31 |..............!1|
Offline
that is a JFIF (JPEG) file , not a pdf. You can probably create a pdf with img2pdf
Last edited by progandy (2019-01-29 19:21:57)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Online
And put your scanner back in PDF mode, obviously someone switched it to JPEG (or it reset itself).
Offline