Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
094f161e
Kaydet (Commit)
094f161e
authored
Ock 26, 2010
tarafından
Ivo Hinkelmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
CWS-TOOLING: integrate CWS vcl108
üst
22ec2119
e4d43a39
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
description.xml
sdext/source/pdfimport/config/description.xml
+1
-1
pdfparse.cxx
sdext/source/pdfimport/pdfparse/pdfparse.cxx
+29
-1
xpdf-3.02.patch
xpdf/xpdf-3.02.patch
+0
-0
No files found.
sdext/source/pdfimport/config/description.xml
Dosyayı görüntüle @
094f161e
...
...
@@ -16,7 +16,7 @@
</simple-license>
</registration>
<version
value=
"1.0"
/>
<version
value=
"1.0
.2
"
/>
<platform
value=
"UPDATED_SUPPORTED_PLATFORM"
/>
...
...
sdext/source/pdfimport/pdfparse/pdfparse.cxx
Dosyayı görüntüle @
094f161e
...
...
@@ -51,6 +51,7 @@
#include <rtl/strbuf.hxx>
#include <rtl/memory.h>
#include <rtl/alloc.h>
// disable warnings again because someone along the line has enabled them
#if defined __SUNPRO_CC
...
...
@@ -573,6 +574,33 @@ PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen )
PDFEntry
*
PDFReader
::
read
(
const
char
*
pFileName
)
{
#ifdef WIN32
/* #i106583#
since converting to boost 1.39 file_iterator does not work anymore on all Windows systems
C++ stdlib istream_iterator does not allow "-" apparently
using spirit 2.0 doesn't work in our environment with the MSC
So for the time being bite the bullet and read the whole file.
FIXME: give Spirit 2.x another try when we upgrade boost again.
*/
PDFEntry
*
pRet
=
NULL
;
FILE
*
fp
=
fopen
(
pFileName
,
"rb"
);
if
(
fp
)
{
fseek
(
fp
,
0
,
SEEK_END
);
unsigned
int
nLen
=
(
unsigned
int
)
ftell
(
fp
);
fseek
(
fp
,
0
,
SEEK_SET
);
char
*
pBuf
=
(
char
*
)
rtl_allocateMemory
(
nLen
);
if
(
pBuf
)
{
fread
(
pBuf
,
1
,
nLen
,
fp
);
pRet
=
read
(
pBuf
,
nLen
);
rtl_freeMemory
(
pBuf
);
}
fclose
(
fp
);
}
return
pRet
;
#else
file_iterator
<>
file_start
(
pFileName
);
if
(
!
file_start
)
return
NULL
;
...
...
@@ -629,8 +657,8 @@ PDFEntry* PDFReader::read( const char* pFileName )
}
}
#endif
return
pRet
;
#endif // WIN32
}
#if defined __SUNPRO_CC
...
...
xpdf/xpdf-3.02.patch
Dosyayı görüntüle @
094f161e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment