OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fpdfdoc/cpvt_generateap.h" | 7 #include "core/fpdfdoc/cpvt_generateap.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fpdfapi/fpdf_font/cpdf_font.h" | 11 #include "core/fpdfapi/font/cpdf_font.h" |
12 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" | 12 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" | 13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
14 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h" | 14 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h" |
15 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" | 15 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" |
16 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" | 16 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" |
17 #include "core/fpdfdoc/cpdf_annot.h" | 17 #include "core/fpdfdoc/cpdf_annot.h" |
18 #include "core/fpdfdoc/cpdf_formfield.h" | 18 #include "core/fpdfdoc/cpdf_formfield.h" |
19 #include "core/fpdfdoc/cpvt_color.h" | 19 #include "core/fpdfdoc/cpvt_color.h" |
20 #include "core/fpdfdoc/cpvt_fontmap.h" | 20 #include "core/fpdfdoc/cpvt_fontmap.h" |
21 #include "core/fpdfdoc/cpvt_word.h" | 21 #include "core/fpdfdoc/cpvt_word.h" |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1353 int32_t nFontIndex, | 1353 int32_t nFontIndex, |
1354 FX_FLOAT fFontSize) { | 1354 FX_FLOAT fFontSize) { |
1355 CFX_ByteTextBuf sRet; | 1355 CFX_ByteTextBuf sRet; |
1356 if (pFontMap) { | 1356 if (pFontMap) { |
1357 CFX_ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); | 1357 CFX_ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); |
1358 if (sFontAlias.GetLength() > 0 && fFontSize > 0) | 1358 if (sFontAlias.GetLength() > 0 && fFontSize > 0) |
1359 sRet << "/" << sFontAlias << " " << fFontSize << " Tf\n"; | 1359 sRet << "/" << sFontAlias << " " << fFontSize << " Tf\n"; |
1360 } | 1360 } |
1361 return sRet.MakeString(); | 1361 return sRet.MakeString(); |
1362 } | 1362 } |
OLD | NEW |