You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/10/06 11:37:26 UTC

DO NOT REPLY [Bug 51977] New: a created long pdf document is not readable

https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

             Bug #: 51977
           Summary: a created long pdf document is not readable
           Product: Fop
           Version: 0.95
          Platform: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: abdelsalam.ghazalin@rle.de
    Classification: Unclassified


Created attachment 27707
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27707
A PDF with more than 5 meter length

I created a pdf file with a length of more than 5 meter. The creating ended
successfully but after i opened the file, i saw nothing. It is a white page and
if i try to select some content then i saw some very smal things.

are there any limitation to the long of the pdf created with fop?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

Pascal Sancho <pa...@takoma.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
         OS/Version|                            |All

--- Comment #1 from Pascal Sancho <pa...@takoma.fr> 2011-10-06 13:09:33 UTC ---
Can you please attach a XSL-FO, there is nothing in PDF that demonstrate any
issue.
A reproducible test-case will help.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

--- Comment #3 from Luis Bernardo <lm...@gmail.com> 2012-03-07 16:07:49 UTC ---
what viewer are you using? I can open the file with evince and see the contents
without problem (it does take a bit to load though).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #7 from Glenn Adams <ga...@apache.org> ---
batch transition resolved+invalid to closed+invalid

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

--- Comment #2 from abdelsalam.ghazalin@rle.de 2011-10-06 13:18:39 UTC ---
(In reply to comment #1)
> Can you please attach a XSL-FO, there is nothing in PDF that demonstrate any
> issue.
> A reproducible test-case will help.

i'm creating the pdf file from a svg file by using fop 0.95 (PDFTranscoder) in
java. therefore ther is no XSL-FO file.
here is my function:

public void savePDF(Document document, String filename, boolean embedFonts,
final File fontsDir) throws Exception, LegendProgramException
{
        if (document == null)
    {
        LegendProgramException svgEx = new LegendProgramException("Exception
text.", (short) 62);    
                svgEx.setFilename(filename);
        throw svgEx;
    }
    if (filename.endsWith(".svg"))
    {
        filename = filename.substring(0, filename.length() - 3) + "pdf";
    }

    // Configure the transcoder
    PDFTranscoder trans = new PDFTranscoder();
    trans.addTranscodingHint(PDFTranscoder.KEY_PIXEL_UNIT_TO_MILLIMETER, new
Float(25.4f / (float) utils.getDpi()));

    // embedding the fonts
    if (embedFonts)
    {
        this.embededFonts(trans, fontsDir, filename);
    }

    TranscoderInput input = new TranscoderInput((Document) document);
    OutputStream ostream = new FileOutputStream(filename);
    TranscoderOutput output = new TranscoderOutput(ostream);
    trans.transcode(input, output);

    ostream.flush();
    ostream.close();
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-01 15:39:27 UTC ---
resolved invalid due to lack of information (FO input file)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

--- Comment #5 from abdelsalam.ghazalin@rle.de 2012-03-12 07:56:15 UTC ---
I solved the problem by down scaling the pdf size to 5080mm.
With the following 2 lines the pdf is scaled down to 5080mm        

trans.addTranscodingHint(PDFTranscoder.KEY_MAX_WIDTH, new Float(14400));   
trans.addTranscodingHint(PDFTranscoder.KEY_MAX_HEIGHT, new Float(14400));

The problem is that fop doesn't support the pdf version 1.6.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51977] a created long pdf document is not readable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51977

--- Comment #4 from Luis Bernardo <lm...@gmail.com> 2012-03-07 23:24:59 UTC ---
this is odd... the PDF appears as a white sheet in Adobe Reader (Mac 10.1.2),
but the content is visible in Preview (Mac OS X viewer) and in Evince (Linux)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.