[Skim-app-users] Removing (mitigating) double spacing

2014-10-09 Thread Carsten Bormann
I am a huge fan of Skim’s auto-crop feature.
This unique feature really helps with looking at PDFs that exhibit generous 
margins.

However, it does not help with vertical whitespace internal to the page.
The most obvious case is double-spacing (incredibly, people still do that).
But also a page number at the end of a half-full page could be moved up.

So how would I do this?
1) group the features on the page into clusters of features, pairs of which 
share a common horizontal position.  Sort these clusters by vertical bounding 
box coordinates.
2) process the whitespace between the clusters (i.e., move the clusters) in 
some way, e.g. half it if it is more than 2 pt, with some logarithmic rule that 
squashes large whitespace some more, but still keeps it larger.

I don’t know enough about PDFkit etc. to program this myself (or even to find 
out if the pieces are in place to make this happen).

Grüße, Carsten


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users


Re: [Skim-app-users] Removing (mitigating) double spacing

2014-10-09 Thread Christiaan Hofman

On Oct 9, 2014, at 14:43, Carsten Bormann wrote:

 I am a huge fan of Skim’s auto-crop feature.
 This unique feature really helps with looking at PDFs that exhibit generous 
 margins.
 
 However, it does not help with vertical whitespace internal to the page.
 The most obvious case is double-spacing (incredibly, people still do that).
 But also a page number at the end of a half-full page could be moved up.
 
 So how would I do this?
 1) group the features on the page into clusters of features, pairs of which 
 share a common horizontal position.  Sort these clusters by vertical bounding 
 box coordinates.
 2) process the whitespace between the clusters (i.e., move the clusters) in 
 some way, e.g. half it if it is more than 2 pt, with some logarithmic rule 
 that squashes large whitespace some more, but still keeps it larger.
 
 I don’t know enough about PDFkit etc. to program this myself (or even to find 
 out if the pieces are in place to make this happen).
 
 Grüße, Carsten


You cannot change the internal layout of the PDF itself. All that is available 
is the overall crop rectangle. This is not so much about PDFKit, but about the 
PDF format.

Christiaan

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users