PDF to SVG
I am currently taking PDFs, opening them in Illustrator, and
then saving as SVG to convert some files that have text and vector
graphics. I would like to be able to not only automate this
process, but do it on a web-server. Can anyone help me understand
if Mars will be able to help with this or what other products are
available to do this?
Thanks.
Colin,
In order to more accurately answer your question, I believe we would need more information such as what application was originally used to create the pdf, etc.
One basic answer to this question is that I don't believe Illustrator will maintain hyperlinks created in Adobe Acrobat as Illustrator is a vector design application. I wonder if you placed the pdf in InDesign, if it would maintain the links. It may or may not. However, it is not necessarily a problem with Illustrator as much as outside the scope of what its intended use is.
Illustrator is able to edit many pdfs. However, a pdf is not an Illustrator file and vice versa.
Similar Messages
-
Q. Generation of PDF containing SVG
Dear All,
I need to generate PDF containing SVG, from
an application which makes use of
xmlparserv2.jar
I've got the xsl working properly, when no
SVG is included, using FOP (0.19CVS) however
when SVG is included the FOP hangs.
This happens also without using xmlparserv2.jar and simply when using the java -jar fop.jar commandline.
In another way, which FOP is supported by xmlparserv2.jar and has been tested to generate PDF containing SVG successfully ?
Details appreciated.
lucaOk,
I found the problem for style attribute output...I have to set also the CSSProperties in the option structure to PresentationAttributes...
BUT, nothing about exporting the embedded image...
It seems to be a bug of Illustrator ?
Eric. -
Converting PDF to SVG using Illustrator CS2
Hi
I'm trying to convert a PDF to a SVG file using illustrator. The PDF has a number of http links created using the smart link tool in acrobat professional. When I create the svg, I expected the links to be maintained. Unfortunately they were not in the svg. Is there some option I've missed or is this a problem with illustrator?
Thanks
ColinColin,
In order to more accurately answer your question, I believe we would need more information such as what application was originally used to create the pdf, etc.
One basic answer to this question is that I don't believe Illustrator will maintain hyperlinks created in Adobe Acrobat as Illustrator is a vector design application. I wonder if you placed the pdf in InDesign, if it would maintain the links. It may or may not. However, it is not necessarily a problem with Illustrator as much as outside the scope of what its intended use is.
Illustrator is able to edit many pdfs. However, a pdf is not an Illustrator file and vice versa. -
[solved] asciidoc -- pdf/roff
Hi,
I am playing around with asciidoc, and already can convert some stuff to html, but not to pdf/roff. This is done by a script called a2x. According to the manpage, this requires:
- xsltproc (presumably named libxslt in Arch)
- DocBook XSL Stylesheets (docbook-xsl)
- FOP (for PDF file generation)
- Lynx (for text file generation)
fop is from AUR, and I to had rename /usr/bin/fop (a simple link to the file in /var/abs/local) to /usr/bin/fop.sh. But still, I get errors like this:
[tlaloc@archbox ~]$ a2x -f pdf TODOS2.txt
Making portrait pages on A4 paper (210mmx297mm)
07.04.2008 13:43:21 org.apache.fop.cli.Main startFOP
SCHWERWIEGEND: Exception
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
<snip>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
<snip>
org.apache.fop.apps.FOPException: file:/home/tlaloc/./TODOS2.fo:1:25385: Error(1/25385): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions", Local Name: "destination")
at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:214)
<snip>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
<snip>
a2x: failed: fop.sh "./TODOS2.fo" "./TODOS2.pdf"
[tlaloc@archbox ~]$
Does anyone has more insight to /experience with this.
Best regards,
Matt
Last edited by tlaloc (2008-05-05 11:50:26)I have made a new PKGBUILD for fop using version 0.20.5 (as recommended here).
It worked with a2x.
# Contributor: Mildred <[email protected]>
# Mantainer: Andres Blanc <[email protected]>
pkgname=fop
pkgver=0.20.5
pkgrel=1
pkgdesc="XSL-FO Apache processor. Transform XSL-FO documents into various formats like PDF, PS, SVG and more"
arch=(i686)
url="http://xmlgraphics.apache.org/fop/"
license=('APACHE')
depends=('java-runtime')
source=("http://archive.apache.org/dist/xml/fop/binaries/fop-$pkgver-bin.tar.gz")
md5sums=('d6b43e3eddf9378536ad8127bc057d41')
build() {
mkdir "$startdir/pkg/opt"
mkdir -p "$startdir/pkg/usr/bin"
cp -r "$startdir/src/fop-$pkgver" "$startdir/pkg/opt/fop"
ln -s /opt/fop/fop.sh $startdir/pkg/usr/bin/fop.sh || return 1
return 0
You can also use dblatex to convert from docbook to pdf using latex. It is in AUR.
I hope it helped. -
Here is an install log:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for a BSD-compatible install... /bin/install -c
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for fopencookie... yes
checking for funopen... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for snd_pcm_open in -lasound... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for sys/stat.h... (cached) yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking for alsa/asoundlib.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sys/mount.h... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for calloc... yes
checking for malloc... yes
checking for free... yes
checking for popen... yes
checking for sysinfo... yes
checking for getloadavg... yes
checking for memrchr... yes
checking for strndup... yes
checking for gethostbyname_r... yes
checking for library containing clock_gettime... -lrt
checking for struct statfs.f_fstypename... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for db2x_xsltproc... no
checking for db2x_manxml... no
checking for xsltproc... no
checking if /usr/bin/ld accepts -O1... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/build.h
config.status: creating lua/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
conky 1.7.2 configured successfully:
Installing into: /usr
System config dir: /etc
C compiler flags: -Wall -W
Libraries: -lm -lasound -lrt
Linker flags: -Wl,-O1
* X11:
X11 support: no
XDamage support: no
XDBE support: no
Xft support: no
* Music detection:
Audacious: no
BMPx: no
MPD: yes
MOC: yes
XMMS2: no
* General:
OpenMP:
math: yes
hddtemp: no
portmon: no
RSS: no
Curl: no
Weather
METAR: no
XOAP: no
wireless: no
IBM: no
nvidia: no
eve-online: no
config-output: yes
Imlib2: no
ALSA mixer: yes
apcupsd: yes
I/O stats: yes
* Lua (no) bindings:
Cairo: no
Imlib2: no
Making all in src
/bin/sh: line 17: cd: src: No such file or directory
make: *** [all-recursive] Error 1
A couple of months ago I stumbled upon this problem, but handfixed all entrances in Makefiles recursively, changing explicitly '/bin/sh' on '/bin/bash' (although, /bin/sh is a link on /bin/bash). Now I had do deploy archlinux on another machine and here's the problem, again.
Last edited by cra (2009-10-27 12:43:53)Ok, I rm'ed the src and pkg subdirectories for package cairo-lcd, here's what I have:
(Actually, no specific options for makepkg)
[cra@cratop 07:47:47 ~/downloads/cairo-lcd]
$ ls
PKGBUILD cairo-1.8.8.tar.gz lcd-filter.patch
[cra@cratop 07:48:46 ~/downloads/cairo-lcd]
$ makepkg
==> Making package: cairo-lcd 1.8.8-1 i686 (Wed Oct 21 07:48:50 MSD 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found cairo-1.8.8.tar.gz in build dir
-> Found lcd-filter.patch in build dir
==> Validating source files with md5sums...
cairo-1.8.8.tar.gz ... Passed
lcd-filter.patch ... Passed
==> Extracting Sources...
-> bsdtar -x -f "cairo-1.8.8.tar.gz"
==> Entering fakeroot environment...
==> Starting build()...
patching file doc/public/cairo-sections.txt
Hunk #1 succeeded at 326 (offset 7 lines).
patching file src/cairo-font-options.c
patching file src/cairo-ft-font.c
Hunk #2 succeeded at 742 (offset 3 lines).
Hunk #3 succeeded at 1034 (offset 3 lines).
Hunk #4 succeeded at 1091 (offset 3 lines).
Hunk #5 succeeded at 1103 (offset 3 lines).
Hunk #6 succeeded at 1124 (offset 3 lines).
Hunk #7 succeeded at 1162 (offset 3 lines).
Hunk #8 succeeded at 1225 (offset 3 lines).
Hunk #9 succeeded at 1252 (offset 3 lines).
Hunk #10 succeeded at 1500 (offset 3 lines).
Hunk #11 succeeded at 1542 (offset 3 lines).
Hunk #12 succeeded at 1578 (offset 3 lines).
Hunk #13 succeeded at 1697 (offset 3 lines).
Hunk #14 succeeded at 1726 (offset 3 lines).
Hunk #15 succeeded at 2695 (offset 25 lines).
patching file src/cairo-types-private.h
Hunk #1 succeeded at 116 (offset 8 lines).
patching file src/cairo-xlib-screen.c
Hunk #1 succeeded at 143 with fuzz 1 (offset 11 lines).
Hunk #2 succeeded at 159 (offset 11 lines).
Hunk #3 succeeded at 257 (offset 11 lines).
Hunk #4 succeeded at 287 (offset 11 lines).
patching file src/cairo.h
Hunk #1 succeeded at 1046 (offset 78 lines).
Hunk #2 succeeded at 1171 (offset 78 lines).
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bash... /bin/bash
checking if dolt supports this host... yes, replacing libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
checking for find... /usr/bin/find
checking for xargs... /usr/bin/xargs
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether gcc and cc understand -c and -o together... yes
checking for inline... inline
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether byte ordering is bigendian... no
checking whether float word ordering is bigendian... no
checking for native atomic primitives... Intel
checking whether atomic ops require a memory barrier... no
checking for native Win32... no
checking for Sun Solaris (non-POSIX ctime_r)... no
checking for cos in -lm... yes
checking for sched_yield in -lrt... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for sched_getaffinity... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking for feenableexcept... yes
checking for fedisableexcept... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking for signal.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for vasnprintf... no
checking for link... yes
checking for ctime_r... yes
checking for drand48... yes
checking for flockfile... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for supported warning flags...
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wsign-compare... yes
checking whether gcc supports -Werror-implicit-function-declaration... yes
checking whether gcc supports -Wpointer-arith... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Wnested-externs... yes
checking whether gcc supports -Wpacked... yes
checking whether gcc supports -Wswitch-enum... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wstrict-aliasing=2... yes
checking whether gcc supports -Winit-self... yes
checking whether gcc supports -Wunsafe-loop-optimizations... yes
checking whether gcc supports -Wdeclaration-after-statement... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-attributes... yes
checking whether gcc supports -Wno-long-long... yes
checking whether gcc supports -Winline... yes
checking whether gcc supports -fno-strict-aliasing... yes
checking whether gcc supports -fno-common... yes
checking whether gcc supports -Wp,-D_FORTIFY_SOURCE=2... yes
checking which warning flags were supported... -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2
checking how to enable unused result warnings... __attribute__((__warn_unused_result__))
checking how to allow undefined symbols in shared libraries used by test suite... checking whether gcc supports -Wl,--allow-shlib-undefined... yes
-Wl,--allow-shlib-undefined
checking for VALGRIND... no
no
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for X... libraries , headers
checking for cairo's Xlib surface backend feature...
checking for xlib... yes
checking whether cairo's Xlib surface backend feature could be enabled... yes
checking for cairo's Xlib Xrender surface backend feature...
checking for xlib_xrender... yes
checking whether cairo's Xlib Xrender surface backend feature could be enabled... yes
checking for cairo's XCB surface backend feature...
checking for xcb... yes
checking whether cairo's XCB surface backend feature could be enabled... yes
checking for cairo's Quartz surface backend feature...
checking ApplicationServices/ApplicationServices.h usability... no
checking ApplicationServices/ApplicationServices.h presence... no
checking for ApplicationServices/ApplicationServices.h... no
checking CoreGraphics/CoreGraphics.h usability... no
checking CoreGraphics/CoreGraphics.h presence... no
checking for CoreGraphics/CoreGraphics.h... no
checking whether cairo's Quartz surface backend feature could be enabled... no (requires CoreGraphics framework)
checking for cairo's Quartz font backend feature...
checking whether cairo's Quartz font backend feature could be enabled... no (requires CoreGraphics framework)
checking for cairo's Microsoft Windows surface backend feature...
checking whether cairo's Microsoft Windows surface backend feature could be enabled... no (requires a Win32 platform)
checking for cairo's Microsoft Windows font backend feature...
checking whether cairo's Microsoft Windows font backend feature could be enabled... no (requires a Win32 platform)
checking for cairo's PNG functions feature...
checking for png... yes
checking whether cairo's PNG functions feature could be enabled... yes
checking for cairo's FreeType font backend feature...
checking for FONTCONFIG... yes
checking for FcFini... yes
checking for FREETYPE... yes
checking whether cairo's FreeType font backend feature could be enabled... yes
checking for FT_Bitmap_Size.y_ppem... yes
checking for FT_GlyphSlot_Embolden... yes
checking for FT_Load_Sfnt_Table... yes
checking for FT_Library_SetLcdFilter... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for cairo's PostScript surface backend feature...
checking whether cairo's PostScript surface backend feature could be enabled... yes
checking for gs... gs
checking for LIBSPECTRE... yes
checking for cairo's PDF surface backend feature...
checking whether cairo's PDF surface backend feature could be enabled... yes
checking for POPPLER... yes
checking for poppler_page_render... yes
checking for cairo's SVG surface backend feature...
checking whether cairo's SVG surface backend feature could be enabled... yes
checking for LIBRSVG... yes
checking for rsvg_pixbuf_from_file... yes
checking for cairo's image surface backend feature...
checking for pixman... yes
checking whether cairo's image surface backend feature could be enabled... yes
checking for cairo's user font backend feature...
checking whether cairo's user font backend feature could be enabled... yes
checking for gtk... yes
configure: creating ./config.status
config.status: creating src/cairo.pc
config.status: creating cairo-uninstalled.pc
config.status: creating src/cairo-xlib.pc
config.status: creating cairo-xlib-uninstalled.pc
config.status: creating src/cairo-xlib-xrender.pc
config.status: creating cairo-xlib-xrender-uninstalled.pc
config.status: creating src/cairo-xcb.pc
config.status: creating cairo-xcb-uninstalled.pc
config.status: creating src/cairo-png.pc
config.status: creating cairo-png-uninstalled.pc
config.status: creating src/cairo-ft.pc
config.status: creating cairo-ft-uninstalled.pc
config.status: creating src/cairo-ps.pc
config.status: creating cairo-ps-uninstalled.pc
config.status: creating src/cairo-pdf.pc
config.status: creating cairo-pdf-uninstalled.pc
config.status: creating src/cairo-svg.pc
config.status: creating cairo-svg-uninstalled.pc
config.status: creating Makefile
config.status: creating boilerplate/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating test/pdiff/Makefile
config.status: creating perf/Makefile
config.status: creating util/Makefile
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing ./build/Makefile.win32.features commands
config.status: creating ./build/Makefile.win32.features
config.status: ./build/Makefile.win32.features is unchanged
config.status: executing ./src/Makefile.am.features commands
config.status: creating ./src/Makefile.am.features
config.status: ./src/Makefile.am.features is unchanged
config.status: executing ./src/Makefile.win32.features commands
config.status: creating ./src/Makefile.win32.features
config.status: ./src/Makefile.win32.features is unchanged
config.status: executing ./boilerplate/Makefile.am.features commands
config.status: creating ./boilerplate/Makefile.am.features
config.status: ./boilerplate/Makefile.am.features is unchanged
config.status: executing ./boilerplate/Makefile.win32.features commands
config.status: creating ./boilerplate/Makefile.win32.features
config.status: ./boilerplate/Makefile.win32.features is unchanged
config.status: executing src/cairo-features.h commands
config.status: creating src/cairo-features.h
config.status: executing ./src/cairo-supported-features.h commands
config.status: creating ./src/cairo-supported-features.h
config.status: ./src/cairo-supported-features.h is unchanged
config.status: executing ./build/Makefile.win32.features-h commands
config.status: creating ./build/Makefile.win32.features-h
config.status: ./build/Makefile.win32.features-h is unchanged
cairo (version 1.8.8 [release]) will be compiled with:
The following surface backends:
Image: yes (always builtin)
Xlib: yes
Xlib Xrender: yes
Quartz: no (requires CoreGraphics framework)
Quartz-image: no (disabled, use --enable-quartz-image to enable)
XCB: yes
Win32: no (requires a Win32 platform)
OS2: no (disabled, use --enable-os2 to enable)
PostScript: yes
PDF: yes
SVG: yes
glitz: no (disabled, use --enable-glitz to enable)
BeOS: no (disabled, use --enable-beos to enable)
DirectFB: no (disabled, use --enable-directfb to enable)
The following font backends:
User: yes (always builtin)
FreeType: yes
Win32: no (requires a Win32 platform)
Quartz: no (requires CoreGraphics framework)
The following functions:
PNG functions: yes
And the following internal features:
gcov support: no
test surfaces: no (disabled, use --enable-test-surfaces to enable)
ps testing: yes
pdf testing: yes
svg testing: yes
--- The XCB surface backend feature is still under active development and is
--- included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to XCB surface backend specific
--- API.
make all-recursive
make[1]: Entering directory `/home/cra/downloads/cairo-lcd/src/cairo-1.8.8'
Making all in src
/bin/sh: line 17: cd: src: No such file or directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cra/downloads/cairo-lcd/src/cairo-1.8.8'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
[cra@cratop 07:49:13 ~/downloads/cairo-lcd]
$ -
Is there or will there be a way to draw accurate measured lines and curves in Line?
I am very excited about the new Line app and Ink & Slider; however it would be far more useful for me and many others to be able to measure line length, angles, curves, radii, etc. Will this function be introduced in the future? This functionality would be a great addition for technical drawing on iPad to Illustrator.
Thanks, davidmacy . Natedogchc and tmhenton have made some of the suggestions I had in mind and very well - thank you both for your well thought out responses.
I primarily draft custom garments & sewing patterns where, the need for accuracy down to at the very least 1/16th inch or .25 mm is critical, and also textile & interior design. Within all of these disciplines, Line & Slider looks like it has the potential to be THE mobile application we've been waiting for, enabling accurate drafting on the go and making fine adjustments when back at Illustrator. Given the restrictions of the iPad, it would be feasible to work in both imperial and metric scales from ¼:1 to 1:1 at a minimum. Accurate line length and measuring distance between straight/angled lines, the ability to measure the length of curves drawn with the french curves or freehand are also desirable for accurate drafting.
The ability to import/export files in order of priority: .ai; .psd, .pdf, .eps, .svg would make workflow between desktop and iPad ideal. Most of us work in layers, so their portability is a must. It would be great if Adobe CC desktop and mobile apps plans to take advantage of the "Hand-Off" feature announced for the upcoming release of iOS 8.
I realize there are limitations and that we are not going to get a full fledged CAD/illustrator iPad version, but without being able to draft accurately the app as it stands now is useful only for conceptual drawings - but the potential is there for it to be so much more.
Exporting to Dropbox and other cloud-based services in addition to CC would be a great addition as well.
As Tracey mentioned, if any of these features already exist and I've missed them please let me know.
Thanks very much.
Jill -
Reuse embedded vector graphics
I wan to reuse embedded vector graphics from FM documents in MS Office and OpenOffice.
I found the Linux tool mif2xfig which works only for MIF 4.0.
http://www2.cs.unibw.de/alumni/Ansgar/mif2xfig/
FrameMaker > Print to PDF > Import PDF in OpenOffice Draw -> Save selection as EPS
is my current procedure.
Any ideas?What vector graphics formats do those apps support?
There have been at least 2 FrameScript or plug-in tools for exporting FM graphics discussed here over the years, but the only one for which I found a link, the link was stale.
For small numbers of such embeds, I normally open the PDF page in Illustrator, and delete all the page content except the image elements of interest. Save as EPS, PDF or SVG, depending on target app support for vector imports.
Acrobat Pro has the ability to export all images in a PDF, but as of 9.0, only to raster format. We have XI, but I haven't checked to see if that feature's been enhanced. -
So where to now? Right after the very first stumbling steps?
I've used Linux just under three years now (mainly Ubuntu) so I am still very much a newbie. After reading a magazine article about Arch - which statet that, although not a distro for beginners, it was a good starting point for people who want to learn what Linux is really about - I took the plunge and installed it on a (secondary) machine.
Following the very instructive Beginner's Guide I now have a functioning system on which I can to the basic stuff. I installed xfce as my desktop environment and so far I haven't had any serious meltdowns!
However, I soon realised that I will need to install a lot of stuff, like plug-ins for the browser (for sound, video etc) and my question is; where is the best place to take the next steps? How do I know what I need, for instance? How to I search for stuff when I don't know what they are called?
For example, I wanted to read an pdf-file but didn't have the right app to do it. I searched for adobe, adobe-reader, adobereader, etc but found nothing. I know there are other pdf-readers, of course, but what are they called? Or how do I find out how to toggle between different keyboard layouts? Little things like that...In short! What's my next step in the Arch learning process?
Best regards
Ollie[karol@black ~]$ pacman -Ss pdf
extra/cups-pdf 2.5.1-1 [0,01 MB]
PDF printer for cups
extra/gv 3.7.2-1 [0,16 MB]
A program to view PostScript and PDF documents
extra/itext 5.0.4-1 [1,44 MB]
Java Library for creating and manipulating PDFs on the fly
extra/libreoffice-extension-pdfimport 3.4.0-2 [0,36 MB] (libreoffice-extensions)
This extension allows you to import and modify PDF documents
extra/poppler 0.16.5-1 [0,70 MB] [installed]
PDF rendering library based on xpdf 3.0
extra/poppler-data 0.4.4-1 [1,41 MB] [installed]
Encoding data for the poppler PDF rendering library
extra/potrace 1.9-2 [0,07 MB]
Utility for tracing a bitmap. Input: PBM, PGM, PPM, or BMP. Output: EPS, PostScript, PDF, SVG, Xfig,
Gimppath, or PGM.
extra/pstoedit 3.50-4 [0,37 MB]
Translates PostScript and PDF graphics into other vector formats
extra/texlive-bin 2010.1-8 [13,35 MB]
TeX Live binaries
extra/xpdf 3.02_pl6-1 [0,37 MB]
A viewer for Portable Document Format (PDF) files
extra/xpdf-arabic 20030216-3 [0,00 MB]
Adds support for Arabic fonts to xpdf
extra/xpdf-chinese-simplified 20040427-5 [0,30 MB]
Adds support for simplified Chinese fonts to xpdf
extra/xpdf-chinese-traditional 20040727-5 [0,30 MB]
Adds support for traditional Chinese fonts to xpdf
extra/xpdf-cyrillic 20030628-3 [0,00 MB]
Adds support for Cyrillic fonts to xpdf
extra/xpdf-greek 20030728-4 [0,00 MB]
Adds support for Greek fonts to xpdf
extra/xpdf-hebrew 20030216-4 [0,00 MB]
Adds support for Hebrew fonts to xpdf
extra/xpdf-japanese 20040727-5 [0,22 MB]
Adds support for Japanese fonts to xpdf
extra/xpdf-korean 20050707-4 [0,18 MB]
Adds support for Korean fonts to xpdf
extra/xpdf-latin2 20021022-3 [0,00 MB]
Adds support for Latin2 fonts to xpdf
extra/xpdf-thai 20020116-3 [0,00 MB]
Adds support for Thai fonts to xpdf
extra/xpdf-turkish 20020410-3 [0,00 MB]
Adds support for Turkish fonts to xpdf
community/apvlv 0.1.1-1 [0,16 MB] [installed]
A PDF Viewer which behaves like Vim
community/dblatex 0.3-3 [0,94 MB]
DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex.
community/epdfview 0.1.8-1 [0,09 MB]
A free lightweight PDF document viewer.
community/gambas2-gb-pdf 2.23.1-1 [0,01 MB] (gambas2)
Gambas2 PDF component
community/gambas3-gb-pdf 2.99.1-3 [0,01 MB] (gambas3)
Gambas3 PDF component
community/htmldoc 1.8.27-5 [3,03 MB]
Produce PDF or Postscript from HTML documents including TOCs and Indices
community/impressive 0.10.3-1 [0,13 MB]
A fancy PDF presentation program (previously known as KeyJNote).
community/mupdf 0.8.165-1 [2,70 MB]
lightweight PDF viewer and toolkit written in portable C
community/pdf2djvu 0.7.7-1 [0,10 MB]
Creates DjVu files from PDF files
community/pdf2svg 0.2.1-5 [0,00 MB]
A pdf to svg convertor
community/pdfedit 0.4.5-1 [1,66 MB]
Full featured editor for manipulating PDF documents
community/pdftrans 1.2-7 [0,01 MB]
A utility to add metadata, protect, and encrypt PDF documents
community/podofo 0.9.1-1 [0,66 MB]
A C++ library to work with the PDF file format
community/python-pychart 1.39-5 [0,37 MB]
Python library for creating Encapsulated Postscript, PDF, PNG, or SVG charts.
community/python-pypdf 1.13-1 [0,05 MB]
A Pure-Python library built as a PDF toolkit
community/python-pyx 0.10-5 [0,28 MB]
Python library for the creation of PostScript and PDF files
community/python-reportlab 2.5-1 [1,83 MB]
A proven industry-strength PDF generating solution
community/wkhtmltopdf 0.9.9-1 [0,07 MB]
Simple shell utility to convert html to pdf using the webkit rendering engine, and qt
community/x-docs-pdf 20100416-1 [69,82 MB]
X documentation
community/zathura 0.0.8.3-1 [0,03 MB]
a PDF viewer
archlinuxfr/acroread 9.4.2-1 [43,38 MB]
Adobe Reader for viewing PDF files
archlinuxfr/acroread-fra 9.4.2-1 [47,07 MB]
Adobe Reader for viewing PDF files (French)
archlinuxfr/guipdftk 0.33-1 [0,42 MB]
GUI for PDFTK
archlinuxfr/livret 0.2-2 [1,75 MB]
Booklet is a small freeware program written in Java for creating small books from a PDF document. Drops
from a source PDF file containing two files the fronts and backs ready to be printed and stapled.
archlinuxfr/pdftk 1.44-3 [0,64 MB]
Pdftk is a simple tool for doing everyday things with PDF documents
archlinuxfr/stapler 2b-2 [0,00 MB]
A small utility making use of the pypdf library to provide a (somewhat) lighter alternative to pdftk
herecura-stable-any/pdfminer 20110515-1 [0,16 MB]
python utils to extract, analyze text data of PDF files.
herecura-stable/pdf2html 1.4-4 [0,02 MB]
Converts pdf files to html files.
andrwe/apvlv-svn 338-1 [0,19 MB]
A pdf viewer which behaves like Vim.
andrwe/pdf_presenter_console 1.1.1-3 [0,01 MB]
Presentation viewer for PDF files including Keyjnote like multi-monitor support.
Many of the above are not pdf readers (but you _can_ find acroread - Adobe Reader for viewing PDF files).
Read about https://wiki.archlinux.org/index.php/Un … positories to know where you can get some of this stuff from. -
Trouble saving illustrator files as jpeg.
Before CS3 came along it was possible to save ai files as jpeg directly in the program. Now that option is no longer possible. How can one save illustrator files as jpeg. Can anyone help please?
This is user error…you could never save an Illustrator file as jpeg you can only save Illustrator files as templates, ai file, pdf, eps, svg and fxg.
fxg I belive is relatively recent.
However the answer to what you want to do is the same as it has been for a very long time.
File >Export>Format>Jpeg
All is well once again.
We sometimes forget where things are… -
Importing Visio diagrams into Framemaker
Hi all, I am considering using framemaker9 as my main documentation tool, and using visio2003 as my diagramming tool.
As such, I will be importing the visio diagrams into framemaker by reference so that any mods to the visio diagrams will be automatically reflected in the framemaker document.
The questions I have is:
1. Which file format is the best to use for the importing? Should I save the visio diagrams in PDF or SVG format? I would prefer a format which provide the most resolution.
2. When I have more than 1 page in a visio file, I noticed that there is no way for me to choose which page to be imported when importing in SVG format. However, with PDF, a dialog box would pop up to allow me to select which page in the visio file to be imported. Is this a bug in framemaker or have I missed some step in the process of importing SVG file?
3. When importing some graphics/diagrams into an anchor frame, is there a way to make the imported graphics/diagrams automatically adjust its size to fit into the anchored frame area? If so, what are the steps?
TIA
BTW, I am just an engineer trying to document my work.framethrower,
A PDF might be the most portable and reliable option for rendering; however, I find PDF generation to be a bit cumbersome when there are many images to deal with. I use Visio frequently and have had good success using the WMF format. All vector qualities of the original image are maintained and it looks OK on the screen. Naturally, it prints perfectly. I also like how the final image size automatically adjusts to the exact dimensions of the artwork, regardless of the original canvas size. Some caveats:
- WMF is Windows only
- Fonts are not embedded. If you distribute the image in any format besides a PDF, the target computer will need to have any fonts that you used.
Otherwise, I'd suggest it as an option. I have a macro set up in Visio that saves a copy of an image as WMF, so I can refresh my WMF version with a click. I've pasted the basic macro text below. Note that this macro also saves a PNG version as well. It may be possible to adjust it to save a PDF version, I'm not sure. In any case, over the long haul, it saves much time over doing the manual Save As.
Russ
Sub Save_as_PNG_WMF()
Dim path As String
Dim newpath As String
Dim length As Integer
' Get the document path
path = Application.ActiveWindow.Document.FullName
' get the length of the path, to be used for truncation
length = Len(path)
' change our filename to have a wmf extension
newpath = Left(path, length - 4)
newpath = newpath + ".wmf"
' save the wmf
Application.ActiveWindow.Page.Export newpath
' do the same for png
newpath = Left(path, length - 4)
newpath = newpath + ".png"
Application.ActiveWindow.Page.Export newpath
End Sub -
View own thumbnails in pcmanfm
Hi. I use Arch with LXDE with miniatures view in pcmanfm. I can see small own images of pdf, png, svg and jpg files, it's a nice feature to find files in a quick view. However some other files are shown with the standard icon:
- eps images
- text files
- ogg (with embedded art)
That's what I seen on Arch - LXDE - pcmanfm:
http://s14.postimage.org/820gl13rz/pcmanfm.png
That's what I see in anothe computer with ubuntu - unity - nautilus:
http://s15.postimage.org/ym54ltjft/nautilus.png
I would like to see all the thumbnails in pcmanfm. I'm not sure if it's a pcmanfm feature or if it depends on some packages I haven't installed in Arch. I posted this question in the LXDE forum, but I haven't received an answer. Any idea? Thanks.
Last edited by David López (2012-09-12 20:41:38)x33a wrote:I have never seen a music file being displayed with a thumbnail
Look at my first post and you will see one The cover is embedded in the ogg file (I used easytag to do it)
I've made lots of test with very few sucess. I've installed nautilus in Arch and it creates the eps thumbnails, and pcmanfm could read them; however pcmanfm still refuses to create them. No trace of ogg and text thumbnails, and thunar and spacefm didn't help. I also tried installing several audio thumbnailers in AUR.
There's a libfm adapted to thumbnailers in AUR, but it seems it's not compatible with 1.0 pcmanfm. Maybe in a future this will be helpful.
I also tried the inverse way, install pcmanfm in my ubuntu computer and only images work fine; ogg, text, eps, and even pdf were lost. Maybe canonical patched nautilus in ubuntu to add more thumbnails, I will post in askubuntu. I'll comment here if I make some progress
Edit: installing totem makes nautilus generate ogg thumbnailers. pcmanfm can't generate,but it can view, those thumbnailers.
Last edited by David López (2012-09-17 18:51:49) -
http://sk1.sourceforge.net/
http://sk1.sourceforge.net/?op=about wrote:
sK1 is an open source vector graphics editor similar to CorelDRAW, Adobe Illustrator, Freehand, or Xara X. The project goals are Opensource solution for printing industry. Therefore sK1 is oriented first of all for PostScript processing.
We try building sK1 application which is oriented first of all on usual designers and prepress engineers, but not for advanced geeks. Therefore installation process extremally simplified and automated. Also sK1 distribution tarball includes all you needed for installation, except program headers. As result of such way - sK1 distribution is large (~20 Mb).
So, basically, it is not absolutely necessary to have a binary package, but I'd feel more confortable installing from a PKGBUILD. Will not complain if you tell me this request is dumb. Hell, I will not even complain if you told me I'm dumb.
Note: It should probably go under /opt...Take a look at iDraw. I was never a CorelDraw user, but I think it is fairly similar to Adobe Illustrator in which I have a very little bit of basic knowledge. iDraw is as close to Ilustrator as any app that I have seen. You can export your designs a pdf files, svg, png and jpeg.
I have played around with iDraw a little bit, and I think it will do what you want it to do. I drew this with iDraw. I am not proficent at all .... -
Hello,
is it possible to include SVG`s to a pdf report, which is created with FOP?
I read something like Batik....
Does anybody have any experiences about that?
Thanks,
TimThank you, CtDave, for your speedy reply and for the 'Acrobat Technical Evangelist' knowledge base article. Word 2000 is one of Microsoft's masterpieces - by disabling 'autosave', the application is totally stable, does not require 'activation' by Microsoft. Acrobat 9 enables 'saving' of interactive .pdf forms, a most valuable feature and one much appreciated by anyone completiing such forms. There must be more to this issue than 'incompatibility', because I can create a test Word 2000 document, hyperlink a valid URL, convert to .pdf with Acrobat 9, and the hyperlink works fine in Acrobat 9. When I attempt to do this using a much more complex Word 2000 document, embedded with scores of hyperlinks, these links fail to work following conversion to .pdf with Acrobat 9, but work fine following conversion to .pdf with Acrobat 6. I can then use Acrobat 9 to open the .pdf created with Acrobat 6, and successfully edit any of these fully functional hyperlinks using the 'Link tool'. I don't know who prepared the 'Acrobat Technical Evangelist' article (AF1908DCd01) - no credits were cited, and I'm far from certain that this authentically belongs to Adobe's knowledge base. So I appreciate your sharing this information with me, but I cannot say that my question has been definitively answered. If you have any further information or tips, please reply in this thread. /rmbrown
-
Script to open SVGs in a folder and save them to one multipage PDF
Hi.
I'm using Illustrator for work and I love it, I never needed scripts yet.
Now I have couple houndred svgs coming in per day,
I would like to have a script that opens every svg one by one in the selected directory and add them to a pdf
as pages of the same size and than save it.
Is this possible? How many files I could put in 1 pdf this way?
I'm using Illustrator CS5 on Win7 x64.
Thanks in advance.
IstvanI think there is a 100 file limit on artboards ( not tested ) but the size would also affect that… You can't straight place *.svg but you can make group from them would that do you?
#target Illustrator
function filesToArtboards() {
// My function variables…
var doc, fileList, i, inFolder, mm, svgFile;
// Get the user to select a folder
inFolder = Folder.selectDialog( 'Please choose your Folder of files to place…' );
// Check they ain't cancelled
if ( inFolder != null ) {
// Gets just the SVG files…
fileList = inFolder.getFiles( /\.svg$/i );
// Make sure it has AI files in it…
if ( fileList.length > 0 ) {
mm = 2.83464567 // Metric MM converter…
// Set the script to work with artboard rulers
app.coordinateSystem =
CoordinateSystem.ARTBOARDCOORDINATESYSTEM;
// Add new multi-page document
doc = app.documents.add(
DocumentColorSpace.RGB,
width = 148.5*mm,
height = 210*mm,
numArtboards = fileList.length, // The number of SVG files
DocumentArtboardLayout.GridByCol,
artboardSpacing = 20*mm,
artboardRowsOrCols = Math.round( Math.sqrt( fileList.length ) )
// Loop thru the counter
for ( i = 0; i < fileList.length; i++ ) {
// Set the active artboard rulers based on this
doc.artboards.setActiveArtboardIndex( i );
// Create group from SVG
svgFile = doc.groupItems.createFromFile( fileList[i] );
// Move relative to this artboards rulers
// Top Left
sgvFile.position = [ 0, 0 ];
filesToArtboards(); -
Problems generating PDF from FO DOM with SVG in code.
Colleagues,
I am using FOP 0.20.5rc to render an FO DOM I have in a javax.xml.transform.dom.DOMResult into a PDF output stream destined ultimately for an attachment to an email. The FO DOM contains SVG generated from a JPEG image.
If dump the FO DOM to a file and then generate the PDF using FOP from the command line I get the image in the document.
If I pass the FO DOM to a FOP Driver in code I get the document but no image!
I'm obviously missing some vital configuration option in code but for the life of me I can't see it.
Any help would be gratefully received,
Peter
PS. Some of the code:
Driver driver = new Driver();
driver.setLogger(new org.apache.avalon.framework.logger.NullLogger());
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(new java.io.FileOutputStream("c:\\temp\\out.pdf"));
driver.render((Document)foDOM.getNode());Output from run with a ConsoleLogger instead of a NullLogger:
[java] [INFO] building formatting object tree
[java] [WARNING] Screen logger not set - Using ConsoleLogger.
[java] [INFO] setting up fonts
[java] [INFO] [1]
[java] [DEBUG] Last page-sequence produced 1 pages.
[java] [INFO] Parsing of document complete, stopping renderer
[java] [DEBUG] Initial heap size: 2434Kb
[java] [DEBUG] Current heap size: 2142Kb
[java] [DEBUG] Total memory used: -292Kb
[java] [DEBUG] Memory use is indicative; no GC was performed
[java] [DEBUG] These figures should not be used comparatively
[java] [DEBUG] Total time used: 781ms
[java] [DEBUG] Pages rendered: 1
[java] [DEBUG] Avg render time: 781ms/page
As far as I can tell, it's not complaining about anything,
Peter
Maybe you are looking for
-
IAS oem web creating user accounts
Does anyone know of a way to grant access to users so they can access oem through the web? I want to grant access to managers to view reports that have been accessed on IAS. Is there a way to create/grant access to users other than the ias_admin user
-
Here's an Odd one: Microsoft Excel 2010 Workbook "randomly" Becoming Protected
Either there are gnomes in our servers, someone is lying, or some sort of glitch is causing this issue (and honestly I'm not even sure which is most likely), but here's my story: User is working on an excel workbook. This user accesses this file all
-
Running CS3. Have menu system with buttons. Click button and it take you to a frame with a label. This I can do but when you click on a button twice the movie goes to the wrong frame. Here's my code: function homepage(event:MouseEvent):void { gotoAnd
-
Do package data sources update all connected connection managers automatically?
I converted a big project from SSIS2008 -> SSIS2014 During conversion i also erased all connection managers and recreated them based on the packages data sources. Now i want to test my packages on another server , so i changed my 2 data sources only.
-
Best BIOS setting for MSI K8N Plat + AMD 3000+ Venice + Geil Value RAM
Hi all, Which BIOS settings would you recommend for this combination: MSI K8N Plat 3000+ Venice core 2 x 512 MB GEIL value RAM I have NorthQ Giant UFO cooler attached to CPU. I would like to have as fast system as possible but remain on the safe side