Hi,
You need to encode the URL to the item before submitting it to the google API.
The & in your URL is truncating the request. If you URL encode it first then
you won't have that problem.
Cheers,
Steve
Sent from my iPad
On 23/07/2012, at 12:55, "Nemiz, Elvi S."
<[email protected]<mailto:[email protected]>> wrote:
Dear Keiji,
I have actually added the QR-code in the cover page by using the parameter
coverpage.logo2 in dspace.cfg. I am using Google Chart API
(https://developers.google.com/chart/infographics/docs/qr_codes) to generate
the QR-code but I am only limited to set the QR code for the base URL of our
repository. Is it possible to add QR-code on-the-fly on the cover page grabbing
the URI of the item? Right now I just set coverpage.logo2 =
http://chart.apis.google.com/chart?cht=qr&chs=150x150&chl=http://repository.seafdec.org.ph&chld=H|0
and it did generate the QR-code in the cover page but the QR-code is for our
base URL http://repository.seafdec.org.ph only. Our supervisor wanted to
generate the QR-code of the item in the cover page of every pdf file downloaded
e.g. for the item http://repository.seafdec.org.ph/handle/10862/863, the
QR-code should be generated on the fly with a URL GET request
http://chart.apis.google.com/chart?cht=qr&chs=150x150&chl=http://repository.seafdec.org.ph/handle/10862/863&chld=H|0.
Hope I am clear with what I want to achieve and hoping that it is not that
difficult to implement. I am worried that I will messed up the code in
coverpage.java as I am not really a java programmer.
Thank you so much for your help.
Regards,
Elvi
On Thu, Nov 24, 2011 at 4:04 PM, SUZUKI Keiji
<[email protected]<mailto:[email protected]>> wrote:
Hi Elvi,
> Hello Keiji, thank you so much for the patch. Sorry for posting another
> question;-) I just noticed that the cover page font size were all 12
> (header, footer, date) if I set the coverpage.pdfa = true. I've seen that
> you've set the font size for header to 15 as seen in this code:
> protected static final Font FONT_HEADER = (pdfa ? FONT_EMBED :
> setFont(FONT_SANS, Font.FontFamily.HELVETICA, 15, Font.NORMAL));
Attached the new CoverPage.java that is customized to your environment.
It removed CJK fonts, changed sans and sans serif fonts to embed fonts
and enabled these embed fonts to use header-font, tag-font and so on.
You have to set sans and sans serif fonts as embed fonts in dspace.cfg
as follows.
coverpage.font.sans = fonts/arial.ttf,US-ASCII
coverpage.font.serif = fonts/another.ttf,US-ASCII
The "coverpage.font.embed" and "coverpage.font.cjk.*" properties were removed.
> Another thing is how can you set the logo above the header text?
I had tried to realize this, but I couldn't. If you would like to
setthe logo above
the header text, I think you can use the following steps instead.
1. Set "coverpage.logo" property and unset "coverpage.header" in dspace.cfg
2. Hard coding the header text in the program. Consult the lines 477-483 in
the new CoverPage.java
3. Rebuild DSpace.
You can change the contents of the page freely according to your environment.
Please consult the book "iText in action" for details.
Thank you,
Keiji Suzuki
Ebetsu, Japan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech