On 2/16/2017 8:56 PM, zyx wrote:
why do you think so, please?
PDF 1.7 reference, page 181:
| In file specifications, the period should be used
| only to separate a base file name from a file extension.
And that's what PoDoFo does, isn't it? I tried couple file names with
and without "extra" dots and the Acrobat Reader shows me those file
names properly (without your patch).
Hi,
Sorry, I've been a bit mistaken about the problem.
Actually it seems that the issue is that
PdfFileSpec::CreateFileSpecification needs to be called from an instance
of a PdfFileSpec.
This forces either to create a PdfFileSpec object before using the path
anywhere else or to do it every time you need to ensure that it is
written correctly (which is a problem because it will be added to the
documents objects).
The path modification by the PdfFileSpec can cause problems with
embedded flash resources' if they are embedded using full names.
Examples of this are using custom flash RSLs or Flex styles in separate
flash file.
In this case the file "SomeStyle.swf" will be internally written by
PdfFileSpec as "SomeStyle2Eswf" which may break references to it. This
of course can be avoided by ensuring that a PdfFileSpec before using
it's path, but may not always be desired in the user code. Another
solution could be making the CreateFileSpecification static to allow
receiving the modified path without the need of creating or storing
PdfFileSpec instance.
Regards Nikita Shlyapnikov.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users