| <<<Back 1 day (to 2011/08/19) | 2011/08/20 |
kens | tkamppeter ? | 08:06.51 |
| ping ? | 08:06.55 |
robin_watts_mac | kens: Why do you want to speak to my guide? | 08:19.04 |
chrisl | kens: it is "round tripping" pdf->ps->pdf | 08:26.54 |
| The problem, I think, is with the CUPS-PDF driver (cups PDF printer). Somewhere in the workflow, CUPS must convert the PDF to PS to feed it to the "PDF Printer", which converts it back to PDF. | 08:28.32 |
kens | Then they are goign to suffer problems. | 08:28.46 |
| All sorts of stuff isn't going to work well, and with transparency they are going to get bitmaps. | 08:29.07 |
| Its a really bad idea. | 08:29.21 |
| robin_watts_mac : wanted to talk about this bug chrisl and I are discussing. | 08:29.57 |
| I saw tkamppeter change his nick so I assumed he was here. | 08:30.09 |
chrisl | I don't think it's *quite* that bad, because most apps will be feeding Postscript into CUPS, so the PDF should never contain anything not supported in PS | 08:30.10 |
kens | Still ,lots of things are going to be bad, CIDFonts is one of them. | 08:30.32 |
| CIDFonts were a later addition to level 2, 2015 I think, so we don't support them in ps2write. | 08:30.52 |
| A ps3write has been suggested which could use them, and that would work. | 08:31.07 |
| But its a biggish job. | 08:31.18 |
chrisl | Well, it looks like Igor started work to get CID fonts supported in ps2write, but didn't finish it (so why commit the half baked work?) | 08:31.25 |
kens | I really don't know. I wasn't even aware there was any CIDFont support in there. | 08:31.48 |
| pdfwrite supports (most) CIDFonts, so its possible for me to do it, but not soon. | 08:32.10 |
chrisl | Well, he added a HaveCIDFontSystem option, but not much else. | 08:32.37 |
kens | Not a lot of help then ;-) | 08:32.47 |
| I guess we should add a potential ps3write to the next meeting agenda. | 08:33.20 |
| Would also allow shadings (which also don't work in level 2 output, they turn into bitmaps) | 08:33.44 |
| Maybe some other stuff, I can't recall off hand. Some colour spaces perhaps ? | 08:34.05 |
chrisl | I *think* all that's needed is for the opdfread.ps coded to be augmented with proc to read CID Font files - which I think should be quite easy - and than change some of the checks that stop the ps2write C code from falling back | 08:34.12 |
kens | But then its not level 2 code. | 08:34.35 |
| We should make a level 3 output device, so that we can add other non-level 2 stuff | 08:34.49 |
chrisl | No, it would be Level 3, but I think CID Fonts are the important feature (in this context) from level 3 - I guess, shfill and a few other things are candidates | 08:35.36 |
kens | Shadings, FlateDecode, ReusableStreams, type 3 and 4 images. Especially the images and shadings, because those are used in PDF files | 08:36.20 |
| Also DeviceN colour space and less importantly CIEBasedDEF and DEFG | 08:36.38 |
| Anyway, none of it can be done quickly. | 08:38.17 |
chrisl | I don't think CID Fonts would be that hard to add. | 08:39.15 |
kens | I've thought that before with teh pdfwrite/ps2write code. | 08:39.40 |
| remember the type 3 font business | 08:39.51 |
| images and shadings are probably *easier* to add than anything to do with fonts. | 08:40.17 |
chrisl | But the main body of the work isn't in the pdfwrite/ps2write code, it's in the opdfread.ps Postscript code. And that should be almost a carbon copy of the Type 1 code | 08:42.48 |
| Anyway, I have to go to squash training.......... | 08:43.29 |
kens | Are you certain ? We need to tell ps2write to stop doing the funky lots-of-font creation and emit a CIDFont instead, and emit it in a format suitable for use by a PostScript interpreter | 08:43.40 |
| OK bye | 08:43.51 |
b0fh_ua | Hello! Pls advice how to convert PDF in format A4 to A5? | 09:49.59 |
kens | scale it. | 09:50.15 |
b0fh_ua | so text will be in smaller font? | 09:51.09 |
| is it possible to update text flow according to new format? | 09:51.19 |
kens | No. The content will be scaled. | 09:51.23 |
| *ALL* the content will be scaled | 09:51.33 |
b0fh_ua | so basically I will not get any benefit :) | 09:51.45 |
kens | I do not know what you mean, you asked to convert an A4 PDF to an A5 PDF, the only way to do that is to scale the content. | 09:52.14 |
b0fh_ua | well, I'd like to preserve font size, if that possible | 09:52.55 |
kens | The point size will be the same, but the text will be smaller. How else do you propose to fit it on an A5 page ? | 09:53.23 |
b0fh_ua | keep fewer words on line? | 09:53.45 |
kens | That is not 'conversion'. You want to remake the PDf using a different media size. | 09:54.10 |
| This will involve text reflow, so you need to use a docuemtn layout package, or word-processing software. | 09:54.30 |
| SO you need to extract the text, import into your favourite page layout application, and tehn make a new PDF file. | 09:54.53 |
b0fh_ua | okay | 09:55.37 |
kens | ps2ascii.ps can do this (a bit) and GS 9.04 has a new device (txtwrite) which will extract text. However, its in alpha at the moment and may not work well. | 09:55.43 |
b0fh_ua | well, I'd like to reformat PDF for kindle, however it contains some images as well | 09:56.41 |
| perhaps I can simply use lanscape layout | 09:56.59 |
kens | Then you need to extract those too, if you want to keep them. | 09:57.05 |
| PDF is not intended for this task, you would be better to start again with the original source rfile and maek a new PDF file | 09:57.42 |
robin_watts_mac | kens: Always nice to get thanked, eh? | 10:23.29 |
kens | :-) | 10:23.38 |
| How's the holiday ? Where are you now ? | 10:23.59 |
robin_watts_mac | In Saigon. | 10:24.06 |
kens | Aha. | 10:24.14 |
robin_watts_mac | Visited the Mekong Delta today. | 10:24.16 |
kens | Oooh, what's to see there ? | 10:24.37 |
robin_watts_mac | Off to Cambodia and Ankor Wat tomorrow morning. | 10:24.38 |
kens | Angkor Wat, that will be good. | 10:24.50 |
robin_watts_mac | Mekong Delta? Lots of boats, paddy fields etc. | 10:24.56 |
kens | OK, so local colour then ;-) | 10:25.08 |
robin_watts_mac | "Local Colour" - that's a better term than we'd been using. | 10:25.46 |
kens | :-) | 10:25.54 |
ray_laptop | anybody -- I'm getting errors from git 'error: cannot stat 'gs/openjpeg/libopenjpeg': Permission denied' and I can't switch (co) master | 20:03.10 |
robin_watts_mac | ray_laptop: Sounds like a reboot is required. | 23:38.57 |
| Forward 1 day (to 2011/08/21)>>> | |