basic-link internal-destination wrong page
Hi, We're currently using 0.92beta. We have done some customization to the fop version (in case you offer me to upgrade) The problem that I have currently is that: For the purpose of the pdf output, I used initial-page-number = 1 to reset the page number and start from 1 somewhere within the file. As a result, some basic-link internal-destination does not point to the right place even though the id has already been specified to the right position. Suggestions are welcome. Thanks a lot, wliem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
refsynopsisdiv title not showing up in PDF, fop0.94
The title of a refsynopsisdiv section does not show up in a FOP generated PDF. It does show up in generated XHTML, and other reference section titles show up, i.e. refsect1 section titles. Synopsis Synopsis doesn't appear in the .fo or the PDF. It looks like the fo:block might be set up correctly, but there's no text in the block. I'm guessing its a problem in the refentry.xsl file in the fo directory. I've been looking at this for several days, any ideas? Hopefully its something simple. Thanks in advance gfx_dude -- View this message in context: http://www.nabble.com/refsynopsisdiv-title-not-showing-up-in-PDF%2C--fop0.94-tf4832373.html#a13825362 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Images not resized properly in fop 0.94
Done: http://svn.apache.org/viewvc?rev=596100&view=rev Thanks for the suggestion. Jeremias Maerki On 12.11.2007 17:22:06 Puppala, Kumar (LNG-CON) wrote: > Thanks Jeremias for pointing me to the examples. From the examples, I > could not find one that suits my testcase. However, I was able to find > one from another website: > http://www.renderx.net/lists/xep-support/0376.html > > I tried this approach for my image and it worked. The trick is to > specify the markup as shown below: > > content-width="scale-to-fit" > content-height="100%" > width="100%"/> > > Since we do not have this particular testcase in the images.fo file, can > you please add this? It might be helpful for those who wish to scale > only those images that do not fit in the page. > > Appreciate your help. > > Thanks!! > > -Original Message- > From: Jeremias Maerki [mailto:[EMAIL PROTECTED] > Sent: Friday, November 09, 2007 5:00 PM > To: fop-users@xmlgraphics.apache.org > Subject: Re: Images not resized properly in fop 0.94 > > May I suggest that you have a look at "examples/fo/basic/images.fo" in > the FOP distribution? The example shows various ways to use > fo:external-graphic. I'm sure you'll find the pattern you need there. > > Good luck! > > Jeremias Maerki > > > > On 09.11.2007 22:50:23 Puppala, Kumar (LNG-CON) wrote: > > Thanks for the information. I tried to use both content-height and > > content-width (setting them to 'scale-to-fit') in my testcase and it > > still did not work. I think there might be some issue here. Below is > the > > code snippet from AbstractGraphicsLayoutManager.java file: > > > > > > > > In getInlineArea() function: > > > > > > > > Line 72 onwards... > > > > int bpd = -1; > > > > int ipd = -1; > > > > > > > > The bpd and ipd values are only overwritten if > > > > Line 129 onwards... > > > > if ((scaling == EN_UNIFORM) || (cwidth == -1) || cheight == > -1) > > { > > > > if (cwidth == -1 && cheight == -1) { > > > > cwidth = fobj.getIntrinsicWidth(); > > > > cheight = fobj.getIntrinsicHeight(); > > > > } > > > > > > > > Line 164 onwards... > > > > if (ipd == -1) { > > > > ipd = cwidth; > > > > } > > > > if (bpd == -1) { > > > > bpd = cheight; > > > > } > > > > > > > > The ipd and bpd values are set as per this flow for my FO file. As > such, > > the values are not being scaled. We might be missing something here > but > > since I am not an expert in this area, any input to fix this issue > will > > be greatly appreciated. > > > > > > > > > > > > Thanks, > > > > Kumar Puppala > > > > > > > > -Original Message- > > From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 09, 2007 2:21 PM > > To: fop-users@xmlgraphics.apache.org > > Subject: Re: Images not resized properly in fop 0.94 > > > > > > > > On Nov 9, 2007, at 20:08, Puppala, Kumar (LNG-CON) wrote: > > > > > > > > Hi Kumar > > > > > I am running into an issue with both gif and png images in fop > > > > > 0.94. I am trying to render a big GIF image in my PDF document. > > > > > Since the image does not fit in a single page, it should be > > > > > resized. In FOP 0.20.5, I do see the correct behavior and the image > > > > > > is rendered properly. However in both 0.93 and 0.94 releases, the > > > > > image is not truncated and hence only rendered partially. I am > > > > > hereby attaching the FO file and the outputs from old and new fop. > > > > > Are there any known issues here? > > > > > > > > Yes, the behavior in FOP 0.20.5 is non-compliant. > > > > > > > > Take a look at the fo:external-graphic, and the XSL-FO Rec, more > > > > precisely: > > > > > > > > http://www.w3.org/TR/xsl11/#d0e22982 (Area Dimension Properties) > > > > > > > > You have no explicit (content-)width/height, so: > > > > > > > > content-width="auto" => intrinsic image width > > > > content-height="auto" => intrinsic image height > > > > height="auto" > > > > width="auto" > > > > > > > > => the image should not be scaled to fit the viewport, but clipped. > > > > > > > > The trick is to set content-height and/or content-width explicitly to > > > > > "scale-to-fit". That should normally do it. > > > > > > > > Hope this helps! > > > > > > > > > > > > Andreas > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: using FOP under JRE 1.6
I've already fixed this bug last month. See: http://svn.apache.org/viewvc?view=rev&revision=581806 Jeremias Maerki On 16.11.2007 16:59:32 Dmitri Ilyin wrote: > Hi, > > i try to start FOP (0.94) without xalan under JRE 1.6 > If i right understud the docs, i can omit xalan and co. if i use JDK > > 1.4 (JAXP) > > Without using xalan i get problems: > > java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException > at org.apache.fop.fonts.FontCache.addFont(FontCache.java:246) > at > org.apache.fop.render.PrintRendererConfigurator.getFontInfoFromConfiguration(PrintRendererConfigurator.java:313) > at > org.apache.fop.render.PrintRendererConfigurator.buildFontListFromConfiguration(PrintRendererConfigurator.java:196) > at > org.apache.fop.render.PrintRendererConfigurator.configure(PrintRendererConfigurator.java:93) > at > org.apache.fop.render.pdf.PDFRendererConfigurator.configure(PDFRendererConfigurator.java:70) > at > org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:187) > at org.apache.fop.area.RenderPagesModel.(RenderPagesModel.java:70) > at > org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:126) > at org.apache.fop.area.AreaTreeHandler.(AreaTreeHandler.java:101) > at > org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:224) > at org.apache.fop.fo.FOTreeBuilder.(FOTreeBuilder.java:99) > at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:147) > at org.apache.fop.apps.Fop.(Fop.java:82) > at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:226) > … > > I use my own generated font metrics. They are configured in fop.xconf > file. After debuging i found that the class "CachedFontInfo" has a > dependency to org.apache.xml.utils.URI.MalformedURIException which is > a xalan class. > > Does it mean i HAVE to use xalan? Or i do something wrong? > > thans a lot > Dmitri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Total page numbering example only for FOP 0.20.5
Done. Thanks for the hint. Jeremias Maerki On 14.11.2007 11:07:57 Gregan, Miroslav wrote: > > Hi, > > I found a document that is not up to date: > > http://xmlgraphics.apache.org/fop/fo.html#fo-total-pages > > A new example like the following should be added for FOP 0.94 (or > replace the current FOP 0.20.5) > > class rendtest { > > public static void main(File fo, File pdf) { > OutputStream out = null; > try { > FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); > out = new FileOutputStream(pdf); > out = new BufferedOutputStream(out); > Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, > out); > TransformerFactory factory = TransformerFactory.newInstance(); > Transformer transformer = factory.newTransformer(); > Source src = new StreamSource(fo); > Result res = new SAXResult(fop.getDefaultHandler()); > transformer.transform(src, res); > > // Read total page number and set the FO's page-count parameter > transformer.setParameter("page-count", > Integer.toString(fop.getResults().getPageCount())); > > transformer.transform(src, res); > } > catch( Exception e) { > e.printStackTrace(); > } > finally { > if (out != null) { > out.close(); > } > } > } > } > > Cheers, > > Miro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]