henck / henck/rtf-html-php

Not working in my case (example)

Open
#84 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
107
Forks
79
PR merge metrics
No merged PRs in 30d

Description

It's is not working for this sample:

{\rtf1\ansi\ansicpg1252\deff0\deflang1046{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\cf1\f0\fs16 Blusa Alongada decote V, manga longa.\par
Shape contornando o corpo, aplica\'e7\'e3o do s\'edmbolo ROLAMO\'c7A na lateral.\par
Tecido de viscose e elastano com amaciamento ecol\'f3gico que utiliza o \'f3leo extra\'eddo da casca de arroz.\par
Possui \'f3timo caimento, \'e9 agrad\'e1vel ao toque e resistente ao pilling.\par
}

I get: Parse error: Tried to read past end of input; RTF is probably truncated.

But all seans okay;

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the parser error with the supplied RTF sample and compare it with other samples that parse successfully. Trace the input-reading path to determine why this sample is treated as truncated; done means the sample is parsed without the reported error and its output is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.