Re: [NTG-context] ConTeXt ignores crop in some pdf graphics
On 09/05/2018 07:56 PM, Mari Voipio wrote: > Hello Pablo, > > thank you for digging up all of that. What I found out today is that > while a graphic outputted from an old Corel (output e.g. pdf 1.3) has > all that extra whitespace, a graphic outputted from my newish Corel > 2017 (pdf 1.7) seems to have a working cropbox as does the old > graphic recropped with Acrobat as Hraban's Save As trick). I've > included an old graphic (fm.pdf), the same outputted today > (fm_corel_2017) and the old one after recropping it (I reset old > cropbox and cropped again) (fm_cropped), if somebody feels like > investigating further. Hello Mari, only a comment, Corel 2017 sets all boxes with the same values: /MediaBox [ -1 -1 48. 23.8555 ] /TrimBox [ -1 -1 48. 23.8555 ] /CropBox [ -1 -1 48. 23.8555 ] Also your "fm.pdf" works fine when the media box has the same values as the other boxes. Best wishes, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt ignores crop in some pdf graphics
Hello Pablo, thank you for digging up all of that. What I found out today is that while a graphic outputted from an old Corel (output e.g. pdf 1.3) has all that extra whitespace, a graphic outputted from my newish Corel 2017 (pdf 1.7) seems to have a working cropbox as does the old graphic recropped with Acrobat as Hraban's Save As trick). I've included an old graphic (fm.pdf), the same outputted today (fm_corel_2017) and the old one after recropping it (I reset old cropbox and cropped again) (fm_cropped), if somebody feels like investigating further. While the cropbox problem meant that I had to spend a few hours today fixing problematic graphics in my big old file, the fact that output from my current Corel works means that any future graphics will be fine and I don't have to change my workflows. This reduces the problem into the level of minor annoyance, assuming it can't be fixed. Thank you everybody for your help, Mari On Wed, Sep 5, 2018 at 5:40 PM Pablo Rodriguez wrote: > > On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote: > > [...] > > Hans investigated and could trace my problem to an Acrobat bug (or at > > least it doesn't adhere to the PDF specs): I had my logo exported from > > Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if > > you don't "save as", Acrobat creates a XForm inside a page, but doesn't > > set the boxes correctly for the page (CropBox missing, Artbox was what I > > needed). > > Hi Hraban, > > the document sent by Mari (ex.pdf) contains the following information: > > 4 0 obj > > << > > /CropBox [ 265.961 392.102 329.315 445.535 ] > > /Parent 2 0 R > > /Contents 5 0 R > > /BleedBox [ 265.961 392.102 329.315 445.535 ] > > /MediaBox [ -9 -9 604.276 850.89 ] > > /TrimBox [ 265.961 392.102 329.315 445.535 ] > > /Resources << > > /ProcSet [ /PDF ] > > /ExtGState << > > /GS6 6 0 R > > >> > > >> > > /Type /Page > > >> > > endobj > > > I would say, that in the following sample: > > \starttext > > \externalfigure[ex.pdf][size=crop] > > \stoptext > > > the option "size" doesn’t seem to work. > > Or is the original ex.pdf document flawed? > > Pablo > -- > http://www.ousia.tk > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ fm.pdf Description: Adobe PDF document fm_corel_2017.pdf Description: Adobe PDF document fm_cropped.pdf Description: Adobe PDF document fm_test.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xtables multipage horizontally
On Tue, Sep 4, 2018 at 10:26 AM luigi scarso wrote: > > > On Tue, Sep 4, 2018 at 10:23 AM be ba wrote: > >> The wiki says I should ask again one week later if I did not get an >> answer. >> Could someone please help me with my problem. Thanks. >> >> meeting time, quite busy, but > today at 15:45 we have a "Brainstorming session" on tables > > In tabl-xtb.mkvi (xtables) % todo: % % - yes or no: foregroundstyle/color <- style/color % - template alignment % - maybe split horizontal (a la linetables) % - before/after and wrapping (linecorrection) % - maybe also some before/after commands % - maybe correction when non float usage % - tagging needs to be checked % - maybe only tag the box % - scale to fit % % - buffers permit verbatim but are not always handy -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] unknown library
Mij font setup is nothing more then \setupbodyfont[cambria,12pt] An underfull hbox I can understand but wherefrom these messages about an “unknown library normal”? I guess it is not the font, because substituting lmodern for cambria makes no difference. Does this signify I should change something? If so, then what? Underfull \hbox (badness 1014) in paragraph at lines 7--7 []<15: cambria @ 10.0pt> adres[] fonts > typescripts > unknown library 'normal' fonts > typescripts > unknown library 'normal' pages > flushing realpage 108, userpage 108 dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt ignores crop in some pdf graphics
On Wed, Sep 5, 2018 at 4:37 PM Pablo Rodriguez wrote: > On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote: > > [...] > > Hans investigated and could trace my problem to an Acrobat bug (or at > > least it doesn't adhere to the PDF specs): I had my logo exported from > > Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if > > you don't "save as", Acrobat creates a XForm inside a page, but doesn't > > set the boxes correctly for the page (CropBox missing, Artbox was what I > > needed). > > Hi Hraban, > > the document sent by Mari (ex.pdf) contains the following information: > > 4 0 obj > > << > > /CropBox [ 265.961 392.102 329.315 445.535 ] > > /Parent 2 0 R > > /Contents 5 0 R > > /BleedBox [ 265.961 392.102 329.315 445.535 ] > > /MediaBox [ -9 -9 604.276 850.89 ] > > /TrimBox [ 265.961 392.102 329.315 445.535 ] > > /Resources << > > /ProcSet [ /PDF ] > > /ExtGState << > > /GS6 6 0 R > > >> > > >> > > /Type /Page > > >> > > endobj > > > I would say, that in the following sample: > > \starttext > > \externalfigure[ex.pdf][size=crop] > > \stoptext > > > the option "size" doesn’t seem to work. > > Or is the original ex.pdf document flawed? > we are working to extend luatex to manage these situations. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt ignores crop in some pdf graphics
On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote: > [...] > Hans investigated and could trace my problem to an Acrobat bug (or at > least it doesn't adhere to the PDF specs): I had my logo exported from > Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if > you don't "save as", Acrobat creates a XForm inside a page, but doesn't > set the boxes correctly for the page (CropBox missing, Artbox was what I > needed). Hi Hraban, the document sent by Mari (ex.pdf) contains the following information: 4 0 obj << /CropBox [ 265.961 392.102 329.315 445.535 ] /Parent 2 0 R /Contents 5 0 R /BleedBox [ 265.961 392.102 329.315 445.535 ] /MediaBox [ -9 -9 604.276 850.89 ] /TrimBox [ 265.961 392.102 329.315 445.535 ] /Resources << /ProcSet [ /PDF ] /ExtGState << /GS6 6 0 R >> >> /Type /Page >> endobj I would say, that in the following sample: \starttext \externalfigure[ex.pdf][size=crop] \stoptext the option "size" doesn’t seem to work. Or is the original ex.pdf document flawed? Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___