Menu

#6 Command Line use with XML file

v1.0_(example)
closed
cvanling
None
5
2017-12-21
2009-10-13
Anonymous
No

I've built a script that scans a folder for PDF files and then creates an XML file in the ofrmat indicated in the documentation, complete with the <?xml> header etc.

The file is well-formed, and uses only the tags indicated in the documentation. When I pass the file as an argument to pdfmerge.exe on teh command line, I get a dialog box:

"There is no Unicode byte order mark. Cannot switch to Unicode."

I'd use the old-style command file format, except that I have unicode filenames.

PdfMerge version 1.19.3361.21520

Any ideas?

Discussion

  • Nobody/Anonymous

    Followup.
    Took a close look at the file I'd created via a shell script - by default, of course, it doesn't matter that the encoding was UTF-16, the file itself was in ASCII. I resolved the problem by filtering the existing file thru' ICONV to create a 'proper' UTF-16 file.

    One consideration is that most parsers are a bit forgiving of files that are passed in as UTF-8 claiming to be UTF-16.

     
  • cvanling

    cvanling - 2017-12-21
    • status: open --> closed
    • assigned_to: cvanling
    • Group: --> v1.0_(example)
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.