Dear Keiji,
Thank you for the CoverPage.java that you sent earlier. I can't seem to
embed the font specified in the coverpage.font.embed parameter. In your
sample configuration in dspace.cfg, it is stated to set the path of the
font relative to DSPACE-SRC/dspace/modules/cover/src/main/resources. I
tried the font arial and copied it inside the /resources folder and set the
coverpage.font.embed = arial.ttf,ANSI. I also set the coverpage.font.sans =
Arial,ANSI but everytime I download the pdf, it is still using the
unembedded Helvetica font. Please advise if I missed something. I also
tried to put the complete path of the font in coverpage.font.embed but it
is still using the helvetica font. I then tried to download the helvetica
font and put it inside the resources folder but after I download the pdf
and verify (using Acrobat's preflight) if it is pdf/a compliant, it shows
that the helvetica font is not embedded.
Thank you so much for your help..
Sincerely,
Elvi
On Tue, Nov 15, 2011 at 2:01 PM, SUZUKI Keiji <[email protected]> wrote:
> Hi Elvi,
>
> I am sorry, I had forgotten to delete lines that are need for
> my environment only. I attach a revised code without these
> lines.
>
> Thank you.
>
> Keiji Suzuki
> Ebetsu, Japan
>
>
> 2011/11/15 Nemiz, Elvi S. <[email protected]>:
> > Dear Keiji,
> >
> > Thank you for the time and for providing me with a revised CoverPage.java
> > that will allow us to make our resulting pdfs pdf/a compliant. However, I
> > received an error when rebuilding though. Below is my error message:
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:2.
> > 3.2:compile (default-compile) on project cover: Compilation failure:
> > Compilation
> > failure:
> > [ERROR]
> > \dspace-1.7.2-src-release\dspace\modules\cover\src\main\java\jp\zuki_ebe
> > tsu\dspace\util\CoverPage.java:[72,33] cannot find symbol
> > [ERROR] symbol : class ItemUtility
> > [ERROR] location: package jp.zuki_ebetsu.dspace.util
> > [ERROR]
> > \dspace-1.7.2-src-release\dspace\modules\cover\src\main\java\jp\zuki_ebe
> > tsu\dspace\util\CoverPage.java:[590,24] cannot find symbol
> > [ERROR] symbol : class ItemUtility
> > [ERROR] location: class jp.zuki_ebetsu.dspace.util.CoverPage
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > swit
> > ch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> please
> > rea
> > d the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> > eption
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> > command
> >
> > [ERROR] mvn <goals> -rf :cover
> >
> > Please advise if I missed something.
> >
> > Sincerely,
> > Elvi
> >
> > On Mon, Nov 7, 2011 at 2:12 PM, SUZUKI Keiji <[email protected]> wrote:
> >>
> >> Hi Elvi,
> >>
> >> > My question is can we turn
> >> > this off on some of our collections or communities?
> >>
> >> > By the way, all of our
> >> > pdfs are pdf/a compliant, is it possible to convert the resulting pdf
> >> > with
> >> > cover page as pdf/a compliant?
> >>
> >> I have implemented these functions and attached the new CoverPage.java
> >> with this mail.
> >> Please replace the old one with it and rebuild dspace.
> >>
> >> There are some notes.
> >>
> >> 1) You have to place a font to embed pdf to
> >> DSPACE-SRC/dspace/modules/cover/main/src/resources
> >> and set this path in "coverpage.font.embed" parameter in dspace.cfg
> >> 2) The config parameters are changed somewhat. I place it last in this
> >> mail.
> >> 3) When I open the resulting pdf with Adobe Reader, it seems as PDF/A
> >> but I am not sure if the resulting
> >> pdf conforms all of the PDF/A conditions.
> >>
> >> New config parameters which are set in DSPACE/config/dspace.cfg
> >>
> >> =============== from this ==========================
> >> # for Cover Pagecoverpage.header = ABC University Repository
> >> coverpage.footer = http://dspace.abc.educoverpage.logo =
> >> ${dspace.dir}/webapps/jspui/image/header_logo.jpgcoverpage.logo2 =
> >> # Whether copy security parameters from original
> >> pdfcoverpage.copysecurity = false
> >> # owner password of the original pdf (Required if the original pdf has
> >> the owner password)
> >> coverpage.ownerpass =
> >> # Default data fonts# Default sans font: use Helvetica unless this
> >> property is not specifiedcoverpage.font.sans =
> >> HeiseiKakuGo-W5,UniJIS-UCS2-H# Default serif font: use Times Roman
> >> unless this property is not specifiedcoverpage.font.serif =
> >> HeiseiMin-W3,UniJIS-UCS2-H
> >> # Where original pdf is PDF/A (Only PDF/A-1B is supporte)? (Default
> >> is false)coverpage.pdfa = true# Set the embed font file # Require if
> >> coverpage.pdfa = true
> >> # Format: font path (relative path to
> >> DSPACE-SRC/dspace/modules/cover/src/main/resources)
> >> # + comma + encodingcoverpage.font.embed =
> >> fonts/ipaexg.ttf,Identity-H
> >> # Set the CJK fonts: format is Font Name+comma+Encoding Name
> >> (OPTIONLAL)# Japanesecoverpage.font.cjk.ja =
> >> HeiseiMin-W3,UniJIS-UCS2-H# Traditional
> >> Chinesecoverpage.font.cjk.zh_tw = MSung-Light,UniCNS-UCS2-H#
> >> Simplified Chinesecoverpage.font.cjk.zh_cn =
> >> STSong-Light,UniGB-UCS2-H# Koreancoverpage.font.cjk.ko =
> >> HYSMyeongJo-Medium,HYSMyeongJo-Medium
> >> # Specify communities that are omitted to add cover page
> >> # Format: community's handles separated with commas
> >> (OPTIONAL)coverpage.omit.community = 10236/5
> >>
> >> # Specify collections that are omitted to add cover page# Format:
> >> collection's handles separated with commas (OPTIONAL)
> >> #coverpage.omit.collection = 10236/4,10236/57
> >> # Specify the metadata that are displayed on the cover page
> >> # Format: Tag name + colon + metadata field namecoverpage.field.1 =
> >> Title:dc.titlecoverpage.field.2 =
> >> Author(s):dc.contributor.authorcoverpage.field.3 =
> >> Citation:dc.identifier.citationcoverpage.field.4 = Issue
> >> Date:dc.date.issuedcoverpage.field.5 =
> >> URL:dc.identifier.uri#coverpage.field.6 = Right:dc.rights
> >> =============== until this ============================
> >> Hope this helps you.
> >>
> >> Keiji Suzuki
> >> Ebetsu, Japan
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech