ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Detecting content out of print/page area ?
@ 2016-08-18 21:46 josephcanedo
  0 siblings, 0 replies; only message in thread
From: josephcanedo @ 2016-08-18 21:46 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 944 bytes --]

Dear all,

I was wondering if there were any sort of tool (beyond manual eye inspection) in general sense, either printing some warning in log file, or visually in output document, or even reading pdf file, that would help determining if for a some page there is content that is typeset outside (partially or even worse totally) the print/page area. 

If not, could the approach of using a lua function to inspect nodes after shipouts task could possibly work (although not very easy to implement maybe) :

local report_check = logs.reporter("user", "check")

function userdata.page_check(head)
   local realpage = tex.getcount('realpageno')
   report_check('Page ' .. realpage)
   -- TODO: code to check stuff is inside print area
   return head, false
end

tasks.appendaction("shipouts", "after", "userdata.page_check")
tasks.enableaction("shipouts", "userdata.page_check")

Many thanks

Best regards

Joseph Canedo


[-- Attachment #1.2: Type: text/html, Size: 3023 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-18 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-18 21:46 Detecting content out of print/page area ? josephcanedo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).