You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/04/01 03:30:00 UTC

[jira] [Commented] (PDFBOX-5146) name for 'gs' operator not found in resources: /GS9

    [ https://issues.apache.org/jira/browse/PDFBOX-5146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17312824#comment-17312824 ] 

Tilman Hausherr commented on PDFBOX-5146:
-----------------------------------------

In this PDF, a form XObject uses the graphics state dictionary GS9. That one isn't in the resources of that XObject. (It's in the parent resources but that doesn't count)

What do you mean with "*mstmc.ttf*" ?

> name for 'gs' operator not found in resources: /GS9
> ---------------------------------------------------
>
>                 Key: PDFBOX-5146
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5146
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.22
>         Environment: jdk 1.8 pdf box 2.0.22
>            Reporter: chao
>            Priority: Critical
>         Attachments: 1617246792(1).jpg, demopdf.pdf
>
>   Original Estimate: 240h
>  Remaining Estimate: 240h
>
> *Hello, excuse me*
> *i have some problem with pdfbox2.0.22.*
> *1.when i Identify some pdf , console alter many error.*
> *2.some pdf ,console alter  miss  mstmc.ttf.  my develop env is window 10*
> thanks for you help !!!
> code eg:
> InputStream inputStream = new FileInputStream(new File("xxxxxxx.pdf"));
> BodyContentHandler handler = new BodyContentHandler(Integer.MAX_VALUE);
> Metadata metadata = new Metadata();
> ParseContext parseContext = new ParseContext();
> PDFParser parser = new PDFParser();
> parser.parse(inputStream, handler, metadata, parseContext);
>  
> pom.xml  eg:
> <dependency>
>  <groupId>org.apache.pdfbox</groupId>
>  <artifactId>pdfbox</artifactId>
>  <version>2.0.22</version>
> </dependency>
> <dependency>
>  <groupId>org.apache.pdfbox</groupId>
>  <artifactId>pdfbox-tools</artifactId>
>  <version>2.0.22</version>
> </dependency>
> <dependency>
>  <groupId>org.apache.pdfbox</groupId>
>  <artifactId>fontbox</artifactId>
>  <version>2.0.22</version>
> </dependency>
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org