Re: Indic script rendering issue with FOP 2.6

2021-05-22 Thread Csaba Nánai
Hi,

Have you installed the Amiko font set to app server correctly?

Try to use one of the bulk font configuration (
https://xmlgraphics.apache.org/fop/2.6/fonts.html#bulk).


  
 

C:\MyFonts1


C:\MyFonts2



 
  

Csaba


Aejaz Muslim  ezt írta (időpont: 2021. máj. 22.,
Szo, 5:06):

> Hi,
>
> I have a standalone program which uses Apache FOP 2.6 to write hindi text
> to a PDF using Amiko font using the following font metric configuration(On
> CentOS 7 / Java 11),
>
> 
>
> 
>
>
>
>  
>
>  embed-url="Fonts/Amiko.ttf" embedding-mode="full">
>
> 
>
>  
>
>  
>
>  
>
>
>
> 
>
> 
>
>
> The Hindi text produced by the above is correct & shows up as follows in
> the PDF,
>
>
> [image: image.png]
>
> If I remove , it changes to,
>
> [image: image.png]
>
> which is incorrect in almost every word. So, with the auto-detect tag in
> place & using the same method with generates the PDF but called from an
> application server(Wildfly 18 in my case), it always generates the
> incorrect hindi text as in the last image above. I have tried putting
> script attribute with deva/dev2 values but it further deteriorates the
> hindi text in the PDF.
>
> Please help me understand what is missing when the same code is run
> through app server.
>
>
> Thanks in advance,
>
> Aejaz
>


Re: Embed image from database, not from file

2021-03-29 Thread Csaba Nánai
Hi,

An example for data url u can see at
https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html

Best regards, Csaba

d...@rucotec.ch  ezt írta (időpont: 2021. márc. 29., H,
9:27):

>
> > On 26 Mar 2021, at 15:08, Simon Steiner 
> wrote:
> >
> > Hi,
> >
> > The uri can be a data url also
> >
>
> Sounds great. How would that look like? How would I embed the data in the
> xml and then reference from xsl?
> Thanks a lot
>
> > Thanks
> >
> > -Original Message-
> > From: Markus Ruggiero 
> > Sent: 26 March 2021 13:45
> > To: fop-users@xmlgraphics.apache.org
> > Subject: Embed image from database, not from file
> >
> > Folks,
> >
> > I have image data stored in a database, not as a file. It is JPEG data in
> > Base64 encoding. My understanding is that with fo.external-graphic I can
> > only use a proper file url for the image reference - but there is no
> file in
> > my case. Is there any other way to embed image data in the PDF output?
> Can I
> > somehow put the image data into the input xml data file and pull it from
> > there?
> >
> > Thanks for any help
> > ---markus---
> > -
> > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> >
> >
> >
> > -
> > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: modifying an external-graphic src

2021-02-02 Thread Csaba Nánai
Hi,

If you use an XSLT transformation, you can put this value as a parameter to
an XSLT transform mechanism.
No need any override on FOP.

Best regards
Szeak

Carl Buxbaum  ezt írta (időpont: 2021.
jan. 29., P, 17:51):

> Hi all,
>
>
>
> Here is perhaps a naïve question with an obvious answer.
>
>
>
> I would like to extend the flexibility of our implementation by retrieving
> images through a servlet that is protected.  We can do this by appending a
> token to the end of our URL.  I would like to do this without requiring a
> change to the xml  that is being passed to our application.  I have the
> authenticating token available to me, and I have already implemented a
> custom ResourceResolver, and thought to add the token there, however, the
> ResourceResolver is associated with the FOPFactoryBuilder and does not
> change from one call to the next, whereas the token does.
>
>
>
> The example I have is something like:
>
>
>
> 
>
>
>
>
> $img is just a path to a file
>
>
>
> The basedir gets prepended to that, in this case,
> http://host/imageservlet/
>
>
>
> What I would like to end up with is something like
>
>
>
> http://host/imageservlet/path/to/image.jpg?t=
>
>
>
> Any ideas?
>
>
>
> A custom FOEventHandler?
>
>
>
> A custom DocumentHandler?  I would just need to override the endElement
> and then pass control back to the super method.
>
>
>
> Or is there a simple way to do a transform on the xml before handing off
> to FOP?
>
>
>
> Thanks!
>
>
>
> Carl Buxbaum
>
> Bamboo Rose LLC
> --
> DISCLAIMER:
> E-mails and attachments from Bamboo Rose, LLC are confidential.
> If you are not the intended recipient, please notify the sender
> immediately by replying to the e-mail, and then delete it without making
> copies or using it in any way.
> No representation is made that this email or any attachments are free of
> viruses. Virus scanning is recommended and is the responsibility of the
> recipient.
>
>
> *Disclaimer*
>
> The information contained in this communication from the sender is
> confidential. It is intended solely for use by the recipient and others
> authorized to receive it. If you are not the recipient, you are hereby
> notified that any disclosure, copying, distribution or taking action in
> relation of the contents of this information is strictly prohibited and may
> be unlawful.
>
> This email has been scanned for viruses and malware, and may have been
> automatically archived by *Mimecast Ltd*, an innovator in Software as a
> Service (SaaS) for business. Providing a *safer* and *more useful* place
> for your human generated data. Specializing in; Security, archiving and
> compliance. To find out more Click Here
> .
>


Re: Macron alphabets (ā) issue

2020-07-27 Thread Csaba Nánai
Hi,

Did you configure FOP with a font which contains glyphs for macron
characters? And used this font in your FO?
NO
So do it of the right way

Szeak

., Manjunath (TR Technology) 
ezt írta (időpont: 2020. júl. 23., Cs, 11:01):

> Hi Team,
>
>
>
> We are using Apache FOP for converting files from FO to PDF. Macrons
> alphabets (ex :  ā) are displaying as (#) hash in output PDF file. However
> for different special characters we are NOT seeing the issue. I have tried
> using Unicode and HTML entity as suggested in
> https://xmlgraphics.apache.org/fop/fo.html in our FO file, but this does
> not solved the problem. Find attached zip file containing input FO and
> output PDF file.
>
>
>
> Is there any open or existing issue from Apache FOP for Macron characters
> ? could you please suggest if there is a work around for the same ?
>
>
>
> Thanks,
>
> Manju
> This e-mail is for the sole use of the intended recipient and contains
> information that may be privileged and/or confidential. If you are not an
> intended recipient, please notify the sender by return e-mail and delete
> this e-mail and any attachments. Certain required legal entity disclosures
> can be accessed on our website:
> https://www.thomsonreuters.com/en/resources/disclosures.html
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


Re: RTF with footnotes

2020-03-17 Thread Csaba Nánai
 Hi, Telmo

Ok, it is a bit exciting, and I don't understand exactly why, but

1. If i run the same the command as you, the result is the same as yours.
2. If run the generation with the command below, the result is good. (log
messages is also other than first command, represents pagination)

$ fop -fo examples/fo/footnotes/simple.fo simple.rtf

Try it!

Regards, Csaba

2020. 03. 09. 16:14 keltezéssel, Telmo Brugnara írta:

Hi Csaba,

I was using FOP 2.3 and a customized XSL, but for testing purposes
I've downloaded FOP 2.4 and generated the attached RTF file from the
command line...

Since you had success rendering the RTF, I've had also tried in a
Windows machine, but the results were the same

In fact, even using the footnotes examples included in the FOP
distribution (simple.fo or columns.fo) the footnotes aren't rendered
correctly (simple.rtf attached)

Command line used:
$ fop examples/fo/footnotes/simple.fo -rtf simple.rtf

Environments tested:
- ubuntu 16.04, openjdk 1.8.0_242
- ubuntu 16.04, java 1.8.0_92
- windows server 2016, java 1.8.0_151

Regards,
Telmo


On Mon, Mar 9, 2020 at 5:38 AM Szeak (Csaba) 
 wrote:

Hi,

Can you share your config file what you used for rendering RTF?

I'm tried your fo without config from command line with FOP 2.4, and
everything looks good.
Footnotes appears on the bottom of the first page.

Regards, Csaba

Hi there

I'm trying to render footnotes to a RTF file without success. I've
opened the resulting RTF file in Microsoft Office 2010 and LibreOffice
5.1, but the footnotes appear in the end of the file. PDF footnote
rendering works fine

I'm using FOP 2.4 and the attached .fo file
(also here: https://gist.github.com/tbrugz/1f2e2280a558dd32cc47fa09d84377ee)

Is there some limitation to do this?

Regards,
Telmo


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


Re: Form Comb Field

2017-10-14 Thread Csaba Nánai
Hi,

You can do this in various way. Ie.:
1. A table with two lines, fixed height, and number of columns as you need.
For the lower line's columns need to define border-bottom and border-right
(or left).
2. Using an SVG (i don't give you an example, i'm not an SVG expert)
3. Using an image, which represents one column, repeated N times.

Best regards

Szeak

2017-10-14 0:33 GMT+02:00 Marquart, Joshua D 
:

> Hello,
>
>
>
> I’m about to start investigating how to have FOP generate a form comb
> field input area.
>
> By a “form comb field input area” I mean an area where the line is
> underlined, with letter areas separated by half-length pipes coming up from
> the underline.
>
> I do not plan to have this area pre-filled with text, but do plan to use
> it for form generation.
>
>
>
> Has anyone done anything like this previously and had any success; perhaps
> someone has already designed an SVG snippet they can share?
>
>
>
> Thanks,
>
>
>
> Josh
> The information in this message may be proprietary and/or confidential,
> and protected from disclosure. If the reader of this message is not the
> intended recipient, or an employee or agent responsible for delivering this
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please notify
> First Data immediately by replying to this message and deleting it from
> your computer.
>


Re: Scaling image problem

2017-10-12 Thread Csaba Nánai
Hi

Try the scaling=uniform and content-width attributes. Séta content-width tó
the neked is 210mm forint a4 page, or Minus border.

If you dont know which length fills better the page (w or h) there is not a
known solution to calculate it.

Best regards Szeak

2017. okt. 11. 16:55 ezt írta ("Beugnier, Ronny (IP)" <
ronny.beugn...@clarivate.com>):

> Hi,
>
>
>
> I am looking for a way that an image scales to fit the page. I have tried
> various solutions but non worked.
>
>
>
> The image on the page is too big to fit the page so it is not shown
> entirely. How can I scale in fop to see the full image on the image ?
>
>
>
> Many Thanks !
>
>
>
> Ronny
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>


Re: Code39 doesn't scan on Paper but on PDF

2017-02-19 Thread Csaba Nánai
Hi,

After a short research, i think the recommended minimum module-width value
for Code39 is 0.19mm.

Let's try :)

2017-02-19 20:44 GMT+01:00 sandeepsangole :

> Tested PDF generated from itext on same printer and scanner.Its working
> fine.
> Not sure whats making it different on FOP and iText.
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.
> nabble.com/Code39-doesn-t-scan-on-Paper-but-on-PDF-tp44891p44895.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: Place image at top of page

2016-11-28 Thread Csaba Nánai
Hi

You have right. Só in fop the flow ás its name is nőt paged. It paginating
át rendering time. You can using the sequences ás ie ms word but zhese can
be more complex. You can also playing with forced page braking before or
after a paragraph or block-container table etc.

Só you have many chamce tó do It bit you cannot put something exactly to a
nimbered page becose fop not page oriented.

Bye szeak

2016. nov. 28. 15:44 ezt írta ("Michel Krämer" <
michel.krae...@googlemail.com>):

Hi Szeak!

This works! Thank you so much.

Do I understand it correctly that I need to know in advance on which page
my figure appears? So if I need it on page 100 I will have to repeat
 99 times?

I'm asking because I'm generating a rather large document from DocBook
using XSLT. There are many figures on different pages and I want to put
some of them to the top of their respective page. I guess there is no easy
solution for this with FOP, right?

Michel


> On 28 Nov 2016, at 14:04, Szeak (Register Man)  wrote:
>
> Hi,
>
> My solution for your need is:
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Figure 3.1 Layers of code in a complex software
architecture
>
>
>
>https://placeholdit.
imgix.net/~text?txtsize=33txt=350%C3%97150w=
350h=150fm=png)" width="auto">
>
>
>
>Figure 1 Lorem ipsum dolor sit amet
>
>
>
>
>
>   the content of body
>
> Bye
>
> 2016-11-28 13:18 keltezéssel, Michel Krämer írta:
>>> If you want displaying the image exactly on top of the second page?
>> Yes, that's what I want! :-) I want to place an image at the top of a
page, no matter how many paragraphs I have. I want to place it at the top
of the very page, where I put the image, just like you do it in latex with
>>
>> begin{figure}[t!]
>> …
>> \end{figure}
>>
>>> I can help you in this.
>> That's very much appreciated. Thank you so much!
>>
>> Michel
>>
>>
>>> On 28 Nov 2016, at 13:07, Szeak (Register Man) 
wrote:
>>>
>>> Hi,
>>>
>>> If you want placing the image after 20. paragraph, why define it
between 22. and 23?
>>> Or
>>> If you want displaying the image exactly on top of the second page?
>>>
>>> So if you want displaying the image exactly on top of the second page:
>>> You need to define a bit more complex page-masters as now. I can help
you in this.
>>>
>>> Don't hesitate to answer.
>>>
>>> Bye, Szeak
>>>
>>> 2016-11-28 12:21 keltezéssel, Michel Krämer írta:
 Hi Szeak,

 Thanks a lot! This sounds very promising indeed. I can't get it to
work, however.

 If I put  inside my
page-sequence definition I get the following error:

 org.apache.fop.fo.ValidationException: For "fo:page-sequence", only
one "fo:flow" may be declared. (See position 222:48)

 If I create a new page-sequence and put it there FOP will end up in an
endless loop and won't stop generating pages.

 I'm not sure this is the right way, although it really sounds
promising. Maybe I'm just missing something. I uploaded my small example
here:

 https://gist.github.com/michel-kraemer/af82f3e115afb877338a72fa34a539cf

 If you render it you'll see that there is an image between paragraphs
22 and 23. You'll also see that paragraph 20 breaks at the end of page 1
and continues at page 2. I want to place the image at the top of page two,
so right in the middle of paragraph 20.

 Any ideas?

 Thanks for your help!

 Michel



> On 28 Nov 2016, at 11:48, Szeak (Register Man) 
wrote:
>
> Hi,
>
> I don't think you need any code modifing in Java.
> It seems, you need a header for the page, if i understand good your
needs..
>
> So for display header correctly, you need to:
> 1. define an ie.:  in
simple-page-master definiton
>you can define an exact name for it ie.: 
> 2. define an  in page-sequence
definition
>you can use the named definition by: 
>
> That's it.
>
> Bye, Szeak
>
> 2016-11-25 17:11 keltezéssel, Michel Krämer írta:
>> Hi!
>>
>> I'm looking for a way to place an image at the top of the page, just
like you can do it in LaTeX:
>>
>> \begin{figure}[t!]
>>   ...
>> \end{figure}
>>
>> If I understand it correctly, you should be able to do this with the
fo:float object:
>>
>> 
>>   ...
>> 
>>
>> I understand that FOP does not support the "before" value yet.
>>
>> Is there a workaround to achieve the same thing? For example by
placing the image absolutely or something like that?
>>
>> I had a look at the code and it seems the feature is