Created attachment 27707 [details] 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?
Can you please attach a XSL-FO, there is nothing in PDF that demonstrate any issue. A reproducible test-case will help.
(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(); }
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).
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)
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.
resolved invalid due to lack of information (FO input file)
batch transition resolved+invalid to closed+invalid