You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2014/03/05 22:32:45 UTC

[jira] [Commented] (SOLR-5819) Investigate & reduce size of ref-guide PDF

    [ https://issues.apache.org/jira/browse/SOLR-5819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921444#comment-13921444 ] 

Hoss Man commented on SOLR-5819:
--------------------------------

Possible contributing factors for the increase in size...

* confluence upgrade from 3.x to 5.x between the 4.6 guide & the 4.7 guide
* new screenshots that might be extremely high res

----

some comments from email...

Cassandra...
{quote}
I've made a note to look into that before we release the 4.8 version to see if it can be reduced at all. I suspect the screenshots are causing it to balloon - we made some changes to the way they appear in the PDF for 4.7 which may be the cause, but also the software was upgraded and maybe the newer version is handling them differently.
{quote}

sarowe...
{quote}
Not sure if it’s relevant anymore, but a few years ago Atlassian resolved as "won’t fix” a request to configure
exported PDF compression ratio: <https://jira.atlassian.com/browse/CONF-21329>.  Their suggestion: zip the PDF.  I
tried that - the resulting zip size is roughly 9MB, so it’s definitely compressible.
{quote}

rmuir...
{quote}
I debugged the PDF a little. FWIW, the following code (using iText)
takes it to 9MB:

{code}
  public static void main(String args[]) throws Exception {
    Document document = new Document();
    PdfSmartCopy copy = new PdfSmartCopy(document, new
FileOutputStream("/home/rmuir/Downloads/test.pdf"));
    //copy.setCompressionLevel(9);
    //copy.setFullCompression();
    document.open();
    PdfReader reader = new
PdfReader("/home/rmuir/Downloads/apache-solr-ref-guide-4.7.pdf");
    int pages = reader.getNumberOfPages();
    for (int i = 0; i < pages; i++) {
      PdfImportedPage page = copy.getImportedPage(reader, i+1);
      copy.addPage(page);
    }
    copy.freeReader(reader);
    reader.close();
    document.close();
  }
{code}
{quote}

> Investigate & reduce size of ref-guide PDF
> ------------------------------------------
>
>                 Key: SOLR-5819
>                 URL: https://issues.apache.org/jira/browse/SOLR-5819
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>
> As noted on the solr-user mailing list in response to the ANNOUNCE about the 4.7 ref guide, the size of the 4.4, 4.5 & 4.6 PDF files were all under 5MB, but the 4.7 PDF was 30MB.
> opening this issue to track trying to reduce this



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org