[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Aw:  PDF output - file can't be opened

Subject: Aw:  PDF output - file can't be opened
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2021 16:26:51 -0000
Aw:  PDF output - file can't be opened
XSLT produces XSL-FO , not PDF. To convert XSL-FO to PDF , use Apache
FOP.

--
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail
gesendet.Am 23.12.21, 17:19 schrieb "Michele R Combs mrrothen@xxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>:

  Hi b

  A colleague sent me a style sheet they use to convert XML to PDF. 
  Ibm using saxon and running it using a command line in a batch
  file, with the command as follows:

  java.exe -cp saxon9he.jar net.sf.saxon.Transform -t
  -s:"../other_peoples/bertha/VdM_EAD export.xml"
  -xsl:"../other_peoples/bertha/at_MetModified.xsl"
  -o:../other_peoples/bertha/test.pdf

  When I run it using their XML, it successfully produces a PDF file
  but when I try to open the file Adobe gives me this error:

  Adobe Acrobat could not open btest.pdfb because it is either not
  a supported file type or because the file has been damagedb&.

  So: their XML, their XSL, my XSL processor and command line.  I can
  open the output PDF file in Notepad and view all the fo:blocks and so
  on.  However, when I attempt to open some other random PDF for
  comparison I just see a bunch of random illegible stuff.   So Ibm
  thinking that my output is missing some particular bit of info that
  makes the file a legit PDF.

  What might be causing this problem?  Do I need to tweak the style
  sheet, for example, or my command line to properly produce PDF? 
  Ibve never worked with PDF files and donbt know much about them. 

  Thanks

  Michele

  +++++++++

  Michele Combs | Lead Archivist

  Special Collections Research Center
  Visit our blog! library-blog.syr.edu/scrc/
  Syracuse University Libraries
  222 Waverly Ave
  Syracuse, New York 13244

  t 315.443-2081 | e mrrothen@xxxxxxx | w scrc.syr.edu

  SYRACUSE UNIVERSITY
  syr.edu

  XSL-List info and archiveEasyUnsubscribe (by email)

XSL-List info and archiveEasyUnsubscribe (by email)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.