chromium / pdfium Goto Github PK
View Code? Open in Web Editor NEWThe PDF library used by the Chromium project
License: Other
The PDF library used by the Chromium project
License: Other
Thread 1 "pdfium_test" received signal SIGTRAP, Trace/breakpoint trap.
0x000055555c2ff819 in CFDE_TextOut::Line::GetPieceAtIndex(unsigned long)::$_1::operator()() const () at ../../xfa/fde/cfde_textout.cpp:551
551 CHECK(pdfium::IndexInBounds(pieces_, index));
(gdb) bt
#0 0x000055555c2ff819 in CFDE_TextOut::Line::GetPieceAtIndex(unsigned long)::$_1::operator()() const () at ../../xfa/fde/cfde_textout.cpp:551
#1 0x000055555c2fca4b in CFDE_TextOut::Line::GetPieceAtIndex(unsigned long) () at ../../xfa/fde/cfde_textout.cpp:551
#2 0x000055555c2ff378 in CFDE_TextOut::ReloadLinePiece(CFDE_TextOut::Line*, CFX_RectF const&) () at ../../xfa/fde/cfde_textout.cpp:472
#3 0x000055555c2fc26c in CFDE_TextOut::Reload(CFX_RectF const&) () at ../../xfa/fde/cfde_textout.cpp:446
#4 0x000055555c2fab97 in CFDE_TextOut::DrawLogicText(CFX_RenderDevice*, fxcrt::StringViewTemplate<wchar_t>, CFX_RectF const&) () at ../../xfa/fde/cfde_textout.cpp:291
void CFDE_TextOut::ReloadLinePiece(Line* pLine, const CFX_RectF& rect) {
......
while (iPieceIndex < iPieceCount) {
size_t start = start_char;
size_t end = pPiece->char_count + start;
while (start < end) {
dwBreakStatus = m_pTxtBreak->AppendChar(text_span[start]);
if (!CFX_BreakTypeNoneOrPiece(dwBreakStatus))
RetrievePieces(dwBreakStatus, true, rect, &start_char, &iPieceWidths);
++start;
}
++iPieceIndex; //bug, after the step, the index may equal to iPieceCount, lead to oob
pPiece = pLine->GetPieceAtIndex(iPieceIndex);
}
......
m_pTxtBreak->Reset();
}
void CFDE_TextOut::ReloadLinePiece(Line* pLine, const CFX_RectF& rect) {
......
while (iPieceIndex < iPieceCount) {
if (iPieceIndex != 0 ) pPiece = pLine->GetPieceAtIndex(iPieceIndex);
size_t start = start_char;
size_t end = pPiece->char_count + start;
while (start < end) {
dwBreakStatus = m_pTxtBreak->AppendChar(text_span[start]);
if (!CFX_BreakTypeNoneOrPiece(dwBreakStatus))
RetrievePieces(dwBreakStatus, true, rect, &start_char, &iPieceWidths);
++start;
}
++iPieceIndex;
}
......
m_pTxtBreak->Reset();
}
In
Line 349 in 70c2db3
This results in the email client opening without the attachment, which is not in line with the Adobe spec.
Hello,
This gihub clone does not track the git repo at https://pdfium.googlesource.com/pdfium/.
The last commit on this fork is dated May 13, 2020, whereas the last commit on google git is July 23, 2021.
The delta is currently 14 months, and counting.
It would be nice if this repo would track upstream once again.
Thanks
I need create a pdf, and need many layer in one page. as far as I know, only libpdf can do that, but it costs a fee. so...
when pdf include emoji,such as:😄
unicode=0x1f604
when use ms word to generate pdf
the unicode include space
https://pdfium.googlesource.com/pdfium/+/refs/heads/main/core/fpdfapi/font/cpdf_tounicodemap.cpp
when space is break,so get unicode=0xd83d
but right is =[d8,3d,de,04], then [d8,3d,de,04].decode('utf-16-be') => '😄'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.